AI planning and overlapping hubs/connections

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
User avatar
squipple
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Tue Jun 28, 2005 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

AI planning and overlapping hubs/connections

Post by squipple »

The whole reason I wanted to start modding in BF2 is because I had a great idea for a map that would involve a couple of large towers with multiple levels.
Only after modeling a good portion of it out and testing the first two levels am I finding that the AI planning may not work for this. With planning routes having to go up stairs, around walls, etc, at many times the hubs and connections would need to overlap one another, and it dosn't seem like this type of map would work.
And, thinking back on all of the shipped maps, the only instance I can think of multiple levels overlapping each other is mustafar, and that's only partially.
Has anyone set up or experienced this while modding? I read back on some of the BF1 threads and got some good info on priorities and fighting. From testing and reading threads and docs, it looks like AI prioritize fighting first, then getting CP's, then following planning.
I also tried to think of any BF1 modded maps, and one instance I could think of was Rends's Coruscant Streets. And AI do tend to collect on that upper level in one area. Rends, maybe you've got some insight into this? Were there difficulties setting up planning in that map?
Gunjak

RE: AI planning and overlapping hubs/connections

Post by Gunjak »

yeah that pissed me off too,
thats why the towers in my map dont overlap :P
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: AI planning and overlapping hubs/connections

Post by Teancum »

I know that AI paths could not go on top of each other (say a path on a platform and one below it) in BF1. They may have changed it in BF2, though.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: AI planning and overlapping hubs/connections

Post by [RDH]Zerted »

According to the docs, AI paths can't overlap.
User avatar
squipple
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Tue Jun 28, 2005 7:38 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Contact:

Post by squipple »

Yes, I read in the docs they can't overlap.
The game has no 3D pathing so like barriers, Planning Paths have infinite height. This must be taken into consideration when constructing maps that involve stacked playing fields. Planning paths cannot overlap but rather must be joined using hubs.
However, I've seen maps with some amount of overlapping, and wondered if anyone found a work-around besides "not doing it".
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post by [RDH]Zerted »

You might be able to get away with connecting the overlaping sections with hubs. Half the bots would stumble around a little bit when they reach the hub, but I think they would find their way after a little while.
Lord-Bandu

Post by Lord-Bandu »

I have the same problem with the Rattatak map . The only thing I can think of is to heighten the terrain each time you put hubs etc on top of each other but not saving the TER file.

Its a long shot.
Post Reply