admin管理员组文章数量:1335624
My working ENV
System: ubuntu 18.04
Version: python 3.6/3.7/3.8(3 envvironments all the same result), gym 0.25.2, gym-retro 0.8.0
How did I do?
I follow this guide to install gym-retro. and I successfully run the example game.
Problems I met?
Firstly, I imported some ROMs from the internet, for example the the 128 sine-dot, But I CANNOT import it: when I executed
python -m retro.import Anthrox\ -\ Sine-dot\ Demo\ \(PD\).smc
the result was:
Imported 0 games
picture of text above
and the Atari games (more than 1000 games),I could only successfully import no more than 200 games, but I can make env no more than 100 games.
I executed:
python -m retro.import .
and results was:
Importing DemonAttack-Atari2600
.
.
Importing Pong-Atari2600
Imported 167 games
I wrote this script to get game status to judge whether we can make this env:
import retro
game_list = retro.data.list_games()
def main():
cnt = 0
for game_name in game_list:
try:
env = retro.make(game=game_name)
except Exception as e:
print(game_name, ": ", "no")
else:
cnt+=1
env.close()
print(game_name, ": ", "yes")
print("all: ", cnt)
if __name__ == "__main__":
main()
and the results was:
...
YarsRevenge-Atari2600 : yes
YoukaiClub-Nes : no
YoukaiDouchuuki-Nes : no
YoungIndianaJonesChronicles-Nes : no
Zanac-Nes : no
Zaxxon-Atari2600 : yes
ZeroTheKamikazeSquirrel-Genesis : no
ZeroTheKamikazeSquirrel-Snes : no
ZeroWing-Genesis : no
ZombiesAteMyNeighbors-Snes : no
ZoolNinjaOfTheNthDimension-Genesis : no
ZoolNinjaOfTheNthDimension-Sms : no
ZoolNinjaOfTheNthDimension-Snes : no
all: 63
UPDATE INFO, all exceptions were:
Game not found: xxxxxxxx. Did you make sure to import the ROM?
and found out that only 63 games were makeable.
Questions I want to ask!!!
How could I import those games to my retro?
My working ENV
System: ubuntu 18.04
Version: python 3.6/3.7/3.8(3 envvironments all the same result), gym 0.25.2, gym-retro 0.8.0
How did I do?
I follow this guide to install gym-retro. and I successfully run the example game.
Problems I met?
Firstly, I imported some ROMs from the internet, for example the the 128 sine-dot, But I CANNOT import it: when I executed
python -m retro.import Anthrox\ -\ Sine-dot\ Demo\ \(PD\).smc
the result was:
Imported 0 games
picture of text above
and the Atari games (more than 1000 games),I could only successfully import no more than 200 games, but I can make env no more than 100 games.
I executed:
python -m retro.import .
and results was:
Importing DemonAttack-Atari2600
.
.
Importing Pong-Atari2600
Imported 167 games
I wrote this script to get game status to judge whether we can make this env:
import retro
game_list = retro.data.list_games()
def main():
cnt = 0
for game_name in game_list:
try:
env = retro.make(game=game_name)
except Exception as e:
print(game_name, ": ", "no")
else:
cnt+=1
env.close()
print(game_name, ": ", "yes")
print("all: ", cnt)
if __name__ == "__main__":
main()
and the results was:
...
YarsRevenge-Atari2600 : yes
YoukaiClub-Nes : no
YoukaiDouchuuki-Nes : no
YoungIndianaJonesChronicles-Nes : no
Zanac-Nes : no
Zaxxon-Atari2600 : yes
ZeroTheKamikazeSquirrel-Genesis : no
ZeroTheKamikazeSquirrel-Snes : no
ZeroWing-Genesis : no
ZombiesAteMyNeighbors-Snes : no
ZoolNinjaOfTheNthDimension-Genesis : no
ZoolNinjaOfTheNthDimension-Sms : no
ZoolNinjaOfTheNthDimension-Snes : no
all: 63
UPDATE INFO, all exceptions were:
Game not found: xxxxxxxx. Did you make sure to import the ROM?
and found out that only 63 games were makeable.
Questions I want to ask!!!
How could I import those games to my retro?
Share Improve this question edited Nov 22, 2024 at 7:01 Chuckie Zhu asked Nov 22, 2024 at 6:18 Chuckie ZhuChuckie Zhu 294 bronze badges 9- The first sentence from the guide/documentation you linked says: Gym Retro requires one of the supported versions of Python (3.5, 3.6, or 3.7) - and I see you use Python 3.8? This is not supported. – Cow Commented Nov 22, 2024 at 6:32
- I have 3 environments, 3.6, 3.7, 3.8, all the same situation. – Chuckie Zhu Commented Nov 22, 2024 at 6:38
- All right, that's valuable info to have. – Cow Commented Nov 22, 2024 at 6:41
- thanks, I fot to add this to this post, I just added it. – Chuckie Zhu Commented Nov 22, 2024 at 6:45
- What are the exceptions you catch but do not output? – the busybee Commented Nov 22, 2024 at 6:55
1 Answer
Reset to default 0I know why!!!
I had an assume: some games were imported successfully, but the retor's list_game cannot list it, so I want to figure out which game was imported but unlisted.
When I manually imported those games, I found many games in the ROMs have same name, forexample, "Robotank" occur 3 times, that's why I imported 167 games, but only have 59 in list. because there are same games in the ROMs. I use this ROMs.
本文标签: pythonUnable to use all (or most) of gymretro gamesStack Overflow
版权声明:本文标题:python - Unable to use all (or most) of gym-retro games - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742294680a2448482.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论