Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tracktwo/xcomsave
Browse files Browse the repository at this point in the history
  • Loading branch information
tracktwo committed Nov 29, 2016
2 parents 6b68c8d + 77b39e2 commit f166c9f
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
8 changes: 8 additions & 0 deletions INSTALL.md
@@ -0,0 +1,8 @@
This guide assumes that your Operating System is Linux (Should be the same on *BSD). It may work on Windows but it wasn't tested.

# Downloading and bulding xcomsave
1. Clone xcomsave: `git clone https://github.com/tracktwo/xcomsave.git; cd xcomsave`
2. Clone json11: `rm -rf json11;git clone https://github.com/dropbox/json11.git`
3. Build xcomsave: `mkdir build; cd build; cmake ../.;`
4. Compile: `make; cd ..`
5. Copy **json2xcom** and **xcom2json** to a new directory. Those are the only files you need.
12 changes: 12 additions & 0 deletions KNOWN.md
@@ -0,0 +1,12 @@
This is a list of known strings in the savegame file.

# Funds:
look for the line containing `"name": "m_iCash", "kind": "IntProperty",`.

# Items:
Most of the items (Weapons, Alloys etc.) are located in an array called **m_arrItems**.

Meld is located in an array after `Meld "Command1.TheWorld:PersistentLevel.XGBattleDesc_0"`.
Please note that this array hold the amount you found since the beginning of the game and not your current amount.

# Team members
21 changes: 21 additions & 0 deletions USAGE.md
@@ -0,0 +1,21 @@
# General
In order to edit a save, you need to:
1. Locate your savegame folder. In steam on Linux it's: `~/.local/share/feral-interactive/XCOM/XEW/savedata/`
2. Convert the target save file to json with xcom2json.
3. Edit the file with your favorite text editor (Atom, gedit, KWrite etc.).
4. Convert the save file back to xcom format with json2xcom.

# xcom2json
Use `xcom2json <savegame_file>`.

The result will be an editable text file.

# json2xcom
Use `json2xcom <savegame_file>.json`.

You may use the "o" option to define the output file name: `json2xcom -o <output> <savegame_file>.json`

**Note**: XCOM:EW savegame files have no extension.



0 comments on commit f166c9f

Please sign in to comment.