AI pathing and water obstacles

This forum is intended for questions on scenario and campaign design, including the random scenario and campaign systems. This is also the location to upload and post your latest new scenarios and campaigns.
Post Reply
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

AI pathing and water obstacles

Post 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
Attachments
HTsandRiver.jpg
HTsandRiver.jpg (140.61 KiB) Viewed 826 times
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: AI pathing and water obstacles

Post 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
Attachments
HTandriv..ossing2.jpg
HTandriv..ossing2.jpg (67.85 KiB) Viewed 826 times
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: AI pathing and water obstacles

Post 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
Attachments
MyHTmoveplot.jpg
MyHTmoveplot.jpg (119.65 KiB) Viewed 826 times
User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: AI pathing and water obstacles

Post 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.
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: AI pathing and water obstacles

Post 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
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: AI pathing and water obstacles

Post 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
Attachments
walkingonair.jpg
walkingonair.jpg (104.03 KiB) Viewed 826 times
User avatar
Stridor
Posts: 1391
Joined: Sat Sep 08, 2007 11:01 am

RE: AI pathing and water obstacles

Post 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.
rickier65
Posts: 14252
Joined: Thu Apr 20, 2000 8:00 am

RE: AI pathing and water obstacles

Post 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
Post Reply

Return to “Scenarios and Campaigns”