Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use all (or most) of gym-retro games #289

Open
ZhuShaoQiang opened this issue Nov 23, 2024 · 0 comments
Open

Unable to use all (or most) of gym-retro games #289

ZhuShaoQiang opened this issue Nov 23, 2024 · 0 comments

Comments

@ZhuShaoQiang
Copy link

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"+str(e))
        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 Game not found: YoukaiClub-Nes. Did you make sure to import the ROM?
YoukaiDouchuuki-Nes :  no Game not found: YoukaiDouchuuki-Nes. Did you make sure to import the ROM?
YoungIndianaJonesChronicles-Nes :  no Game not found: YoungIndianaJonesChronicles-Nes. Did you make sure to import the ROM?
Zanac-Nes :  no Game not found: Zanac-Nes. Did you make sure to import the ROM?
Zaxxon-Atari2600 :  yes
ZeroTheKamikazeSquirrel-Genesis :  no Game not found: ZeroTheKamikazeSquirrel-Genesis. Did you make sure to import the ROM?
ZeroTheKamikazeSquirrel-Snes :  no Game not found: ZeroTheKamikazeSquirrel-Snes. Did you make sure to import the ROM?
ZeroWing-Genesis :  no Game not found: ZeroWing-Genesis. Did you make sure to import the ROM?
ZombiesAteMyNeighbors-Snes :  no Game not found: ZombiesAteMyNeighbors-Snes. Did you make sure to import the ROM?
ZoolNinjaOfTheNthDimension-Genesis :  no Game not found: ZoolNinjaOfTheNthDimension-Genesis. Did you make sure to import the ROM?
ZoolNinjaOfTheNthDimension-Sms :  no Game not found: ZoolNinjaOfTheNthDimension-Sms. Did you make sure to import the ROM?
ZoolNinjaOfTheNthDimension-Snes :  no Game not found: ZoolNinjaOfTheNthDimension-Snes. Did you make sure to import the ROM?
all:  63

I checked all the exceptions, 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant