Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Event transfer of Russian factories to Siberia

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> WarPlan >> Event transfer of Russian factories to Siberia Page: [1]
Login
Message << Older Topic   Newer Topic >>
Event transfer of Russian factories to Siberia - 2/2/2022 8:59:55 AM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
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

_____________________________

My native language is Spanish, and no English language mastery, sorry.
Post #: 1
RE: Event transfer of Russian factories to Siberia - 2/2/2022 11:40:58 AM   
stjeand


Posts: 1508
Joined: 1/10/2021
From: Aurora, NC
Status: offline
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.

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

 

Posts: 416
Joined: 9/2/2012
Status: offline
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.

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to stjeand)
Post #: 3
RE: Event transfer of Russian factories to Siberia - 2/2/2022 3:06:32 PM   
AlvaroSousa


Posts: 9927
Joined: 7/29/2013
Status: offline
Show the flag event scripts you made. Post them here.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to CHINCHIN)
Post #: 4
RE: Event transfer of Russian factories to Siberia - 2/2/2022 3:36:06 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
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.

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to AlvaroSousa)
Post #: 5
RE: Event transfer of Russian factories to Siberia - 2/2/2022 4:55:08 PM   
AlvaroSousa


Posts: 9927
Joined: 7/29/2013
Status: offline
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.

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to CHINCHIN)
Post #: 6
RE: Event transfer of Russian factories to Siberia - 2/2/2022 6:01:50 PM   
ncc1701e


Posts: 7380
Joined: 10/29/2013
From: Utopia Planitia Fleet Yards
Status: offline
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


_____________________________

Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.

(in reply to AlvaroSousa)
Post #: 7
RE: Event transfer of Russian factories to Siberia - 2/2/2022 6:47:02 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
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





Attachment (1)

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to ncc1701e)
Post #: 8
RE: Event transfer of Russian factories to Siberia - 2/2/2022 6:50:20 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
What did I do wrong?




Attachment (1)

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to CHINCHIN)
Post #: 9
RE: Event transfer of Russian factories to Siberia - 2/2/2022 6:59:00 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
I saw that it had other events with Flag and I deleted them, but now the error is:




Attachment (1)

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to CHINCHIN)
Post #: 10
RE: Event transfer of Russian factories to Siberia - 2/2/2022 7:36:49 PM   
stjeand


Posts: 1508
Joined: 1/10/2021
From: Aurora, NC
Status: offline
Only 1 flag works if I remember...
I think you have to get rid of the flag 2.

(in reply to CHINCHIN)
Post #: 11
RE: Event transfer of Russian factories to Siberia - 2/2/2022 8:07:50 PM   
AlvaroSousa


Posts: 9927
Joined: 7/29/2013
Status: offline
"if_Flag" to check capitol F
"flag" to assign

_____________________________

Creator Kraken Studios
- WarPlan
- WarPlan Pacific

Designer Strategic Command
- Brute Force (mod) SC2
- Assault on Communism SC2
- Assault on Democracy SC2
- Map Image Importer SC3

(in reply to stjeand)
Post #: 12
RE: Event transfer of Russian factories to Siberia - 2/2/2022 9:33:27 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
Yes, it was the capital "F". Thank you Alvaro!

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

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to AlvaroSousa)
Post #: 13
RE: Event transfer of Russian factories to Siberia - 2/3/2022 11:37:16 AM   
ncc1701e


Posts: 7380
Joined: 10/29/2013
From: Utopia Planitia Fleet Yards
Status: offline
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.

_____________________________

Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.

(in reply to CHINCHIN)
Post #: 14
RE: Event transfer of Russian factories to Siberia - 2/3/2022 1:31:28 PM   
stjeand


Posts: 1508
Joined: 1/10/2021
From: Aurora, NC
Status: offline
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?

(in reply to ncc1701e)
Post #: 15
RE: Event transfer of Russian factories to Siberia - 2/3/2022 4:14:03 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
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.

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to stjeand)
Post #: 16
RE: Event transfer of Russian factories to Siberia - 2/3/2022 4:23:26 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
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.

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to ncc1701e)
Post #: 17
RE: Event transfer of Russian factories to Siberia - 2/3/2022 5:03:39 PM   
Nikel

 

Posts: 355
Joined: 3/24/2009
Status: offline
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/

(in reply to CHINCHIN)
Post #: 18
RE: Event transfer of Russian factories to Siberia - 2/3/2022 6:06:42 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
We are talking about a factory, when in other cities there were hundreds of factories.

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to Nikel)
Post #: 19
RE: Event transfer of Russian factories to Siberia - 2/3/2022 7:08:22 PM   
Nikel

 

Posts: 355
Joined: 3/24/2009
Status: offline
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.






< Message edited by Nikel -- 2/3/2022 7:11:52 PM >

(in reply to CHINCHIN)
Post #: 20
RE: Event transfer of Russian factories to Siberia - 2/3/2022 7:13:52 PM   
ncc1701e


Posts: 7380
Joined: 10/29/2013
From: Utopia Planitia Fleet Yards
Status: offline
Super initiative CHINCHIN, I think the based game should increase the number of PP evacuation.
Super document Nikel.

_____________________________

Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.

(in reply to Nikel)
Post #: 21
RE: Event transfer of Russian factories to Siberia - 2/3/2022 7:25:23 PM   
stjeand


Posts: 1508
Joined: 1/10/2021
From: Aurora, NC
Status: offline
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.

(in reply to ncc1701e)
Post #: 22
RE: Event transfer of Russian factories to Siberia - 2/3/2022 7:59:02 PM   
Nikel

 

Posts: 355
Joined: 3/24/2009
Status: offline

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.

(in reply to ncc1701e)
Post #: 23
RE: Event transfer of Russian factories to Siberia - 2/3/2022 9:15:04 PM   
ncc1701e


Posts: 7380
Joined: 10/29/2013
From: Utopia Planitia Fleet Yards
Status: offline
Yes very hard to find a good source about it.

_____________________________

Chancellor Gorkon to Captain James T. Kirk:
You don't trust me, do you? I don't blame you. If there is to be a brave new world, our generation is going to have the hardest time living in it.

(in reply to Nikel)
Post #: 24
RE: Event transfer of Russian factories to Siberia - 2/3/2022 9:38:08 PM   
CHINCHIN

 

Posts: 416
Joined: 9/2/2012
Status: offline
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!

_____________________________

My native language is Spanish, and no English language mastery, sorry.

(in reply to ncc1701e)
Post #: 25
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> WarPlan >> Event transfer of Russian factories to Siberia Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.031