Installer wing-commander-iii-heart-of-t-gog

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:
- setup: N/A:Select the Windows installer downloaded from GOG
game:
  gogid: 1207658966
  main_file: $GAMEDIR/dosboxWC3_lutris.conf
installer:
- extract:
    description: Extract GOG installer
    dst: $GAMEDIR
    file: setup
- copy:
    description: Move GOG files to $GAMEDIR
    dst: $GAMEDIR
    src: $GAMEDIR/__support/app
- write_file:
    content: '[sdl]

      fullscreen     = true

      fullresolution = desktop

      output         = openglpp



      [cpu]

      core           = dynamic

      cputype        = auto

      cycles         = fixed 100000

      cycleup        = 1000

      cycledown      = 1000



      [autoexec]

      @echo off

      mount C "$GAMEDIR" -t dir

      mount C "$GAMEDIR/cloud_saves" -t overlay

      imgmount d "$GAMEDIR/DATA.DAT" -t iso

      d:

      goto launcher

      :launcher

      cls

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

      ECHO   Wing Commander III

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

      ECHO   1) Wing Commander III: Heart of the Tiger

      ECHO   2) Game settings

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

      ECHO   3) Exit

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

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

      if errorlevel 3 goto exit

      if errorlevel 2 goto setup

      if errorlevel 1 goto wc3

      :wc3

      cls

      echo 1) Play

      echo 2) Play with debug mode

      echo 3) Return to launcher

      echo.

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

      if errorlevel = 3 goto launcher

      if errorlevel = 2 goto debug

      if errorlevel = 1 goto play

      :play

      cls

      wc3.exe

      goto exit

      :debug

      cls

      wc3.exe -mitchell

      goto exit

      :setup

      cls

      wc3.exe -install

      goto launcher

      :exit

      exit'
    file: $GAMEDIR/dosboxWC3_lutris.conf
{
  "files": [
    {
      "setup": "N/A:Select the Windows installer downloaded from GOG"
    }
  ],
  "game": {
    "gogid": 1207658966,
    "main_file": "$GAMEDIR/dosboxWC3_lutris.conf"
  },
  "installer": [
    {
      "extract": {
        "description": "Extract GOG installer",
        "dst": "$GAMEDIR",
        "file": "setup"
      }
    },
    {
      "copy": {
        "description": "Move GOG files to $GAMEDIR",
        "dst": "$GAMEDIR",
        "src": "$GAMEDIR/__support/app"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nfullscreen     = true\nfullresolution = desktop\noutput         = openglpp\n\n\n[cpu]\ncore           = dynamic\ncputype        = auto\ncycles         = fixed 100000\ncycleup        = 1000\ncycledown      = 1000\n\n\n[autoexec]\n@echo off\nmount C \"$GAMEDIR\" -t dir\nmount C \"$GAMEDIR/cloud_saves\" -t overlay\nimgmount d \"$GAMEDIR/DATA.DAT\" -t iso\nd:\ngoto launcher\n:launcher\ncls\nECHO  ------------------------------------------\nECHO   Wing Commander III\nECHO  ------------------------------------------\nECHO   1) Wing Commander III: Heart of the Tiger\nECHO   2) Game settings\nECHO  ------------------------------------------\nECHO   3) Exit\nECHO  ------------------------------------------\n@choice /c123 /s Choose option [1-3]: /n\nif errorlevel 3 goto exit\nif errorlevel 2 goto setup\nif errorlevel 1 goto wc3\n:wc3\ncls\necho 1) Play\necho 2) Play with debug mode\necho 3) Return to launcher\necho.\n@choice /c123 /s Choose option [1-3]: /n\nif errorlevel = 3 goto launcher\nif errorlevel = 2 goto debug\nif errorlevel = 1 goto play\n:play\ncls\nwc3.exe\ngoto exit\n:debug\ncls\nwc3.exe -mitchell\ngoto exit\n:setup\ncls\nwc3.exe -install\ngoto launcher\n:exit\nexit",
        "file": "$GAMEDIR/dosboxWC3_lutris.conf"
      }
    }
  ]
}
Back to game