Page 1 of 1

Messed up AI/Planning

Posted: Fri Sep 01, 2006 6:58 pm
by rcduggan
I'm making a map right now. It is mainly a mountain with bunkers on the outside and tunnels going through the mountain. But the AI is totally messed up. When the CIS bots move through the tunnels, they mainly press against the wall and barely move. Is there some way to get the AI working?

Re: Messed up AI/Planning

Posted: Fri Sep 01, 2006 7:10 pm
by Maveritchell
rcduggan wrote:I'm making a map right now. It is mainly a mountain with bunkers on the outside and tunnels going through the mountain. But the AI is totally messed up. When the CIS bots move through the tunnels, they mainly press against the wall and barely move. Is there some way to get the AI working?
I just recently made a map very similar in nature,

(Shameless plug:
http://www.gametoast.com/viewtopic.php? ... pic&t=6583
)

and the real trick in terms of AI planning is making sure that there's a hub at each corner of your tunnels, or just making sure that your hubs are set up so that the paths never run into the walls.

This can be tricky, because you'll note that you cannot put hubs anywhere but flush with the terrain.

Now, mine was by no means perfect, but I achieved a decent measure of success in AI planning by just lowering the ground until it was in the middle of my tunnels. (Use Spray tool, pressure 100, set to correct height, lay hubs and paths, and press "undo" until your terrain is back to normal. You won't undo your recently placed hubs & paths.) Make sure all your paths and hubs have been laid before you reraise (or relower) the terrain back to normal, because once a hub is no longer flush to the terrain, you can't modify it or add paths to it.

If what I wrote is too unclear or doesn't seem to work, let me know, and I can upload a screenshot of my planning. Good luck!

RE: Re: Messed up AI/Planning

Posted: Fri Sep 01, 2006 7:58 pm
by Teancum
When you do planning in ZeroEdit, it will 'ground itself' to terrain, and ignore objects.

Posted: Sat Sep 02, 2006 9:00 am
by rcduggan
@Mav
I know what you are saying and I will try that.

EDIT: I did it, but it still doesn't work that well. The bots sometimes run into walls, and can't figure out how to get around easily.

EDIT2
and now I get this in my error log:
Hidden/Spoiler:
[quote]
Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub56]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [HOVER] radius [0.48] in node [Hub56]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [HOVER] radius [0.48] in node [Hub56]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.70] in node [Hub48]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.70] in node [Hub47]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [HOVER] radius [0.48] in node [Hub56]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub8]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.49] in node [Hub48]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.49] in node [Hub47]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [HOVER] radius [0.48] in node [Hub56]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub8]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.49] in node [Hub3]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.49] in node [Hub1]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [HOVER] radius [0.48] in node [Hub56]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.46] in node [Hub3]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.46] in node [Hub1]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub10]

Message Severity: 2
.\Source\ConnectivityGraphFollower.cpp(382)
No valid positions for type [SOLDIER] radius [0.48] in node [Hub9][/quote]

(and a lot more of those)

Posted: Sun Sep 03, 2006 12:39 pm
by darthpingu
Well I love barriers(barriers tab in ZE)...

Posted: Sun Sep 03, 2006 1:52 pm
by rcduggan
darthpingu wrote:Well I love barriers(barriers tab in ZE)...
what about barriers?

Posted: Sun Sep 03, 2006 1:54 pm
by darthpingu
Use them:P

Using barriers to guide the AI to a certain area

Posted: Sun Sep 03, 2006 1:57 pm
by AceMastermind
Along with "hubs" and "connections", you can use "barriers" to "guide" the AI into the areas that you want them to go, such as placing them along the walls and such.

Posted: Sun Sep 03, 2006 5:10 pm
by rcduggan
thanks. I will see if barriers work better