Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES
Other
678 stars 133 forks source link

get y_pos #86

Closed michael20at closed 5 years ago

michael20at commented 5 years ago

Hi, great env, I'm trying to use it for the new go explore algorithm, but it needs the players y_pos as well. Any chance to integrate this, or is it already possible? info only returns x_pos.

A way to get player y_pos would be great!

Kautenja commented 5 years ago

Easily. Should have this change in place shortly. Should only take a few lines.

michael20at commented 5 years ago

Great, looking forward to it!

Also, is it possible to load a state (world and / or level) like in a retro env?

Something like env = gym_super_mario_bros.make('SuperMarioBros-v0', state="level1-1") or similar?

Kautenja commented 5 years ago

implemented in 7.2.1! Regarding the state feature, the underlying NES architecture does support it, but it isn't implemented at the moment. Feel free to open an issue over at nes-py for a state save feature. I wont have time to implement such a functionality any time soon, but yourself or someone else may take the challenge :)

michael20at commented 5 years ago

Nice, thank you for quick reply.