Page 1 of 1

3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 12:09 am
by rkr1958
To recreate bug (version 3.1.0.3):

1. For Germany, "Reorganized All" units such that 1 + 0.35 of the saved oil at Cologne is used, leaving Cologne with 0.65 oil.

2. For Italy, check "Include oil from cooperating major power."

Bug. The oil saved at Cologne is showing as 0 instead of 0.65.

Image

RE: 3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 12:10 am
by rkr1958
game save (version 3.1.0.3).

RE: 3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 11:44 am
by BrianJH

There is something funny going on with the oil located Cologne.

I had a little play around with your save file. I got to work correctly by consuming all of the oil in Cologne, and leaving the remnant in Berlin.



Image

RE: 3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 11:45 am
by BrianJH
Italy Use Oil



Image

RE: 3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 11:47 am
by BrianJH

Did you by chance at some point in your game, edit the save file and place oil in Cologne? maybe the edit wasn't quite right.

Brian

RE: 3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 1:51 pm
by rkr1958
ORIGINAL: BrianJH


Did you by chance at some point in your game, edit the save file and place oil in Cologne? maybe the edit wasn't quite right.

Brian
No edit and the I quickly discovered the workaround you mentioned in your previous post.
ORIGINAL: AAR w/Jesper, Post #: 158

Turn 3. Jan/Feb 1940. End of Turn. Use Oil.

[ax] Use Oil. Axis.
(1) Germany. 3.35 need. Reorg all. 3 Oil spent. 4 saved oil points (Cologne x 2, Aachen, Berlin) used in that order. Note. It's critical that the 0.65 fraction remaining either been the Aachen or Berlin oil point, otherwise it'll show as 0 when Italy tries to use it.
(2) Italy (include oil from cooperating MP). 1.65 need. Reorg all with 0.65 Berlin and Rome saved oil.
(3) Japan. 2.4 Need. Reorg all, use 2 oil
color & emphasis added.


RE: 3.1.0.3 Use Oil Bug

Posted: Tue Apr 14, 2020 8:56 pm
by BrianJH

I've looked into this a bit further.

It looks to me that the code is not handling the Include Oil from Cooperating Major Powers when there is multiple Oil in a hex. When it gets to Italy Use Oil, it's only looking at the Oil (Unit) from the top of the list, which if already consumed shows zero. This is easily demonstrated by leaving the remaining oil in the top Cologne Oil point in the list.

Steve, I hope this helps.

Brian.



Image

RE: 3.1.0.3 Use Oil Bug

Posted: Sat Apr 18, 2020 5:40 pm
by Shannon V. OKeets
ORIGINAL: BrianJH


I've looked into this a bit further.

It looks to me that the code is not handling the Include Oil from Cooperating Major Powers when there is multiple Oil in a hex. When it gets to Italy Use Oil, it's only looking at the Oil (Unit) from the top of the list, which if already consumed shows zero. This is easily demonstrated by leaving the remaining oil in the top Cologne Oil point in the list.

Steve, I hope this helps.

Brian.



Image
Thanks.[&o]
Although I would have been happier if you had proven this wasn't a bug.[;)]