Page 1 of 1

UK / Pacific event file issue

Posted: Wed Sep 22, 2021 2:32 pm
by stjeand
Found what looks like an issue in the event file.


//UK resources get reduced due to Japan entering the war
$GiveResource
if_Date=12/7/1941
actionCountry=1
lifespan=tillTrigger
//reduced 40 production resource to 20 production resource
xyArea=237,76,60
addReportTo=All
$End


This does not work since the xyArea is in the middle of the Ural mountains and not owned by the UK.

It states it is changing the location removing 20 resources.

The UK Pacific resources listed are 25, 20, 20 in the 0 row.


Honestly what should happen is all those resources should be gone...since they are in WPP and being used there.
BUT since that might change things to much...just need to fix this to be correct.


I am guessing it should be:

//UK resources get reduced due to Japan entering the war
$GiveResource
if_Date=12/7/1941
actionCountry=1
lifespan=tillTrigger
//reduced 20 production resource to no production
xyArea=237,0,0
addReportTo=All
$End


That would remove a 20 PP spot.

RE: UK / Pacific event file issue

Posted: Thu Sep 23, 2021 11:01 am
by AlvaroSousa
Weird I have fixed this twice so far. Maybe I forgot to save it?

RE: UK / Pacific event file issue

Posted: Thu Sep 23, 2021 11:02 am
by AlvaroSousa
Ok fixed.

RE: UK / Pacific event file issue

Posted: Thu Sep 23, 2021 11:24 am
by stjeand
Might I ask what is the fix?

Is it to basically remove one of the 20 PP locations or change the 25 to 5? I want to put that in my test with Harry coming up where we change rail repair to 2...

RE: UK / Pacific event file issue

Posted: Thu Sep 23, 2021 3:11 pm
by stjeand
I added my guess and it worked as expected...

The production spot was removed so -20 as designed.

Just wanted to duplicate what you were doing in the next patch was all.