Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Is scripting(_events.txt) working?

 
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 >> Is scripting(_events.txt) working? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Is scripting(_events.txt) working? - 11/6/2019 11:17:46 AM   
Isoko

 

Posts: 84
Joined: 5/19/2017
Status: offline
Europe 1939

_events.txt

//##########################################
//UK give A.I. transports and landing craft
$ModifyCountry
if_Date=3/1/1942
actionCountry=1
lifespan=tillTrigger
AIOnlyEvent=Allies
transports=35
landingCraft=20
$End

I changed as follows

$ModifyCountry
if_Date=9/15/1939
actionCountry=1
lifespan=tillTrigger
transports=35
landingCraft=20
$End

I played Allies.
I checked UK(9/15/1939 turn)
Transports and landingcraft were not increased.

Is $ModifyCountry AI only?

_events.txt

//UK gets manpower from Poland's fall
$ModifyCountry
if_Date=9/15/1939
if_Country=42
if_Surrender=true
actionCountry=1
lifespan=tillTrigger
manpower=20
text=Polish prime minister and commander Wladyslaw Sikorski, evacuates Polish forces to Allied controlled territory as his country falls to the German invasion. England gains 20 manpower.
addReportTo=Allies
$End

I played Allies.
I checked UK(9/15/1939 turn)
The message is not displyed.
Manpower is not increased.

I checked output_log.txt.

Excerpt
(Filename: Line: 216)

Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 5.992800 ms

Unloading 3882 unused Assets to reduce memory usage. Loaded Objects now: 575.
Total: 63.655000 ms (FindLiveObjects: 0.880600 ms CreateObjectMapping: 0.282600 ms MarkObjects: 26.008900 ms DeleteObjects: 36.482500 ms)

Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 1.451600 ms

Unloading 33 unused Assets to reduce memory usage. Loaded Objects now: 1199.
Total: 30.278100 ms (FindLiveObjects: 0.735500 ms CreateObjectMapping: 0.041400 ms MarkObjects: 27.976600 ms DeleteObjects: 1.524500 ms)

Unloading the last loaded scene Assets/game.unity(build index: 1), is not supported. Please use SceneManager.LoadScene()/EditorSceneManager.OpenScene() to switch to another scene.

(Filename: Line: 216)

Please tell me.
What should I do?

_____________________________

Post #: 1
RE: Is scripting(_events.txt) working? - 11/6/2019 12:29:32 PM   
Isoko

 

Posts: 84
Joined: 5/19/2017
Status: offline
I understand the cause.
I did not follow the steps below.
Change scripts(I only did this)
Open editer
Push File/Quit
Push Load All Scripts
Save File

_____________________________


(in reply to Isoko)
Post #: 2
RE: Is scripting(_events.txt) working? - 11/6/2019 2:12:54 PM   
AlvaroSousa


Posts: 6935
Joined: 7/29/2013
Status: online
Why not just add the values directly to the countries?

_____________________________

Games worked on

Designer of the Strategic Command 2 products
- Brute Force (mod)
- Assault on Communism
- Assault on Democracy

Designer of the Strategic Command 3 products
- Map Image Importer

(in reply to Isoko)
Post #: 3
RE: Is scripting(_events.txt) working? - 11/6/2019 3:09:11 PM   
Isoko

 

Posts: 84
Joined: 5/19/2017
Status: offline
I think this event(UK give A.I. transports,landing craft and Give Allied A.I. escorts,etc)is Lend-Lease Acts.
So I dont add the values directly to the contries.

_____________________________


(in reply to AlvaroSousa)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> WarPlan >> Is scripting(_events.txt) working? 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

0.109