Lutris native linux game installation hangs at: "Installing game data"

There’s some threads with the same problem description and I was wondering if they had something in common. I’ve run lutris -d from the command line and got the following error (which should really be shown in the lutris window):

DEBUG 2018-10-25 13:11:48,173 [thread]:Restoring environment
DEBUG 2018-10-25 13:11:48,709 [interpreter]:Installer command: {‘rename’: {‘dst’: ‘$GAMEDIR/Game’, ‘src’: ‘$GAMEDIR/data/noarch’}}
Traceback (most recent call last):
File “/usr/lib/python3.7/site-packages/lutris/util/jobs.py”, line 38, in
GLib.idle_add(lambda: self.callback(result, error))
File “/usr/lib/python3.7/site-packages/lutris/installer/interpreter.py”, line 529, in _iter_commands
self._finish_install()
File “/usr/lib/python3.7/site-packages/lutris/installer/interpreter.py”, line 560, in _finish_install
if launcher_value:
UnboundLocalError: local variable ‘launcher_value’ referenced before assignment

Which game/installer is this?

It’s a problem with Lutris/installers: https://github.com/lutris/lutris/issues/1249

It’s for Pillars of Eternity 2…

Ok should be fixed.

I too am experiencing this issue, I just added the game Savage XR and get the same hang and error message when installing from the web page:

Log:

    INFO     2018-10-26 12:26:47,237 [lutriswindow]:Installing savage-xr-010
    DEBUG    2018-10-26 12:26:47,243 [interpreter]:Fetching installer https://lutris.net/api/installers/savage-xr-010
    DEBUG    2018-10-26 12:26:47,244 [http]:GET https://lutris.net/api/installers/savage-xr-010
    DEBUG    2018-10-26 12:26:47,405 [installerwindow]:set_propagate_natural_height not available
    Traceback (most recent call last):
      File "/usr/lib/python3/dist-packages/lutris/gui/installerwindow.py", line 325, in on_install_clicked
        self.interpreter.check_runner_install()
      File "/usr/lib/python3/dist-packages/lutris/installer/interpreter.py", line 435, in check_runner_install
        self.install_runners()
      File "/usr/lib/python3/dist-packages/lutris/installer/interpreter.py", line 439, in install_runners
        self.iter_game_files()
      File "/usr/lib/python3/dist-packages/lutris/installer/interpreter.py", line 296, in iter_game_files
        self._prepare_commands()
      File "/usr/lib/python3/dist-packages/lutris/installer/interpreter.py", line 500, in _prepare_commands
        self._iter_commands()
      File "/usr/lib/python3/dist-packages/lutris/installer/interpreter.py", line 529, in _iter_commands
        self._finish_install()
      File "/usr/lib/python3/dist-packages/lutris/installer/interpreter.py", line 560, in _finish_install
        if launcher_value:
    UnboundLocalError: local variable 'launcher_value' referenced before assignment

Used Ubuntu 16.04 & Ubuntu 18.04.

If I download the .json install file and try manually install I get the same result, if however I download the .yaml file and add the slug and runner block back in I can get it to install correctly with:

  • lutris -i savage-xr-010.yaml

I have the “exe” attrib listed in the “game” section in the .yaml file as mentioned as a fix in the the bug on github and this appears in the generated .json install file too.

Also had no end of trouble try to post in this forum, it does not seem to like Firefox at all.

You have to reorganize when copying your local script. It should look like this:

files:
- installer:
    filename: xr_setup-1.0-cl_win_prod.exe
    url: http://www.newerth.com/?id=downloads&op=downloadFile&file=xr_setup-1.0-cl_win_prod.exe&mirrorid=2
game:
  arch: win32
  exe: drive_c/Program Files/Savage XR/savage.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win32
    executable: installer
    name: wineexec
    prefix: $GAMEDIR
system:
  env:
    __GL_SHADER_DISK_CACHE: '1'
    __GL_THREADED_OPTIMIZATIONS: '1'
    mesa_glthread: 'true'
wine:
  overrides:
    d3d11: disabled
    ddraw: native
  version: staging-3.18-x86_64

We reserve $GAMEDIR/prefix for winesteam games only.

1 Like

Great cxf!

The installer is working correctly now, thanks!

I didn’t realise you couldn’t use $GAMEDIR/prefix in a wine runner.

You can but we save that for winesteam because otherwise the prefix folders/files get mixed in with the game folder. So we give it it’s own folder instead.