Kautenja / gym-super-mario-bros

An OpenAI Gym interface to Super Mario Bros. & Super Mario Bros. 2 (Lost Levels) on The NES

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Headless FCEUX

Kautenja opened this issue · comments

headless FCEUX would be nice for serverside running.

import os
os.environ['SDL_VIDEODRIVER'] = 'dummy'

the only problem is that for playing the game as human, this also disables the pygame window.

issue with headless human play resolved. Disabling the GUI after creating the pygame window, but before the FCEUX window spawns allows the pygame window to open and capture input while suppressing the appearance of the FCEUX window.

A general solution is still needed for headless usage in random agents and training agents.

implemented as a method for end user control. Added to the CLI as well for ease of access in basic testing. Closing issue