Installer wing-commander-iii-heart-of-t-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/wing.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type d \( -iname "WC3" \) -exec cp {} -r "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -d "$CACHE" "$game"
    file: $CACHE/innoextract
- execute:
    args: $GAMEDIR/wing  $GAMEDIR/CDD
    file: mkdir
- copy:
    dst: $GAMEDIR
    src: $CACHE/manual.pdf
- copy:
    dst: $GAMEDIR/CDD
    src: $CACHE/DATA.DAT
- execute:
    args: $CACHE/  $GAMEDIR/wing
    file: $CACHE/selectcopy.sh
- write_file:
    content: '[cpu]

      core=auto

      cputype=auto

      cycles=8000

      cycleup=1000

      cycledown=1000

      [sdl]

      sensitivity=30

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      capture_mouse = onstart middlerelease

      [render]

      aspect=true

      scaler=normal2x

      [autoexec]

      mount C "$GAMEDIR" -t dir

      imgmount D "$GAMEDIR/CDD/DATA.DAT" -t iso

      D:

      cls

      ECHO OFF

      goto launcher

      :launcher

      cls

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

      ECHO                Wing Commander III

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

      ECHO   1) Wing Commander III

      ECHO   2) Setup

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

      ECHO   3) Exit Program

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


      choice /c123 /s Which program do you want to run? [1-3]: /n

      if errorlevel 3 goto exit

      if errorlevel 2 goto setup

      if errorlevel 1 goto game


      :game

      cls

      wc3.exe

      goto exit


      :setup

      cls

      wc3.exe -install

      goto launcher

      :exit

      exit

      exit'
    file: $GAMEDIR/wing.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/wing.conf"
  },
  "installer": [
    {
      "write_file": {
        "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type d \\( -iname \"WC3\" \\) -exec cp {} -r \"$dst\" \\;",
        "file": "$CACHE/selectcopy.sh"
      }
    },
    {
      "chmodx": "$CACHE/selectcopy.sh"
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "$inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$game\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "execute": {
        "args": "$GAMEDIR/wing  $GAMEDIR/CDD",
        "file": "mkdir"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/manual.pdf"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/CDD",
        "src": "$CACHE/DATA.DAT"
      }
    },
    {
      "execute": {
        "args": "$CACHE/  $GAMEDIR/wing",
        "file": "$CACHE/selectcopy.sh"
      }
    },
    {
      "write_file": {
        "content": "[cpu]\ncore=auto\ncputype=auto\ncycles=8000\ncycleup=1000\ncycledown=1000\n[sdl]\nsensitivity=30\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\ncapture_mouse = onstart middlerelease\n[render]\naspect=true\nscaler=normal2x\n[autoexec]\nmount C \"$GAMEDIR\" -t dir\nimgmount D \"$GAMEDIR/CDD/DATA.DAT\" -t iso\nD:\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -------------------------------------------------\nECHO                Wing Commander III\nECHO  -------------------------------------------------\nECHO   1) Wing Commander III\nECHO   2) Setup\nECHO  -------------------------------------------------\nECHO   3) Exit Program\nECHO  -------------------------------------------------\n\nchoice /c123 /s Which program do you want to run? [1-3]: /n\nif errorlevel 3 goto exit\nif errorlevel 2 goto setup\nif errorlevel 1 goto game\n\n:game\ncls\nwc3.exe\ngoto exit\n\n:setup\ncls\nwc3.exe -install\ngoto launcher\n:exit\nexit\nexit",
        "file": "$GAMEDIR/wing.conf"
      }
    }
  ]
}
Back to game