openai / retro

Retro Games in Gym
MIT License
3.35k stars 524 forks source link

Unable to load save states from RetroArch #247

Open jyrance opened 3 years ago

jyrance commented 3 years ago

Issue summary

I am unable to load save states generated from RetroArch.

I have tried the steps mentioned at https://github.com/openai/retro/issues/33, which include creating a save state using RetroArch, gzipping them while preserving the .state extension. I have also loaded the cores from site-packages/retro/cores into RetroArch. However, states generated in this manner cannot be loaded by the Integration UI or through retro.make.

While I am able to load states generated using the Integration UI, this means I would have to play the game until the desired state through the Integration UI and save the state then. This is problematic if the state is only accessible later into the game. Ideally, I would like to load an existing save file through RetroArch, create a save state there then port it to gym retro.

System information

kalashnikovisme commented 2 years ago

Have the same issue.

When I try to load my states made via RetroArch I have this error

OSError: Not a gzipped file (b'#R')

on the line with retro.make function

endrift commented 2 years ago

You need to gzip them first @kalashnikovisme