Open folivetti opened 6 years ago
If you change these lines:
To
if (readRam(&system, 0xdda) == 0xff) { m_terminal=true; }
it works
Thanks. Looks like it does fix it.
Though it seems the starting actions are broken. I vaguely remember that the first set of actions doesn't work once you start a game because of the internal saves in Mario. Moving to save states should solve these issues.
Though it seems the starting actions are broken.
it seems fine to me. Do you mean the initial inputs are not processed or the actions to start the game are not performed?
Once mario dies, I go to Yoshi's island rather than the beginning of the level. The starting_actions for the first time you run the game, aren't the same for all subsequent restarts.
that already happened before. My temp solution was to start a new RLE object
While that may work, it has a larger overhead compared to a simple reset. Furthermore, you'll need to manually seed the environment after every reset in order to avoid using the same seed every episode.
Whenever Mario hits a mushroom (and possibly any other item) the game returns True to game_over().