Coder Social home page Coder Social logo

Comments (6)

folivetti avatar folivetti commented on July 21, 2024

If you change these lines:

if(time == 0x1){ //shai:comparing to 1 not zero to avoid terminal upon first run
m_terminal=true;
}
else{ // check if the timer has stopped
if ( (0 < time && time < 300) && (std::adjacent_find( m_lastTime.begin(), m_lastTime.end(), std::not_equal_to<int>() ) == m_lastTime.end()) ){
m_terminal=true;
}
}

To

if (readRam(&system, 0xdda) == 0xff) { m_terminal=true; }

it works

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on July 21, 2024

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.

from retro-learning-environment.

folivetti avatar folivetti commented on July 21, 2024

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?

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on July 21, 2024

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.

from retro-learning-environment.

folivetti avatar folivetti commented on July 21, 2024

that already happened before. My temp solution was to start a new RLE object

from retro-learning-environment.

nadavbh12 avatar nadavbh12 commented on July 21, 2024

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.

from retro-learning-environment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.