Page 1 of 1

Rail Points Calculation Bug

Posted: Mon Oct 16, 2000 11:05 pm
by aglozier
I just started a new game with 2.1+ as the Russians. I'm on turn three. Every turn I've encountered a bug using rail transfers. It occurs when the number of rail points is close to zero and I rail transfer a unit. After the transfer, I check now many rail points I have left and the value is somthing like 64,650. My guess is that the integer variable for rail points is underflowing. This appears to be a new bug. I didn't notice it with 2.0.

BTW, great game.

George

Posted: Tue Oct 17, 2000 7:41 am
by Ed Cogburn
Originally posted by aglozier:
I just started a new game with 2.1+ as the Russians. I'm on turn three. Every turn I've encountered a bug using rail transfers. It occurs when the number of rail points is close to zero and I rail transfer a unit. After the transfer, I check now many rail points I have left and the value is somthing like 64,650. My guess is that the integer variable for rail points is underflowing. This appears to be a new bug. I didn't notice it with 2.0.
Confirmed, I'll send this bug to the mailing list in a few minutes.

Posted: Tue Oct 17, 2000 8:20 am
by Ed Cogburn
Originally posted by Ed Cogburn:
Confirmed, I'll send this bug to the mailing list in a few minutes.

Oops, the problem I found wasn't your underflow problem but another unrelated bug, but your problem report made it to the list before I got there anyway, so they know about it.

Posted: Mon Oct 23, 2000 6:17 am
by RickyB
Originally posted by aglozier:
I just started a new game with 2.1+ as the Russians. I'm on turn three. Every turn I've encountered a bug using rail transfers. It occurs when the number of rail points is close to zero and I rail transfer a unit. After the transfer, I check now many rail points I have left and the value is somthing like 64,650. My guess is that the integer variable for rail points is underflowing. This appears to be a new bug. I didn't notice it with 2.0.

BTW, great game.

George
George,
Nobody in the playtester group has been able to reproduce this bug. I hate to ask this, but could you send me a save game right before the problem with instructions on reproducing it, if possible. I know this may not be, but if you are getting it every turn for 3 turns, maybe you can? I have tried everything I can think of and have gotten the remaining rail points down to 17 left without any problems. I have tried factories at the beginning and end, without problems, etc.

If you can help, it would be greatly appreciated. Thanks.


------------------
Rick Bancroft
Semper Fi

Posted: Mon Oct 23, 2000 9:05 am
by Stephen Clark
This bug definitely exists. I've only seen it with the Germans, but it happened at least three times in the last game; occasionally, when using rail tran (I don't think it works with rail move, but I'm not completely sure) rail points will underflow to 65000. I'll try and reproduce it and send you a saved game.
Other rail bugs also exist; I have had trouble sometimes using rail tran even though readiness is 99%, both units are at supply 6 and connected by rail and there are at least 4000 rail points in the pool. (This occurs more often with the Germans than the Russians.) I sometimes get an error message 'Destination unit is full'; this has happened when the destination unit is actually empty.

Posted: Mon Oct 23, 2000 5:29 pm
by RickyB
Originally posted by Stephen Clark:
This bug definitely exists. I've only seen it with the Germans, but it happened at least three times in the last game; occasionally, when using rail tran (I don't think it works with rail move, but I'm not completely sure) rail points will underflow to 65000. I'll try and reproduce it and send you a saved game.
Other rail bugs also exist; I have had trouble sometimes using rail tran even though readiness is 99%, both units are at supply 6 and connected by rail and there are at least 4000 rail points in the pool. (This occurs more often with the Germans than the Russians.) I sometimes get an error message 'Destination unit is full'; this has happened when the destination unit is actually empty.
Thanks to Steven's comments and his save game, I am now able to reproduce the problem, so it should be fixable by Arnaud now. The problem is not so much related to low rail points - it is due to transferring multiple units at once, each of which costs less than the remaining rail points, but the total adds up to more than the remaining points. Thus, each gets "approved" for the rail transfer, even though the total cost is more than the remaining points, leading to the problem. You can do the same thing transferring multiple divisions at once. That is why rail movement does not cause a problem - you can only move 1 unit at a time, so either it is too much or it is not.

On the other rail issues, again none of us has had this problem. If someone can give more details as to when it happens and how, if possible, it would help a lot. Otherwise, we are just guessing until it can be reproduced. I know the rail transfer failing into an empty shell is common, but I have never been able to get it to happen myself.

Thanks all.

------------------
Rick Bancroft
Semper Fi