- Joined
- Dec 11, 2018
- Messages
- 1,222
- Trophies
- 0
Reddit - Dive into anything
www.reddit.com
In order to do all of this:
- Clone the Mario 64 decompilation git repo at n64decomp/sm64 and follow the instructions in the README
- You need a dump of your Super Mario 64 cartridge.
- Run these commands from the top-level git directory to replace all the instances of sounds with the one with label 0B.
Bash:
sed -i 's/"sound": "[^"]*"/"sound": "0B"/g; s/"sample": "[^"]*"/"sample": "0B"/g' $(find sound/sound_banks/ -type f)
sed -i 's/"sound_hi": "[^"]*"/"sound_hi": "0B"/g' $(find sound/sound_banks/ -type f)
sed -i 's/"sound_lo": "[^"]*"/"sound_lo": "0B"/g' $(find sound/sound_banks/ -type f)
sed -i 's/"sample_bank": "[^"]*"/"sample_bank": "sfx_mario"/g;' $(find sound/sound_banks/ -type f)- Run make -j6
- Run an N64 emulator on the file build/XX/sm64.XX.z64