Serpent Launch works but Serpent Play does not for stardew valley


#1

System details:
MacOS
Steam
(can edit in more if needed)

Traceback:

ryans-mbp:~ ryanschaefer2$ sudo serpent play StardewValley SerpentStardewValleyGameAgent
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/bin/serpent", line 11, in <module>
    load_entry_point('SerpentAI==2018.1.2', 'console_scripts', 'serpent')()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serpent/serpent.py", line 52, in execute
    command_function_mapping[command](*sys.argv[2:])
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serpent/serpent.py", line 361, in play
    game.launch(dry_run=True)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serpent/game.py", line 119, in launch
    self.after_launch()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serpent/game.py", line 131, in after_launch
    self.window_controller.move_window(self.window_id, 0, 0)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serpent/window_controller.py", line 17, in move_window
    self.adapter.move_window(window_id, x, y)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/serpent/window_controllers/darwin_window_controller.py", line 19, in move_window
    ''').run()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/applescript/__init__.py", line 90, in run
    return self._unpackresult(*self._script.executeAndReturnError_(None))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/applescript/__init__.py", line 65, in _unpackresult
    raise ScriptError(errorinfo)
applescript.ScriptError: System Events got an error: Can’t set process "Stardew Valley" to {{0}, {0}}. (-10006) app='System Events' range=111-119

Basically, with launch the window appears and serpent recognizes the window but with play it does not.