Page 1 of 1
Possible Bug - Portugal attacked
Posted: Thu Sep 29, 2011 6:27 am
by zechi
I got the following message the last two turns in my game with Plaid (winter 1943):
Portugal has not been attacked yet, despite an invasion force arriving last turn. Furthermore, an Allied spying plane landed in Spain, which is Axis occupied (invaded in 1940). So I'm wondering what happened here? It does not seem right that the Azores go to the US, if the Axis do not attack Portugal and the message seems wrong, or I'm overlooking something?
Posted: Sat Oct 01, 2011 12:56 pm
by Peter Stauffenberg
Can you send me the save game from the turn just before it happened?
Posted: Sat Oct 01, 2011 1:27 pm
by zechi
Just send you the turn via email.
Posted: Sat Oct 01, 2011 1:44 pm
by Peter Stauffenberg
I noticed in your game that Azores was controlled by UK before this message happened. The message is supposed to come when Portugal is attacked and the owner of Azores is neither USA nor Portugal. So the reason for this problem is that Azores is flagged as controlled by UK. How did that happen?
Edit: I think I have an idea why. The reason is that the hex is an airfield and you seize control of the airfield by flying there. So the owner changes to UK because a British strategic bomber landed there. I will have to look at that because that is not correct. You only change ownership if the new owner is belonging to a different side.
Posted: Sat Oct 01, 2011 3:14 pm
by Peter Stauffenberg
I found the area in the code causing this problem and changed it. The problem was that the airbaseowner will be the same as the unit in the hex and that's not right if the unit is from the same side as the airbase owner. This way Azores changed from US to UK ownership when the UK strategic bomber landed there.
Now this is changed and will be part of GS v2.01.28 bugfix update