Jump to content

resource.txt file verify something


Recommended Posts

Ok I figured out how to get real produtcion from using this file. But I want to know how the program reads it?

My idea was to block resources and bring them online as the war passes using the #DATE field.

Take Germany for example

so if I have a set of scripts like this...

1939 #RESOURCE= ABCDEF delisted #DATE = 01/01/40

1940 #RESOURCE= ABCDE delisted #DATE = 01/01/41

1941 #RESOURCE= ABCD delisted #DATE = 01/01/42

1942 #RESOURCE= ABC delisted #DATE = 01/01/43

1943 #RESOURCE= AB delisted #DATE = 01/01/44

1944 all resources and cities online so no script

So if I read the scripts correctly and they go top-down in read order if its 1939 ABCDEF are delisted from MPP and the program will also process the rest, ok no problem. Then 1/1/1940 date hits the 1939 script activates all the resourses but as soon as the program sees the 1940 script it delists ABCDE and only F comes online. 1/1/1941 hits and ABCDE are brought online (1940 script has hit its #DATE) but the 1941 script right below it shuts down ABCD.

Is this how it would work? I hope so because it will solve a big problem and stablize my scenario.

Like the script for Japan is defeated below.

; USA Victory in the Pacific

{

#NAME= Canadian Industry Mobilizes For Total War

#POPUP= Canadian Industry Mobilizes For Total War

#IMAGE=

#SOUND= troops2.wav, industry.wav

#FLAG= 1

#TYPE= 1

#AI= 0

#LEVEL= 0

#COUNTRY_ID= 14

#TRIGGER= 100

#GV= 1[1,100]

#LINK= 0[0]

; Failsafe Activation Date on Surrender of Japan

#DATE= 1945/08/10

#RESOURCE= 10,22

#RESOURCE= 27,24

; dummy condition position, never satisfied

#CONDITION_POSITION= 0,0 [0,0] [1,1] [1] [0]

}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...