Russian production bug

Post bug reports and ask for game support here.

Moderator: Shannon V. OKeets

Post Reply
joshuamnave
Posts: 967
Joined: Wed Jan 08, 2014 3:51 am
Contact:

Russian production bug

Post by joshuamnave »

Pre Barbarossa, during a Soviet/Japanese war, Russia is getting the production multiple bump for Japanese units in Siberia and for Japanese attacks on Russian units in Siberia. There are no non Russian units in European Russia, nor any attacks on Russian units in European Russia.
Head Geek in Charge at politigeek.net - the intersection of politics and all things geeky
User avatar
Centuur
Posts: 9089
Joined: Fri Jun 03, 2011 12:03 pm
Location: Hoorn (NED).

RE: Russian production bug

Post by Centuur »

ORIGINAL: Zartacla

Pre Barbarossa, during a Soviet/Japanese war, Russia is getting the production multiple bump for Japanese units in Siberia and for Japanese attacks on Russian units in Siberia. There are no non Russian units in European Russia, nor any attacks on Russian units in European Russia.

Any chance of a gamesave for this bug?
Peter
Shannon V. OKeets
Posts: 22165
Joined: Wed May 18, 2005 11:51 pm
Location: Honolulu, Hawaii
Contact:

RE: Russian production bug

Post by Shannon V. OKeets »

Yes, I would like to see a saved game. There are specific lines of code to not include Siberia in those calculations.

Perhaps you are seeing the USSR bumps for 1942 & 1943?

===

mcUSSR:
begin
// ****************************************************************************
// USSR bonus for holding certain cities during certain years
// ****************************************************************************
if (Game.Date.Year >= 1942) and
((Map.HexControlHex[Minsk] = USSR) or
(Map.HexControlHex[Kiev] = USSR)) then
Result := Result + 0.25;

if (Game.Date.Year >= 1943) and
(Map.HexControlHex[Leningrad] = USSR) and
(Map.HexControlHex[Moscow] = USSR) and
(Map.HexControlHex[Stalingrad] = USSR) then
Result := Result + 0.25;
end;

Steve

Perfection is an elusive goal.
joshuamnave
Posts: 967
Joined: Wed Jan 08, 2014 3:51 am
Contact:

RE: Russian production bug

Post by joshuamnave »

It happened in 1940, and it only happened on turns in which Japanese forces attacked Soviet troops inside Siberia. On subsequent turns, where there were no attacks, production returned to normal levels.

Head Geek in Charge at politigeek.net - the intersection of politics and all things geeky
User avatar
paulderynck
Posts: 8523
Joined: Sat Mar 24, 2007 5:27 pm
Location: Canada

RE: Russian production bug

Post by paulderynck »

ORIGINAL: Shannon V. OKeets

Yes, I would like to see a saved game. There are specific lines of code to not include Siberia in those calculations.

Perhaps you are seeing the USSR bumps for 1942 & 1943?

===

mcUSSR:
begin
// ****************************************************************************
// USSR bonus for holding certain cities during certain years
// ****************************************************************************
if (Game.Date.Year >= 1942) and
((Map.HexControlHex[Minsk] = USSR) or
(Map.HexControlHex[Kiev] = USSR)) then
Result := Result + 0.25;

if (Game.Date.Year >= 1943) and
(Map.HexControlHex[Leningrad] = USSR) and
(Map.HexControlHex[Moscow] = USSR) and
(Map.HexControlHex[Stalingrad] = USSR) then
Result := Result + 0.25;
end;

This code is the USSR city bumps. Attacks in home country must be somewhere else in the code, but RAW excludes Siberia as being part of the USSR "home country" for some reason. Of course in MWiF we don't have vertical lines telling us which "map" hexes are on, so I'm unsure how that rule gets implemented.
Paul
Post Reply

Return to “Tech Support”