Editing Treaties Not Working

This forum has been archived. Please use the new modding forum. If you need to retrieve a thread from here, contact BattleGoat.

Moderators: Balthagor, BattleGoat

Post Reply
Aawish
Warrant Officer
Posts: 44
Joined: Mar 09 2016
Human: Yes

Editing Treaties Not Working

Post by Aawish »

I edited the W2020.csv file as below:
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
// RelRegionID, Treatynum, DipRel, CivRel, BelliRel,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
&&CVPREL,2303,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2301,120,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2302,120,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2303,120,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
NOTE:
2301 // Argentina -
2302 // Bolivia -
2303 // Brazil -
2304 // Chile -

According to rtreaties file:
120,,,1,0,Declare War against ...,Immediately Declare War on the Selected Region,,,


According to the above coding or whatever it is, Brazil should instantly start war against Argentina,Bolivia, and Chile, but nothing happens when i start the game after this. This code works when I use "1" instead of "120" i.e 1=Formal Alliance. Why it is not working for 120? do i have to re-cache the game, in order it to work?

UPDATE: I even re-cached still immediate war not working. What should I do?
dax1
Brigadier Gen.
Posts: 511
Joined: Apr 05 2012
Human: Yes
Location: Italy

Re: Editing Treaties Not Working

Post by dax1 »

I'm not sure...try to add this one...

&&CVPREL,2301,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
2303,120,0,0,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

but I believe Battlegoat has removed some of those treatises
http://www.supremewiki.com/node/79
Con forza ed ardimento
vahadar
Colonel
Posts: 257
Joined: May 19 2010
Human: Yes

Re: Editing Treaties Not Working

Post by vahadar »

I guess you took inspiration from the GC2020.csv and the &&CVPREL?

You can use the event system (with event 17) in W2020.csv to achieve what you want to do.
From what i understand you want Brazil to declare war against Argentina, Bolivia, and Chile at game start, this is the code you need to insert under &&SEVENTS in your W2020.csv :

Code: Select all

IDofLineHere, 0, 0, 17, 0, 2303, 2301, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , // Brazil vs Argentina
IDofLineHere, 0, 0, 17, 0, 2303, 2302, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , // Brazil vs Bolivia
IDofLineHere, 0, 0, 17, 0, 2303, 2304, 0, 0, 0, 0, 0, 0, 0, 0, 0, , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, , // Brazil vs Chile
explanation :
"IDofLineHere" : put whatever id you want for this line, number just need to be greater than last line in the W2020.csv, and so on for each line added. Ie if last line id under section &&SEVENTS was 17000, put 17001 or something greater, next one would be 17002 and so on...

Note, this sets a war without any other countries relationships changing, you need to alter relations between countries in addition if you want, this is done through event 14, or through &&CVPREL
see wiki for details
https://supremeruler.gamepedia.com/Events
Post Reply

Return to “Modding SRUltimate”