Is it possible to edit file to change state of war?

Post new mods and scenarios here.

Moderator: Shannon V. OKeets

Post Reply
jjdenver
Posts: 2474
Joined: Thu Nov 01, 2007 11:07 pm

Is it possible to edit file to change state of war?

Post by jjdenver »

We have a game where we houseruled JP-SU peace pact. Thus leaving JP-SU at war even though JP "surrendered" to SU giving up Manchuria.

Now China may surrender to JP. Is there any way to edit the game file to set JP & SU to "peace" before surrendering China so that JP goes back to true peace with MIL & reserves removed and action limits back to combined, etc? If not we'll have to edit the units back to Japan and have JP pick combined but ideally we'd like to just set JP/SU to peace before surrendering China.

Thanks
AARS:
CEAW-BJR Mod 2009:
tm.asp?m=2101447
AT-WW1:
tm.asp?m=1705427
AT-GPW:
tm.asp?m=1649732
markb50k
Posts: 1224
Joined: Thu Jul 01, 2004 1:26 pm
Location: Spring, TX

RE: Is it possible to edit file to change state of war?

Post by markb50k »

The answer is yes. But the details of how you'd have to do some experimenting.

My recommendation would be to start a new game you can discard, and get to the point where you are going to declare war between SU and Japan.
Save the game,

then declare war, and save again.

Then do a diff in any comparison program (WinMerge is fantastic) and compare the two save files. There will likely be 3-4 lines different, and those are the ones you'd want to revert in your own game. They'll be towards the top of the file before the units. The USSR section has a long line of numbers that represents its relationship with all countries. Japan would be the 50th value (since its number 49, and the countries start with 0). That's definitely one you'll likely have to change.

In the Japan section, the same, except your looking for the 52nd value since Soviet Union is country 51.

I think 0 means war, but can't remember exactly. You'll be able to tell because you'll see the values change from save to save.

There will likely be other spots (at least one) around there which will change as well.
markb50k
Posts: 1224
Joined: Thu Jul 01, 2004 1:26 pm
Location: Spring, TX

RE: Is it possible to edit file to change state of war?

Post by markb50k »

Here is an entry from my modded game, for the US..

11,11
11,11
-1,0,-1,0
-1,CSet
0
0
0,0,-1,-1
2,2,1,1,1,1,1,1,1,1,1,3,2,2,2,2,2,2,1,2,2,2,1,1,1,2,2,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,0,0,1,0,1,2,2,2,1,2,1,1,1,1,0,1,2,1,1,1,2,1,1,1,1,1,1,2,2,2,0,1,2,2,2,1,2,2,2,2,1,0,0,2,1,1,1,1,2,0,1,1,1,1,2,1,1,1,1,1,2,2,2,0,2,1,2,2,2,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,0,2,1,0,2,1,1,1,1,1,1,2,2,1,1,2,1,2,2,1,2,1,2,2,2,1,2,2,1,1,1,2,2,2,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,3,3,3,1,1,1,0

notice the two number i have bolded. Thats the values for country 49 (Japan) and 50 (Korea) which are both countries US is at war with, for example
Post Reply

Return to “Mods and Scenarios”