Comments (13)
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.
What version of gym-retro are you using?
from retro.
@endrift 0.10.5
from retro.
That's gym, not gym-retro.
from retro.
Sorry it's 0.5.6
from retro.
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.
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.
So I need a Sonic rom with it's belonging rom states, I'll try.
from retro.
from retro.
@YoKoin any luck?
from retro.
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:
- blue screen
- 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.
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.
For me it worked fine, thanks for the advice.
from retro.
Related Issues (20)
- End environment after a level is complete
- can we have a tutorial video for adding custom cores ? HOT 3
- Rom Import
- Create Save State HOT 1
- UnboundLocalError: local variable 'ext' referenced before assignment HOT 3
- I get errors when i try to install gym-retro how do i solve this issues HOT 4
- SimpleImageViewer Import not found HOT 2
- Playback_Movie: [WinError 2] The system cannot find the file specified HOT 1
- Installation fail on Mac M1 HOT 11
- Hexadecimal memory locations for data.json HOT 1
- AttributeError: 'RetroEnv' object has no attribute 'em' HOT 4
- Can't install on Debian 11
- Can't load roms in gym HOT 3
- Variables constantly changing when they shouldn't? HOT 1
- two agent competing environment
- Add support for Python 3.9
- Issue with installing gym-retro (python 3.8) HOT 1
- support double dragon Neo-Geo(MAME Emulator) or PS ? HOT 2
- Sonic Down from steam store HOT 1
- subprocess.CalledProcessError: Command '['/usr/bin/make', '-j12', 'retro']' returned non-zero exit status 2. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from retro.