Messed up AI/Planning

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
rcduggan

Messed up AI/Planning

Post 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?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Messed up AI/Planning

Post 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!
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

RE: Re: Messed up AI/Planning

Post by Teancum »

When you do planning in ZeroEdit, it will 'ground itself' to terrain, and ignore objects.
rcduggan

Post 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)
darthpingu

Post by darthpingu »

Well I love barriers(barriers tab in ZE)...
rcduggan

Post by rcduggan »

darthpingu wrote:Well I love barriers(barriers tab in ZE)...
what about barriers?
darthpingu

Post by darthpingu »

Use them:P
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Using barriers to guide the AI to a certain area

Post 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.
rcduggan

Post by rcduggan »

thanks. I will see if barriers work better
Post Reply