Sly String Toolkit v1.0.0
Setup
-
Install Python 3.8 or later.
-
Install the dependencies with
pip install -r requirements.txt
-
Run
python main.py
to generate the.pnach
file.- Use the
-i
and-o
arguments to specify the input and output files.
- Use the
-
Put the
.pnach
file in yourpcsx2/cheats
folder and start the game.
Usage
python main.py <options>
The script supports the following optional arguments:
-i <inputfile>
- The name of the input csv file (default is./strings.csv
)-o <outputfile>
- The name of the output pnach file (default isout/07652DD9.mod.pnach
)-a <address>
- The address to write the strings to (default is203C7980
)-d
- Outputout.asm
andout.bin
files for debugging-v
- Enable verbose output-h
- Show help
Strings File Format
The input file should be a CSV where each row has the following format:
<string id>,<string>,<optional target address>
<string id>
is the ID of the string you want to replace<string>
is the string to replace it with<optional target address>
is the address to write the string to. If not specified, it will be written with the rest of the strings in a block at the address specified by the-a
option.
Everything after the third column is ignored by the script, so you can use them for notes if you want. You can make the file in Excel or Google Sheets and then export it as a CSV.