DeadGodHelper/SaveExtractor/README.md

37 lines
1.5 KiB
Markdown

# SaveExtractor.py
A save file extractor for The Binding Of Isaac: Repentance.
Ported from [wofsauge/IsaacSavegameReader](https://github.com/wofsauge/IsaacSavegameReader/blob/main/Program.cs#L228), in order to be more easily ran on Linux.
It generates files that can be used in External Item Descriptions, and Dead God Helper. Theses files contain information about which items were already picked up.
## Usage
```sh
python ./saveextractor.py path/to/savefile.dat saveid
```
It will generate the following files in the current directory:
- `eid_savegame.lua` to be put in EID's mod folder, inside the `scripts` subfolder
- `saveX.dat` to be put in DeadGod Helper's data folder
## Example
Since I'm on Linux (and using the Steam version of TBOI), folders are a little bit different than on Windows, more info for save files location [here](https://github.com/Zamiell/isaac-faq/blob/main/directories-and-save-files.md)
### Extracting information from save file 2
The number `196602716` corresponds to my Steam Account ID, it will be different on your side.
```sh
python ./saveextractor.py ~/.steam/steam/userdata/196602716/250900/remote/rep_persistentgamedata2.dat 2
```
### Moving generated files to the corresponding location
```sh
mv save2.dat ~/.local/share/Steam/steamapps/common/The\ Binding\ of\ Isaac\ Rebirth/data/deadgod\ helper/
mv eid_savegames.lua ~/.local/share/Steam/steamapps/common/The\ Binding\ of\ Isaac\ Rebirth/mods/external\ item\ descriptions_836319872/scripts/
```