Messed up AI/Planning
Moderator: Moderators
-
rcduggan
Messed up AI/Planning
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?
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Messed up AI/Planning
I just recently made a map very similar in nature,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?
(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!
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
RE: Re: Messed up AI/Planning
When you do planning in ZeroEdit, it will 'ground itself' to terrain, and ignore objects.
-
rcduggan
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Using barriers to guide the AI to a certain area
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.
