Installer ultima-underworld-the-stygian-windows-gog-v1

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

files:
- game: N/A:Select GOG installer.
- inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
game:
  main_file: $GAMEDIR/Ultima.conf
installer:
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -d "$CACHE" "$game"
    file: $CACHE/innoextract
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      file=$3

      find "$src" -maxdepth 1 -type f \( -iname $file \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy2.sh
- chmodx: $CACHE/selectcopy2.sh
- execute:
    args: $GAMEDIR/CDD
    file: mkdir
- execute:
    args: $CACHE $GAMEDIR *.pdf
    file: $CACHE/selectcopy2.sh
- execute:
    args: $CACHE $GAMEDIR/CDD *.gog
    file: $CACHE/selectcopy2.sh
- copy:
    dst: $GAMEDIR/UNDEROM1
    src: $CACHE/UNDEROM1
- write_file:
    content: '[sdl]

      sensitivity=20

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      [cpu]

      cycles=max

      [render]

      aspect=true

      scaler=normal2x


      [autoexec]

      mount C "$GAMEDIR" -t dir

      imgmount D "$GAMEDIR/CDD/game.gog" -t iso -fs iso

      D:

      @ECHO OFF

      goto launcher

      :launcher

      cls

      ECHO  ------------------------------------

      ECHO  Ultima Underworld - The Stygian Abys

      ECHO  ------------------------------------

      ECHO   1) Play game

      ECHO   2) Game settings

      ECHO   3) Exit program

      ECHO  ------------------------------------

      choice /c123 /s Choose language: [1-3]: /n

      if errorlevel 3 goto exit

      if errorlevel 2 goto setup

      if errorlevel 1 goto run


      :run

      cls

      uw.bat

      goto exit


      :setup

      cls

      install1.exe

      goto launcher


      :exit

      exit'
    file: $GAMEDIR/Ultima.conf
{
  "files": [
    {
      "game": "N/A:Select GOG installer."
    },
    {
      "inno": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    }
  ],
  "game": {
    "main_file": "$GAMEDIR/Ultima.conf"
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE",
        "file": "$inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$game\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfile=$3\nfind \"$src\" -maxdepth 1 -type f \\( -iname $file \\) -exec cp {} \"$dst\" \\;",
        "file": "$CACHE/selectcopy2.sh"
      }
    },
    {
      "chmodx": "$CACHE/selectcopy2.sh"
    },
    {
      "execute": {
        "args": "$GAMEDIR/CDD",
        "file": "mkdir"
      }
    },
    {
      "execute": {
        "args": "$CACHE $GAMEDIR *.pdf",
        "file": "$CACHE/selectcopy2.sh"
      }
    },
    {
      "execute": {
        "args": "$CACHE $GAMEDIR/CDD *.gog",
        "file": "$CACHE/selectcopy2.sh"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/UNDEROM1",
        "src": "$CACHE/UNDEROM1"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nsensitivity=20\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\n[cpu]\ncycles=max\n[render]\naspect=true\nscaler=normal2x\n\n[autoexec]\nmount C \"$GAMEDIR\" -t dir\nimgmount D \"$GAMEDIR/CDD/game.gog\" -t iso -fs iso\nD:\n@ECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  ------------------------------------\nECHO  Ultima Underworld - The Stygian Abys\nECHO  ------------------------------------\nECHO   1) Play game\nECHO   2) Game settings\nECHO   3) Exit program\nECHO  ------------------------------------\nchoice /c123 /s Choose language: [1-3]: /n\nif errorlevel 3 goto exit\nif errorlevel 2 goto setup\nif errorlevel 1 goto run\n\n:run\ncls\nuw.bat\ngoto exit\n\n:setup\ncls\ninstall1.exe\ngoto launcher\n\n:exit\nexit",
        "file": "$GAMEDIR/Ultima.conf"
      }
    }
  ]
}
Back to game