Page 1 of 1

AI pathing and water obstacles

Posted: Mon Sep 21, 2009 1:28 pm
by rickier65

Finished first full game test of Rogachev and went in to try Russian side. I see the German AI also seems to like pathing across shallow water.

Im beginning to think maybe the pathing routines aren't looking far enough ahead to see the deep water. When I plot moves it seems to know that it cant cross the river except at bridge, but for AI plotting it still looks like it's trying to.

I may tr y making all the water as deep to see if it avoids this.

Rick





Image

RE: AI pathing and water obstacles

Posted: Mon Sep 21, 2009 2:03 pm
by rickier65
ok - i may have spoke too soon. for some reason the AI HT are moving across the water. I double checked the AI map and is is coded correctly. but the HT is moving across the river through water terrain. (0,0,255).

Rick



Image

RE: AI pathing and water obstacles

Posted: Mon Sep 21, 2009 2:25 pm
by rickier65

OK - decided to check further, I restarted game and chose to play as German this time. I plotted HT's across the river and tried to plot close to where they the AI was heading the HT's.

When I plot the movement, the HT's do not cross the river, but plot to move across the bridge as they should.

see attached pic. NOTE above pics taken with me controlling Russian side and AI controlling Germans, the pic below is ME controlling Germans and AI controlling Russian.

Rick



Image

RE: AI pathing and water obstacles

Posted: Mon Sep 21, 2009 10:18 pm
by Stridor
Rick I can't help but think the problem may be related to the bridge model being "diagonal" and hence having a stuffed bounding box. Try hand editing the terrainmap so that the AI colours correctly represent the bridge model or just try a land bridge of the same width. Hopefully spellir has fixed up the bridges and when I calc new bounding boxes the problem will go away.

Regards

S.

RE: AI pathing and water obstacles

Posted: Tue Sep 22, 2009 12:15 am
by rickier65
ORIGINAL: Stridor

Rick I can't help but think the problem may be related to the bridge model being "diagonal" and hence having a stuffed bounding box. Try hand editing the terrainmap so that the AI colours correctly represent the bridge model or just try a land bridge of the same width. Hopefully spellir has fixed up the bridges and when I calc new bounding boxes the problem will go away.

Regards

S.

Stridor,

Thanks for idea, but i had already edited the AImap to fix up the bridge. in fact i had to edit it twice to add some addtional width to the "obstruction code" for the guardrails because i had a halftrack decided to straddle on of the guardrail
I think spellir already did the bridge fix-up. or did you think there was still more that was needed?

Strangely., as i proceeded to play, the HT in the middle of the river stayed there for a few turns, then turned around and whole platoon turned and headed back.

Thanks,
Rick

RE: AI pathing and water obstacles

Posted: Tue Sep 22, 2009 1:05 am
by rickier65
Well,

Looks like I do need to work on the bridge AI i thought i had this adjusted, but looks like i didn't. Unfortunately, I'm working on my laptop, so in Scene Edit, Im not able to see the AImap (it turns all white when i try to load it). And Insert doesnt work in game on this for some reason, (all i get is the water plain instead of the AI map.), so getting the bridge AI map edited is becomoing a bit of a challenge.

Other than these few map issues, the battle is playing out fairly well.

Thanks,
Rick



Image

RE: AI pathing and water obstacles

Posted: Tue Sep 22, 2009 2:06 am
by Stridor
Perhaps because the bridge is in 2 pieces the game is having problems.

To trouble-shoot try a test map with a land-bridge of the same width or use a larger model bridge.

Regards

S.

RE: AI pathing and water obstacles

Posted: Tue Sep 22, 2009 2:11 am
by rickier65
ORIGINAL: Stridor

Perhaps because the bridge is in 2 pieces the game is having problems.

To trouble-shoot try a test map with a land-bridge of the same width or use a larger model bridge.

Regards

S.

thanks, i'll try a few things.

Rick