I was able to hack cheats to work with 2.6 by modifying the runcommand for mupen64plus. I tried with BETA 1 and now with a fresh BETA 2 and keep getting a Segmentation Fault error.
Has anyone else experienced this issue?
If you reach this post looking for cheats, here is how they *should* work for Mupen64plus:
– Download https://raw.githubusercontent.com/libretro/mupen64plus-libretro/master/mupen64plus-core/data/mupencheat.txt and place it in /opt/retropie/configs/n64
– Run /opt/retropie/emulators/mupen64plus/bin/mupen64plus –cheats list “/home/pi/RetroPie/roms/n64/Whatever ROM You Want To Cheat.z64”
You should then get a readout of the cheats available & make note of the ones you want to use.
Now, this is the part that is the “hack”, you must add an “emulator” to the list of run commands in /opt/retropie/configs/n64/emulators.cfg
I am trying to hack the cheating AI in Mario Kart 64 but I thought it would be best to start with a working cheat code (infinite stars). So I added this line:
mupen64plus-gles2n64-mkcheat=”/opt/retropie/emulators/mupen64plus/bin/mupen64plus –noosd –fullscreen –gfx mupen64plus-video-n64.so –configdir /opt/retropie/configs/n64 –datadir /opt/retropie/configs/n64 –cheats 0-3 %ROM%”
This is exactly like the mupen64plus-gles2n64 line EXCEPT, I modified the text before the = sign (adding mkcheat) and added the command-line option for the cheat at the end, though before the %ROM% variable. The 0 represents the number of the cheat code (Infinite Items) and the 3 represents the option (Invincibility Star) which gives us –cheats 0-3.
Now, what this does is give you an additional “emulator” to choose from when you configure the game/emu by hitting X or M after launching from EmulationStation. Change the default emulator+rom option to the “mkcheat” version and mupen should attempt to launch with cheats enabled.