- Extract ROM image from your own Mega Man X4 (US version) original PSX disk
- Extract PSX BIOS from your own console
- Download BizHawk 2.9-rc2 from here and extract it locally
- Copy
states\eregion.State
to your BizHawkBizHawk-rc2\PSX\State
directory and rename it toMega Man X4 (USA).Nymashock.QuickSave0.State
- Create a virtual environment and install dependencies from
pyproject.toml
with Poetry or install dependencies with pip fromrequirements.txt
- Create a copy of
models_configs\example.yml
inside the same directory and rename it tosevs.yml
; fill in all the necessary parameters inside thepaths
level. Adjust any other parameters if you like. - Run
main.py
. - Results will show up during runtime inside
logs
directory. You can visualize them with TensorBoard by runningtensorboard --logdir logs
inside project root directory.
PS.: Windows only, sorry! The connection method depends on Windows-exclusive features of the emulator.
PS².: These instructions reproduce only the first boss of the game playing with the character named Zero
. I will make a more detailed guide in the future when I turn this into a library. UPDATE: In the future, I will adapt this case for stable-retro, which is the most promising successor of OpenAI's retro library and which I contribute to.