Event transfer of Russian factories to Siberia (Full Version)

All Forums >> [New Releases from Matrix Games] >> WarPlan



Message


CHINCHIN -> Event transfer of Russian factories to Siberia (2/2/2022 8:59:55 AM)

I want to add several of these events to my mod in order to evacuate a good number of Russian factories.

I have created new resources of 5, 10, and 25 Morale/manpower, to substitute resources for Morale/manpower/PP.

The event that replaces the Morale/manpower/PP resource with the Morale/manpower resource, I think is controlled. It triggers on a given date, and only if the hex is controlled by the USSR. Thus we give the axis the possibility of conquering said hex so that it does not happen. In addition, it is only checked once, so if it is later reconquered by the USSR, the event does not occur.

I see the problem with the event that makes the moved factory appear in Siberia, since I can set a date for it, but I don't see a way to cancel this event if the first event does not occur, let's say that if the axis takes Kiev before the date in that the transfer occurs, the resource of Kiev does not change and the production is captured by the axis, but in any case the factory will appear in siberia on the marked date. How I can avoid this?

//USSR
$GiveResource
if_Date=8/1/1941
xyControl=206,59,Allies
actionCountry=4
lifespan=once
xyArea=206,59,30
addReportTo=Allies
text=Soviet rails factories away from key industrial areas reducing production by 5.
$End

//USSR moves factories
$GiveResource
if_Date=6/15/1942
actionCountry=4
lifespan=tillTrigger
xyArea=240,76,60
addReportTo=Allies
text=Soviet railed factories come online in the Urals.
$End




stjeand -> RE: Event transfer of Russian factories to Siberia (2/2/2022 11:40:58 AM)

To the best of my knowledge there is no way other than the flag event. But that event can only be used once. So IF the first event is triggered you set the flag. The can check the flag in the next event.

Sadly there is only one "flag" so...this could only occur once.


And yes...if the Soviets lose Kursk...prior to the factory moving...they still get the factory that was captured.




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/2/2022 12:55:15 PM)

I already tried the flag with another event and I saw that it didn't work, what I didn't know is that it works for once. Thanks Stejeand.

So the only way is for the event to be triggered only by dates, choose a date where it is impossible for the axis to take the hex. And the second event, the appearance of production in Siberia, also by date, 6 months later for example.




AlvaroSousa -> RE: Event transfer of Russian factories to Siberia (2/2/2022 3:06:32 PM)

Show the flag event scripts you made. Post them here.




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/2/2022 3:36:06 PM)

In this thread I commented on it, it gave me an error and I had to remove it and do it in another way.

https://www.matrixgames.com/forums/tm.asp?m=5020063&mpage=1&key=event%2Cflag�

Anyway I'll use "flag" for factory evacuation events and check it out.




AlvaroSousa -> RE: Event transfer of Russian factories to Siberia (2/2/2022 4:55:08 PM)

public const string If_Flag = "if_Flag";
public const string Flag = "flag";

I'm looking at the code it should work. I need to test it better.




ncc1701e -> RE: Event transfer of Russian factories to Siberia (2/2/2022 6:01:50 PM)

I have already tried this for the same factory scripting:
https://www.matrixgames.com/forums/tm.asp?m=5126988

This code works:

//Germany Annexes Poland
$ChangeTerritory
if_Date=1/1/1939
if_Country=42
if_Surrender=true
actionCountry=42
targetCountry=6
lifespan=tillTrigger
xyArea=allHexes
changeBorders
addReportTo=All
text=Germany annexes Western Poland into Greater Germany.
flag=1
$End

//USSR moves factories
$GiveResource
if_Date=6/15/1942
if_Flag=1
xyControl=233,73,Allies
actionCountry=4
lifespan=tillTrigger
xyArea=237,74,62
addReportTo=All
text=Soviet railed factories come online in the Urals.
$End




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/2/2022 6:47:02 PM)

I put this:

//USSR moves factories Kiev
$GiveResource
if_Date=8/1/1941
xyControl=189,46,Allies
actionCountry=4
lifespan=once
flag=1
xyArea=189,46,84
addReportTo=Allies
text=Soviet rails factories away from key industrial areas reducing production by 5.
$End

//USSR arrival factory Kiev to Siberia
$GiveResource
if_Date=9/1/1941
if_flag=1
actionCountry=4
lifespan=once
xyArea=237,74,28
addReportTo=Allies
text=Soviet railed factories come online in the Siberia.
$End

//USSR moves factories Sevastopol
$GiveResource
if_Date=8/1/1941
xyControl=189,46,Allies
actionCountry=4
lifespan=once
flag=2
xyArea=189,46,84
addReportTo=Allies
text=Soviet rails factories away from key industrial areas reducing production by 5.
$End

//USSR arrival factory Sevastopol to Siberia
$GiveResource
if_Date=9/1/1941
if_flag=2
actionCountry=4
lifespan=once
xyArea=240,76,28
addReportTo=Allies
text=Soviet railed factories come online in the Siberia.
$End

And when loading it gives me an error


[image]local://upfiles/42962/08200DFD39BB497EA2DA4817D76FE3DA.jpg[/image]




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/2/2022 6:50:20 PM)

What did I do wrong?

[image]local://upfiles/42962/703A880B1FC444CF87EBF41F1A650A24.jpg[/image]




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/2/2022 6:59:00 PM)

I saw that it had other events with Flag and I deleted them, but now the error is:

[image]local://upfiles/42962/D4A573A3593E4581A9F8462F84AD232B.jpg[/image]




stjeand -> RE: Event transfer of Russian factories to Siberia (2/2/2022 7:36:49 PM)

Only 1 flag works if I remember...
I think you have to get rid of the flag 2.




