[Python] Unable to use all (or most) of gym-retro games

Discussão em 'Python' iniciado por Stack, Novembro 23, 2024.

  1. Stack

    Stack Membro Participativo

    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?

    Continue reading...

Compartilhe esta Página