Setup
-
Install Python 3.8 or higher.
-
Install the dependencies with
pip install -r requirements.txt
-
Run
python main.py <input_file>
to generate the.pnach
file.- Use the
-o
argument to specify the output directory if desired.
- Use the
-
Put the
.pnach
file in yourpcsx2/cheats
folder, enable cheats, and start the game.
Usage
python main.py <input_csv> <options>
The script supports the following optional arguments:
-o <output_dir>
- The output directory for the pnach file (default is./out/
)-n <mod_name>
- The name of the mod. The output file will be<crc>.<mod name>.pnach
(default is the same as the input file)-r <region>
- The region of the game. Can bentsc
orpal
(default isntsc
)-d <dialect>
- The language the pnach should work for (PAL only). If not set, it will affect all languages.- Can be
en
,fr
,it
,de
,es
,nd
,pt
,da
,fi
,no
, orsv
. - Only one language pnach file may be used at a time.
- Can be
-l
- Enable live edit mode. This will allow you to edit the strings in the csv and the pnach will automatically update.-v
- Enable verbose output-h
- Show help
Changelog
- Fixed bugs related to script args by @TheOnlyZac in #4
- Implemented csv live edit mode by @TheOnlyZac in #5
- Updated util scripts by @TheOnlyZac in #6
- Added Assembler utility class by @TheOnlyZac in #11
- Multiple language support for PAL version by @TheOnlyZac in #7
- Cleaned up and annotated code by @TheOnlyZac in #12
Full Changelog: v1.1.0...v1.2.0