AlvaroSousa -> RE: Event transfer of Russian factories to Siberia (2/2/2022 8:07:50 PM)

"if_Flag" to check capitol F
"flag" to assign




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/2/2022 9:33:27 PM)

Yes, it was the capital "F". Thank you Alvaro!

Works perfectly with various flags! flag=1, flag=2, flag=3...




ncc1701e -> RE: Event transfer of Russian factories to Siberia (2/3/2022 11:37:16 AM)

Cool, for me, there are three cities which should have more PP and must be treated by scripts:
Kiev - 10 PP
Kharkov - 15 PP
Smolensk - 10 PP


We are not yet there but, when Soviets will be balanced, this is an incentive for USSR player to fight there, before a certain date, instead of withdrawing.




stjeand -> RE: Event transfer of Russian factories to Siberia (2/3/2022 1:31:28 PM)

What I don't get is how does the flag ever = 1 on 9/1?

Your code says on 8/1 set flag to 1...now overwrite that with flag = 2...so flag is never set to 1 for it to check.

Perhaps I am misreading something.

ON 8/1

First statement
If 8/1
And Kiev USSR owned
Set Flag = 1

Second statement if 9/1
Which it is not skip

Third statement
On 8/1
IF Smolesk USSR
Set flag = 2

Fourth statement
If 9/1
Which it is not skip.


ON 9/1
Second statement
IF flag = 1
Which it does not skip
So factory never moves

Fourth statement
IF flag = 2
Which is true


Did I misread something?




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/3/2022 4:14:03 PM)

First event occurs if:
We are in August 41
And Kiev is controlled by the allies
We identify this event with: Flag=1

Second event occurs if:
We are in September 41
And the previous event, Flag=1, occurred

I put September to be able to quickly check the event.




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/3/2022 4:23:26 PM)

quote:

ORIGINAL: ncc1701e

Cool, for me, there are three cities which should have more PP and must be treated by scripts:
Kiev - 10 PP
Kharkov - 15 PP
Smolensk - 10 PP


We are not yet there but, when Soviets will be balanced, this is an incentive for USSR player to fight there, before a certain date, instead of withdrawing.

I get the information from board games that I have, War in Flames, Russia Besieged, and The Russian Campaign. In none of them there are factories in Smolensk, yes in Kiev and Kharkov, although I think only 1 factory. I will make some production and manpower changes in my mod, but very few, I can unbalance the game.




Nikel -> RE: Event transfer of Russian factories to Siberia (2/3/2022 5:03:39 PM)

In Smolensk Soviets had Aviation Plant number 35, and was transferred to Plant 122 in Kuibyshev.

You can read the story in the link below with google translation:


quote:

In 1938-1939, the plant mastered the repair of SB, I-15, I-16 aircraft, M-100, M-25 engines. In 1939-1941, the plant was preparing production for large-scale production of the latest Il-2 aircraft for that time, but the outbreak of war frustrated these plans. The front was rapidly approaching Smolensk, and the plant was evacuated. Already on July 7, 1941, the first part of the evacuated workers was enrolled in the staff of the plant No. 122, which was being built in Kuibyshev. Smolensk residents made up 90% of the skilled workforce of the new enterprise. Completely taken out of plant number 35, the equipment and equipment for the IL-2 made it possible to start producing combat aircraft almost in an open field. In October 1941, the teams of plants No. 35 and No. 122 became part of the plant No. 1, evacuated from Moscow (now the Samara plant "Progress").


http://www.smaz.ru/about/vehi-istorii/




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/3/2022 6:06:42 PM)

We are talking about a factory, when in other cities there were hundreds of factories.




Nikel -> RE: Event transfer of Russian factories to Siberia (2/3/2022 7:08:22 PM)

It was just an example, I do not know how many were evacuated from Smolensk.

Regarding numbers, note that not all were transferred to the Urals.


According to this graphic:

Urals: 667.

Central Asia: 308.

Western Siberia: 244.

Volga: 226.

Eastern Siberia: 78.


And apparently is missing Transcaucasia.




[image]https://i.redd.it/pke4m7pvo3u01.jpg[/image]




ncc1701e -> RE: Event transfer of Russian factories to Siberia (2/3/2022 7:13:52 PM)

Super initiative CHINCHIN, I think the based game should increase the number of PP evacuation.
Super document Nikel.




stjeand -> RE: Event transfer of Russian factories to Siberia (2/3/2022 7:25:23 PM)

Honestly could just increase the USSR multiplier which would be easier given certain events...

Due to the rapid Axis advance though the USSE heartland factories are not operating day and night to produce weapons of war...
+3%


OR this could be in conjunction.
Should only occur if the Germans are advancing rapidly so would have to be date based. Not looked but don't remember being able to set an end date...
Issues could be the Russians just falling back to gain more PP...though they have to take the territory back so may not be so wise.




Nikel -> RE: Event transfer of Russian factories to Siberia (2/3/2022 7:59:02 PM)


quote:

ORIGINAL: ncc1701e

Super initiative CHINCHIN, I think the based game should increase the number of PP evacuation.
Super document Nikel.



Yes, it is a nice graphic of the destination.


But would be nice to have also the reverse one, the origin of the factories. [8|]




ncc1701e -> RE: Event transfer of Russian factories to Siberia (2/3/2022 9:15:04 PM)

Yes very hard to find a good source about it.




CHINCHIN -> RE: Event transfer of Russian factories to Siberia (2/3/2022 9:38:08 PM)

According to data that I have been able to collect, about 600 factories in the Ukraine, as many in Moscow, 100 in the Leningrad area.

http://www.de1939a1945.com/casos/004gmf01.htm

Thanks for the information!




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
1.703125