Page 1 of 1

Odd Retreating Bug Found - .SAV File Included

Posted: Mon Nov 26, 2012 4:38 am
by Hancock the Superb
Team:

While playing the 2nd Chancellorsville Scenario, one of my regiments retreated and got stuck in a limbo. It would retreat backwards, then stop and retreat forwards again. The odd part about it is that there were no troops behind it. It should have had a clear path to the destination.

I have included the save file for this bug, although it only does it a few times after the start of the save. Take me for my word that the regiment was bouncing around for over a minute beforehand.

Thanks!

Re: Odd Retreating Bug Found - .SAV File Included

Posted: Mon Nov 26, 2012 7:54 am
by Davinci
This problem was discussed a while back, I call it the ping-pong-effect, the only solution that I have found is to place another unit between the regiment and the enemy troops.

That seems to stop the unit from constantly bouncing back and forth!

davinci

Re: Odd Retreating Bug Found - .SAV File Included

Posted: Tue Nov 27, 2012 5:30 am
by norb
thanks for the save, I'll take a look

Re: Odd Retreating Bug Found - .SAV File Included

Posted: Wed Nov 28, 2012 6:10 pm
by norb
Took a look at this last night and I was able to fix the issue in this save and I understand the issue.

In case you want to know:

The image of the reg over the terrain is saved. Then that image is projected on the destination to see if the reg can fit. If it cannot, it's moved. So that is what you are seeing, the engine trying to place that reg. The problem here is that since the reg is retreating, the image is totally hosed up. Not at all like it will be once they form up. I have tried to counter that with code and it did fix this saved game immediately. Now we have to test to make sure that nothing else was affected and that it handles all situations, not just this save.

Thank you very much for this, a non-modded saved game clearly showing the bug is all I need to get something fixed 90% of the time.