Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 4 1 2 3 4
Re: help plan, NOT code AI system [Re: darkinferno] #269641
06/03/09 22:10
06/03/09 22:10
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
Heres some thoughts...

I think you need to first establish what the AI is going to be used for as Ai comes in all flavours.
Ai enemy_soldier is the commonest so its easy to assume thats it in this case but is it in the case of the AI.

Having sorted that, you might want to look at what type of 'cue'sytem to implement for variouse way point functions or random breaking and over what distance in entirety the NPC needs to cover.

A top down view is good for this.

Knowing its a hunter/seeker AI and it needs to find player, from where would this begin?

Then arrange your action nodes to form the outline of the path and ready them for thier functions, whatever they may be ( example, generate rockslide so AI avoids and resume, tell AI to stop and look around, fix a path then proceed, here is an angle over the slip limit, assume climb pose and so on....)

Then work out all posible scenarios for encounters, visual hunt the player actions (if player spies on AI)crawl under, climb over, go around etc to finally get a clue on how to create the architechture for the AI to function in.

Im not saying thats how to do it, Im just suggesting as the topic calls for smile


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: help plan, NOT code AI system [Re: KiwiBoy] #269644
06/03/09 23:01
06/03/09 23:01

F
Fear411
Unregistered
Fear411
Unregistered
F



I didn't test the Code. If you want i could build this into the testlevel

Re: help plan, NOT code AI system [Re: ] #269647
06/03/09 23:28
06/03/09 23:28
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
that would be really great fear and thanks for all your help... smile

Re: help plan, NOT code AI system [Re: darkinferno] #269712
06/04/09 09:18
06/04/09 09:18
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
fear's code needs this:
action item_act()
{
//in you action or function for the item
items[global_id] = handle(me);
}
to be changed to this:
action item_act()
{
//in you action or function for the item
items[global_id] = handle(me);
global_id ++;
}

I believe.
Use this method. It works. I use it as well to make missiles find the closest enemy automatically...
I believe the crash would be because, as testDummy said, it doesn't check if(you != NULL) after you = ptr_for_handle...

Also, you need to remove the pointer out of the array when the item's picked up or otherwise removed.


~"I never let school interfere with my education"~
-Mark Twain
Re: help plan, NOT code AI system [Re: Germanunkol] #269730
06/04/09 10:57
06/04/09 10:57
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline OP
Serious User
darkinferno  Offline OP
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
ok, but now i get a 'skill' undeclared indentfier in this line:
my.item_handle = items[temp_id];

Re: help plan, NOT code AI system [Re: darkinferno] #269741
06/04/09 11:53
06/04/09 11:53
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Extra semicolon third #define line?

Re: help plan, NOT code AI system [Re: testDummy] #269748
06/04/09 12:29
06/04/09 12:29
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
You don't need, or must not use, ";" and "=" here:

#define item_handle skill80
#define item_dist = skill81
#define temp_id = skill82;

Re: help plan, NOT code AI system [Re: Pappenheimer] #269755
06/04/09 13:03
06/04/09 13:03
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Isn't there also an event called "event_detect" that detects all scanned entities?

Re: help plan, NOT code AI system [Re: the_clown] #269760
06/04/09 13:17
06/04/09 13:17

F
Fear411
Unregistered
Fear411
Unregistered
F



yeah sry for the messed up code. Was writing it in a hurry smile

Re: help plan, NOT code AI system [Re: ] #269765
06/04/09 13:43
06/04/09 13:43

F
Fear411
Unregistered
Fear411
Unregistered
F



ok here is the level. I changed testlevel.c and ix_interface.c. The changes are marked. Press space to find the neares item. If the ai reaches the item, the item is removed and you can press space again to find the nearest item again.

Download Find Item

Page 2 of 4 1 2 3 4

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | 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