Help with a game installer (RTS game Thandor: The Invasion / Thandor: Die Invasion / Вторжение: Выжженная земля)

Hey Guys,

I am currently writing an installer for the RTS game Thandor: The Invasion.

Now I have two questions so I can optimize the installation process:

  • How can I set winecfg - Tab Graphics - disable: Automatically capture the mouse in full-screen windows
  • How do I upload the Patch with some additional files that I’ve created to the lutris db? I have virustotal link etc. (there is no virus of course)

    The patch also contains the new map they released in 2001 and also contains custom config files for unsupported resolutions (1080p, 1440p, 2160p)

Would really appreciate your help.

Is there also a description field for the last window (installation finished)? I would like to add an information about the LinuxReadme there (that also contains the infos on the “insert disk” area)?

Also are there some improvements that I could do to my install.yaml?

name: "Thandor: The Invasion"
game_slug: thandor-en
version: Installer
slug: thandor-installer
runner: wine

script:
  files:
  - patch105: N/A:Download patch 1.05 from http://s000.tinyupload.com/index.php?file_id=09051709526305652937 (md5 4133020e5a7c9f74a633f586d231dc6b)
  - directx61: https://archive.org/download/dx61sdkimage/dx61sdkimage.exe
  game:
    arch: win64
    exe: "drive_c/Program Files (x86)/JoWood/Thandor/thandor.exe"
    prefix: $GAMEDIR
  installer:
  - insert-disc:
      description: "WARN: Make sure to either activate virtual desktop with the selected thandor resolution (in winecfg - Tab Graphics) or
      run thandor in full screen with the native display resolution (for some resolutions thandor.dat must be edited manually)!\n
      > Issue: Ignoring this will lead to a mouse cursor that jumps to the top left edge while playing"
      requires: Thandor/thandor.dat
  - task:
      description: Creating WINE prefix
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: win95
      description: Using Windows 95 for setup
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win95
      executable: $DISC/Setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - execute:
      args: e $directx61 -o$CACHE/tmp/dx6
      file: 7z
  - move:
      src: $CACHE/tmp/dx6/dinput.dll
      dst: $GAMEDIR/drive_c/Program Files (x86)/JoWood/Thandor/
  - extract:
      file: patch105
      dst: $GAMEDIR/drive_c/Program Files (x86)/JoWood/Thandor/
  - task:
      app: winxp
      arch: win64
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win64
      key: GrabFullscreen
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
      prefix: $GAMEDIR
      value: N
  require-binaries: 7z
  system:
    env:
      LUTRIS_RUNTIME: '0'
  wine:
    dxvk: false
    version: ge-faudio-protonified-4.8-x86_64
    overrides:
        dinput.dll: native

Edit1: Path fixed in installscript
Edit2: Added [CODE] tag to yaml
Edit3: Documented the last edits and also added another question
Edit4: Added cxf’s task to disable option (only change is value: N), Changed the disk description (removed unnecessary step, @cxf, Thank you very much!

That is handled by a registry key so you’d use:

- task:
    arch: win64
    key: GrabFullscreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: Y

No, but you can add that to the tech notes.

Hey cxf,

I’ve added your ideas (will edit the unpublished installer script on the game now), thank you very much for your answer, rly appreciate that