Game Development Community

Problem with AI Pathfinding with CTF Demo resource

by Firas · in Technical Issues · 06/23/2005 (9:55 am) · 3 replies

Hi guys
I'm trying to implement the follwing resource:
AI Pathfinding with CTF Demo , this is the link:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=6889

I did just like mark explain in his word document but I have the follwing problem:
when I load the CTF mission, it will load but there is no bots on it nither navnodes

I open the consol and found the follwing errors:
error 1:

Compiling starter.fps/server/scripts/game.cs...
starter.fps/server/scripts/game.cs Line: 64 - Syntax error.
>>> Advanced script error report. Line 127.
>>> Some error context, with ## on sides of error halt:
//-----------------------------------------------



//AI

exec("##.##/flag.cs");

exec("./ctfbot.cs");

exec("./Navigation.cs");
>>> Error report complete.

Loading compiled script starter.fps/server/scripts/game.cs.

note: I check flag.cs fiel, line 127 and it's contain just Bracket like this: }
so what wrong with bracket

error 2:
Executing starter.fps/data/missions/CTF_stronghold.mis.
Object 'NavNode' is not a member of the 'GameBaseData' data block class
starter.fps/data/missions/CTF_stronghold.mis (0): Register object failed for object NavPoint of class StaticShape.
Object 'NavNode' is not a member of the 'GameBaseData' data block class
starter.fps/data/missions/CTF_stronghold.mis (0): Register object failed for object NavPoint of class StaticShape.
Object 'NavNode' is not a member of the 'GameBaseData' data block class
starter.fps/data/missions/CTF_stronghold.mis (0): Register object failed for object NavPoint of class StaticShape.
Object 'NavNode' is not a member of the 'GameBaseData' data block class
...

so anyone can help?

#1
06/23/2005 (11:10 am)
I just had a look for you in the word.doc file the " qoute marks for all those exec statements are different
what i mean is different text format
exec("./flag.cs");
exec("./ctfbot.cs");
exec("./Navigation.cs");
exec("./ctf.cs");
around the flag.cs and ctfbot
I would recheck those
edit- lol the qoute mark around those 2 flag.cs and ctfbot.cs wont show in the browser
#2
06/23/2005 (11:34 am)
Thanks a lot

I didn't think about qoutes

now I will try to implement the save/load resource to remove the lettle puse that happen somtimes


guys i'm thinking in improving this resource does anyone here interrest on this?

for example have a different action for each kind of moinstors or the most important thing is making a navigation graph to make is more easy to navigate the NPC with different terrains.
#3
01/11/2008 (6:46 am)
@Firas
What the answer for the error2? How does it can be solved?