davidtjones/melee-env

2-player game won't start

davidtjones opened this issue · 3 comments

Problem: When playing a game with two players, the game hangs at startup and doesn't continue.

Expected behavior: game should proceed to a two player game and proceed as normal

Related info:
Traceback

  File "agents_example.py", line 28, in <module>
    observation, reward, done, info = env.setup(enums.Stage.BATTLEFIELD)
  File "/home/david/bin/python/melee-env/melee_env/env.py", line 87, in setup
    self.gamestate = self.console.step()
  File "/home/david/.conda/envs/melee/lib/python3.8/site-packages/melee/console.py", line 360, in step
    message = self._slippstream.dispatch(self._polling_mode)
  File "/home/david/.conda/envs/melee/lib/python3.8/site-packages/melee/slippstream.py", line 65, in dispatch
    event = self._host.service(wait_time)
KeyboardInterrupt

rolling back to 0.21.0 seems to fix this, in fact just rolling back the env.start is enough. I think I assumed tmp_home_directory wasn't used if you set dolphin_home_path. Turns out that it was making a temporary home directory prior to 0.22.1. Not allowing this causes some issue with 2 players. This issue only seems to affect linux, because the tmp_home_directory is explicitly set to false on windows. Nothing about this makes any sense, because it works fine with 3+ players.

Very frustrating. It seems like this may have come down to a permissions issue. I was able to chmod 777 -R melee-env in .local/share/ to confirm. I deleted the whole melee-env directory and reinstalled and it seems to be fine now. I'm unsure exactly what caused this.

Closing for now unless this comes back.

Spoke too soon I think, sorry. Permissions and reinstalling don't seem to make a difference.