Possible Bug - Portugal attacked

Moderators: firepowerjohan, rkr1958, Happycat, Slitherine Core

Post Reply
zechi
1st Lieutenant - Grenadier
1st Lieutenant - Grenadier
Posts: 763
Joined: Wed Feb 27, 2008 1:42 pm

Possible Bug - Portugal attacked

Post by zechi »

I got the following message the last two turns in my game with Plaid (winter 1943):

Image

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?
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post by Peter Stauffenberg »

Can you send me the save game from the turn just before it happened?
zechi
1st Lieutenant - Grenadier
1st Lieutenant - Grenadier
Posts: 763
Joined: Wed Feb 27, 2008 1:42 pm

Post by zechi »

Just send you the turn via email.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

Post 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.
Peter Stauffenberg
General - Carrier
General - Carrier
Posts: 4745
Joined: Sun Jul 08, 2007 4:13 pm
Location: Oslo, Norway

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

Return to “Commander Europe at War : GS Open Beta”