Giter VIP home page Giter VIP logo

Comments (13)

imcrazeegamer avatar imcrazeegamer commented on June 24, 2024

I have the same problem with running Sonic the Hedgehog (Genesis)

windows 7,I3 4160, GTX 1060, Python 3.5.5,PyCharm 2017.1.8

import retro

env = retro.make(game='SonicTheHedgehog-Genesis', state='GreenHillZone.Act1')
env.reset()


def the_random_player():

    while True:
        env.render()
        action = env.action_space.sample()
        observation, reward, done, info = env.step(action)
        if done:
            break
            
the_random_player()

from retro.

endrift avatar endrift commented on June 24, 2024

What version of gym-retro are you using?

from retro.

imcrazeegamer avatar imcrazeegamer commented on June 24, 2024

@endrift 0.10.5

from retro.

endrift avatar endrift commented on June 24, 2024

That's gym, not gym-retro.

from retro.

imcrazeegamer avatar imcrazeegamer commented on June 24, 2024

Sorry it's 0.5.6

from retro.

AurelianTactics avatar AurelianTactics commented on June 24, 2024

Do you have the wrong sonic rom? If you have the incorrect rom, you can get blue screened (though you may be getting blue screened for a different reason). You need the rom from Steam (or an equivalent version) if you have the wrong sonic rom you can get blue screened when loading states from the correct sonic rom. See example code below to test.

import retro

#this env will work with the correct rom but with the incorrect rom will lead to blue screen after a few frames
#env = retro.make(game='SonicTheHedgehog-Genesis', state='GreenHillZone.Act1', use_restricted_actions=retro.ACTIONS_ALL)
#this env will display the game from the start menu even with the incorrect rom
env = retro.make(game='SonicTheHedgehog-Genesis', state=retro.STATE_NONE, use_restricted_actions=retro.ACTIONS_ALL)
env.reset()

for i in range(10000):
    _,_,_,_ = env.step(env.action_space.sample())
    env.render()

from retro.

endrift avatar endrift commented on June 24, 2024

Can you provide a screenshot? I might be able to tell if it's the issue @AurelianTactics is describing based on the shade of blue.

from retro.

YakoYakoYokuYoku avatar YakoYakoYokuYoku commented on June 24, 2024

So I need a Sonic rom with it's belonging rom states, I'll try.

from retro.

imcrazeegamer avatar imcrazeegamer commented on June 24, 2024

from retro.

endrift avatar endrift commented on June 24, 2024

@YoKoin any luck?

from retro.

Theophylline avatar Theophylline commented on June 24, 2024

Stuck for 2 hours and can confirm. If you try to download free ROMs (eg from emuparadise) for Sonic the Hedgehog, even if it's the US version, you either get:

  1. blue screen
  2. messages like 'ERMAHGERD you're getting sued lol' or 'Illegal instruction + some memory address'

So I think the only solution is to buy the game from Steam, as others have commented, but I haven't tried it since I don't want to pay for a game that I never play ... I think I will just test out some algorithms with Airstriker-Genesis.

from retro.

YakoYakoYokuYoku avatar YakoYakoYokuYoku commented on June 24, 2024

Summary: Use the same rom and state, locate the state file and move it to the destination file, run:

usr@machine:~$ gzip /home/usr/.local/lib/python3.6/site-packages/retro/data/game/gamestate.(your save format)

Then rename the gzip to: yoursavestatename.state.

Try it in your environment. When you get there everything should work fine with any rom and it's respective savestate.

from retro.

YakoYakoYokuYoku avatar YakoYakoYokuYoku commented on June 24, 2024

For me it worked fine, thanks for the advice.

from retro.

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.