Changing Character Gender in Save Files
I've thrown together a simple tool to help players change their character's gender in Rune Factory 4 Special. This guide explains both the simple usage and technical implementation details.
Quick Start Guide
- Download the rf4_save_fixer.py script from here: https://gist.github.com/8f00ff/754eb2f2f0f290e794f435801a464fa6
- Open a terminal/command prompt
- Run the script:
python rf4_save_fixer.py gender rf4_s01.sav -s rf4_sys.sav female
Technical Details
The gender system uses two save files:
1. Player Save File (rf4_s01.sav to rf4_s20.sav)
- Controls in-game gender
- Gender bit at offset 0x36
- CRC in first 4 bytes
2. System Save File (rf4_sys.sav)
- Controls save/load menu display
- Gender bits start at 0x500
- 0xA4 bytes between slots
- Auto-updates on game save
- CRC in second 4 bytes
Script Features
Core commands:
- verify: Detailed save integrity check
- fix: Repair save file checksums
- gender: Change character gender
Examples:
# Verify save integrity
python rf4_save_fixer.py verify rf4_s01.sav
# Fix CRC after manual edits
python rf4_save_fixer.py fix rf4_s01.sav
When using the gender command with a system save file, the script extracts the slot number from the player save filename (e.g., rf4_s01.sav is slot 1). The filename format must be "rf4_s%02d.sav" where %02d is the slot number (01-20) - this matches the game's own save file detection logic. Using different filenames will prevent both the script and game from finding the correct saves.
Manual Editing
- Edit values in hex editor
- Fix CRC with script:
# After editing names in rf4_sys.sav
python rf4_save_fixer.py fix rf4_sys.sav
# After editing player save
python rf4_save_fixer.py fix rf4_s01.sav
Safety
Always backup your save files before making any changes! While the script is designed to be safe, it's always better to be careful with save files.
1 comment