Documentation
Readme
View as plain text
I will try to keep the list of options up to date in here, but you can always
see the complete list by deleting your "invictor.cfg" and rerunning invictor.
(Be sure you are ok with modifying the save file with the default option to
just clear unrest.)
Invictor is a simple save file tweaker for Terra Invicta. Because it modifies
the JSON files directly by searching for key strings, it should be relatively
proof against changes to the save file contents on game updates.
Invictor works on JSON save files. To use it, either turn off the
"compress save files" option in your settings, or you will have to manually
unzip and re-zip the compressed GZ files.
Normally you use Invictor either by dropping a JSON save file onto it, or
by double-clicking to use "Exitsave.json". In the latter case you need to
put Invictor.exe in your game save directory so it can find the file.
Rather than potentially damaging your save file, Invictor writes (or replaces)
a file called "Invictor.json". So the most normal workflow is:
* (Optional) Save your game manually.
* Exit to the main menu or quit TI completely. (The game will automatically
write "Exitsave.json".)
* Double-click Invictor.exe to create a new Invictor.json
* Go back into the game and load Invictor.json.
* Profit
Invictor displays basic progress and status messages to the console window
that shows up while it is running. It writes richer (debug level, really)
information to a file called "invictor.log" in the same directory as the
save files. If something notable happens (i.e. an error that might mean the
output is unusable), the console window will stay open and prompt you to
hit Enter to dismiss it.
If there is a file called "invictor.cfg" in the same directory as the save
file, and that file has a string like "Mode = op<something valid>" or
"Mode = 0x<some hex string>", Invictor will use that mode. Since that's the
only thing Invictor actually uses, the rest of the default generated config
is there for your information and convenience in choosing a mode.
If it can't find or use the config file, Invictor will use the default mode
(opNoMicro as of 1.3; opUnrest before that), and write a new config file with
the list of supported modes in text and the value properly set to opUnrest.
Invictor scans through the save file to figure out which faction the human
(as opposed to an AI) is playing, then change only the nations that the human
player has executive control over. It then applies the selected tweaks to
those nations.
The following values are recognized as of Invictor version 1.2:
Single operations:
opUnrest (0x01) Just set unrest to 0
opInequality (0x02) If inequality > 3, set to 3
opCohesion (0x04) If cohesion not between 6 and 8.9999, set to 6
opEducation (0x08) If education < 5, set to 6
opDemocracy (0x10) If democracy < 5, set to 6
opMilTech (0x20) Bring MilTech up to the max found in your nations
opResetSpend (0x40) Reset the limits on direct investment per nation
opPopularity (0x80) If popularity <51%, make it 51% and split the other 49 points up
opDefenseFix (0x100) Make all defended control points in a country expire on the latest date present
Handy combinations:
opStabilize (0x07) Unrest, Inequality, and Cohesion
opIdyllic (0x1f) Unrest, Inequality, Cohesion, Education, Democracy
opWarReady (0x3f) opIdyllic plus opMilTech
opUtopian (0xbf) opIdyllic plus opPopularity
opNoMicro (0x101) Unrest and DefenseFix. New default as of 1.3.0
Use one of these values if you want future versions of Invictor to apply all
the tweaks they know. Beware - I don't know what I might do in the future,
and there may be conflicts that I'll resolve by picking one for you.
opAllNationOps (0xfff) all operations on owned nations
opBigFatCheater (0xffff) everything