Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, dBc), 18,430 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Intense Pathfinding 2 Problem [GER] [Re: Meerkat] #257327
03/22/09 17:28
03/22/09 17:28
Joined: Apr 2006
Posts: 273
Germany, NRW
Meerkat Offline OP
Member
Meerkat  Offline OP
Member

Joined: Apr 2006
Posts: 273
Germany, NRW
Jut, nachdem mein Frust weg is kann ich ne anständige Antwort geben. laugh Also... *aushol* :P

In der Teammate1_act hab ich folgendes stehen:

action Teammate1_act()
{
is_ai_npc_f(); //Damit registriere ich meinen Kollegen als NPC!
ChoosePosition();
while(1)
{
is_Action_Move_To(X,Y,Z,Ent); //Ich glaube das heir ist der Grund warum die Funktionenanzahl unaufhörhlich steigt.
wait(-0.2);
}
}

Ich kann meinen Teammate1 mit der Befehlstaste rumschicken. Das funktioniert soweit ganz gut. LEIDER muss ich dafür aber in seinem Sichtfeld sein was nicht unbedingt praktikabel is da ich auch möchte das NPCs locker von einem zum anderem Levelende spazieren können müssen. Und wenn ich halt um die Ecke komme und angeschossen werd, das ich dem Kollegen zur Hilfe kommen lassen kann.

Ebenso liegt das Problem vor, dass wenn ich den losschicke, das die Funktionen sich dann aufstapeln. Ich denke das liegt daran das "is_Action_Move_To(X,Y,Z,Ent)" in einer While-schleife liegt. Anders kann sich der NPC aber leider nicht bewegen. frown


MfG: Rudi


http://www.gpi-studios.com

OS: Windows 7 Home Premium (64 Bit Version)
AMD Athlon 64 X2 Dual Core Processor 5200+
6gb DDR 2 - RAM
NVIDIA GeForce GTX 460
GameStudio Version A8 Commercial
Re: Intense Pathfinding 2 Problem [GER] [Re: Meerkat] #260160
04/09/09 07:51
04/09/09 07:51
Joined: Jul 2004
Posts: 1,205
Greece
LarryLaffer Offline
Serious User
LarryLaffer  Offline
Serious User

Joined: Jul 2004
Posts: 1,205
Greece
Hello Meerkat,

I seem to have missed this thread completely.. Lately I've been working offline more, and reading forums less, so for any questions about Intense Pathfinding or Intense X, e-mail me directly at LLaffer AT intense-i.com .

My german translator can do so much, so if you're still having trouble with IP then please switch back to english with your latest post and i'll try to help. I've also noticed that you own Intense X so maybe instead of trying to install IP2 to your project (which admittedly is not as easy as i'd like it to be), you could simply add Intense X to your project with the click of a button:




and now you can create your graphs as easy as that:




and finally you can have total control of your Npcs, completely overriding Intense X's AI if you so desire, by using Custom Goals.

To see the code required in order to order an Npc to move somewhere, using Custom Goals, click here and JUMP directly to Part 3 of that video tutorial. The code looks like this:

Code:
void Action_GoSomeplace(par1,par2,par3,par4)  //par1=me  par2=PosX  par3=PosY  par4=PosZ
{
   ix_skill(my,is_bActionInProgress)=IS_TRUE;

   is_Action_Walk_To_X_Neutral(par2,par3,par4,NULL);
   while (is_IsActionRunning(is_cAction_MoveTo)) wait(1);

   ix_skill(my,is_bActionInProgress)=IS_FALSE;
}

void Goal_GoSomeplace(NumOfEntries,var *Value,var *par1,var *par2,var *par3,var *par4)
{
   *Value=100;
   *par1=me;
   *par2=100;  //PosX
   *par3=50;   //PosY
   *par4=0;   /PosZ
}

void main()
{
   AddCustomGoal(Goal_GoSomeplace,Action_GoSomeplace);
   ..
}



And this is ALL the code you will need to type, in order to INSTALL, CREATE A GRAPH and USE Intense X on a currently non-intense X project.


Cheers,
Aris


INTENSE AI: Use the Best AI around for your games!
Join our Forums now! | Get Intense Pathfinding 3 Free!
Re: Intense Pathfinding 2 Problem [GER] [Re: LarryLaffer] #260733
04/13/09 09:09
04/13/09 09:09
Joined: Apr 2006
Posts: 273
Germany, NRW
Meerkat Offline OP
Member
Meerkat  Offline OP
Member

Joined: Apr 2006
Posts: 273
Germany, NRW
Hi Aris,

it's me, Meerkat from A7 3DGS Forum. ^^ I have a strange problem with Intense Pathfinding 2 and IntenseX. I will begin with IP2.

I try to programm a tactic shooter how "Full Spectrum Warrior" but with an Alien Story. My problem is, i have a really big problem with my pathfinding algorythm. In "IP2" my teammate can going to a location that he can see where i will send him, but if i try to send him around a corner, then he cannot going to it. But i have inserted IP2 correctly i think. I'll try currently to programm my own A-Star algorythm, but that's so hard! Have sometimes much understanding problems in logic.


I comming now to IntenseX. ^^


IntenseX is really a blast, but with that i have another problems. I really don't like the folder system of it, it kills my own, and that makes me crazy. And the another problem is with it, i don't know how i must change it to make it work for my project. I cannot read many of that code (i don't understand it much). smile


Rudi


http://www.gpi-studios.com

OS: Windows 7 Home Premium (64 Bit Version)
AMD Athlon 64 X2 Dual Core Processor 5200+
6gb DDR 2 - RAM
NVIDIA GeForce GTX 460
GameStudio Version A8 Commercial
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1