Installer wing-commander-gog

files:
- setup: N/A:Select the Windows installer downloaded from GOG
game:
  gogid: 1207662643
  main_file: $GAMEDIR/dosboxWC_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           = auto

      cputype        = auto

      cycles         = 4000

      cycleup        = 1000

      cycledown      = 1000

      [autoexec]

      @echo off

      mount C "$GAMEDIR" -t dir

      mount C "$GAMEDIR/cloud_saves" -t overlay

      c:

      goto launcher

      :launcher

      cls

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

      ECHO   Wing Commander

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

      ECHO   1) Wing Commander / The Secret Missions

      ECHO   2) The Secret Missions 2: Crusade

      ECHO   3) Transfer saves to The Secret Missions 1 / 2

      ECHO   4) Sound options

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

      ECHO   5) Exit

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

      @choice /c12345 /s Choose option [1-5]: /n

      if errorlevel 5 goto exit

      if errorlevel 4 goto sound

      if errorlevel 3 goto tran

      if errorlevel 2 goto sm2

      if errorlevel 1 goto sm

      :sm

      cls

      echo 1) Play

      echo 2) Play with debug mode

      echo 3) Play with invincibility & debug mode

      echo 4) Return to launcher

      echo.

      @choice /c1234 /s Choose option [1-4]: /n

      if errorlevel = 4 goto launcher

      if errorlevel = 3 goto invinc

      if errorlevel = 2 goto debug

      if errorlevel = 1 goto play

      :play

      cls

      loadfix -32 wc

      goto exit

      :debug

      cls

      loadfix -32 wc Origin

      goto exit

      :invinc

      cls

      loadfix -32 wc Origin -k

      goto exit

      :sm2

      cls

      echo 1) Play

      echo 2) Play with debug mode

      echo 3) Play with invincibility & debug mode

      echo 4) Return to launcher

      echo.

      @choice /c1234 /s Choose option [1-4]: /n

      if errorlevel = 4 goto launcher

      if errorlevel = 3 goto invincsm2

      if errorlevel = 2 goto debugsm2

      if errorlevel = 1 goto playsm2

      :playsm2

      cls

      loadfix -32 sm2

      goto exit

      :debugsm2

      cls

      loadfix -32 sm2 Origin

      goto exit

      :invincsm2

      cls

      loadfix -32 sm2 Origin -k

      goto exit

      :sound

      cls

      echo.

      echo 1) Set to Roland MT-32

      echo 2) Set to Soundblaster 16 (default)

      echo 3) Return to launcher

      echo.

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

      if errorlevel = 3 goto launcher

      if errorlevel = 2 goto sb16

      if errorlevel = 1 goto mt32

      :mt32

      cls

      echo.

      echo Note: Please edit your global DOSBox configuration file to point to the
      location of

      echo the Roland MT-32 ROM files. See https://github.com/dosbox-staging/dosbox-staging/wiki/MIDI

      echo.

      echo Setting to Roland MT-32 after pressing a key.

      echo.

      pause

      cls

      CONFIG -set "mididevice=mt32"

      CONFIG -writeconf "$GAMEDIR/dosboxWC_lutris.conf"

      echo v r z > WINGCMDR.CFG

      echo v r z > CRUSADE.CFG

      cls

      echo.

      echo Completed!

      echo.

      pause

      goto launcher

      :sb16

      cls

      CONFIG -set "mididevice=auto"

      CONFIG -writeconf "$GAMEDIR/dosboxWC_lutris.conf"

      echo v a904 z > WINGCMDR.CFG

      echo v a904 z > CRUSADE.CFG

      cls

      echo.

      echo Completed!

      echo.

      pause

      goto launcher

      :tran

      cls

      echo.

      echo 1) Transfer Wing Commander save to Secret Missions 1

      echo 2) Transfer Wing Commander / SM1 save to Secret Missions 2

      echo 3) Return to launcher

      echo.

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

      if errorlevel = 3 goto launcher

      if errorlevel = 2 goto WC12SM2

      if errorlevel = 1 goto WC12SM1

      :WC12SM1

      cls

      echo.

      echo Note: To transfer a save from Wing Commander 1, your save *must* be

      echo in the final system of the base game (Venice system). The Transfer program

      echo does allow you to convert your save to any mission, so you can always convert

      echo to the final mission before transferring if needed.

      echo.

      pause

      cls

      TRANSFER

      cls

      goto launcher

      :WC12SM2

      cls

      echo.

      echo Note: To transfer a save from Wing Commander 1, your save *must* be

      echo in the final system of the base game (Venice system). If transferring from

      echo Secret Missions 1, you must be in the Vigrid system.

      echo.

      echo The Transfer program does allow you to convert your save to any mission,

      echo so you can always convert to the final mission before transferring if needed.

      echo.

      pause

      cls

      TRANS2

      cls

      goto launcher

      :exit

      exit'
    file: $GAMEDIR/dosboxWC_lutris.conf
description: Includes custom launcher interface for ease of use
game_slug: wing-commander
gogslug: wing_commander_1_2
humblestoreid: ''
installer_slug: wing-commander-gog
name: Wing Commander
notes: ''
runner: dosbox
script:
  files:
  - setup: N/A:Select the Windows installer downloaded from GOG
  game:
    gogid: 1207662643
    main_file: $GAMEDIR/dosboxWC_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           = auto

        cputype        = auto

        cycles         = 4000

        cycleup        = 1000

        cycledown      = 1000

        [autoexec]

        @echo off

        mount C "$GAMEDIR" -t dir

        mount C "$GAMEDIR/cloud_saves" -t overlay

        c:

        goto launcher

        :launcher

        cls

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

        ECHO   Wing Commander

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

        ECHO   1) Wing Commander / The Secret Missions

        ECHO   2) The Secret Missions 2: Crusade

        ECHO   3) Transfer saves to The Secret Missions 1 / 2

        ECHO   4) Sound options

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

        ECHO   5) Exit

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

        @choice /c12345 /s Choose option [1-5]: /n

        if errorlevel 5 goto exit

        if errorlevel 4 goto sound

        if errorlevel 3 goto tran

        if errorlevel 2 goto sm2

        if errorlevel 1 goto sm

        :sm

        cls

        echo 1) Play

        echo 2) Play with debug mode

        echo 3) Play with invincibility & debug mode

        echo 4) Return to launcher

        echo.

        @choice /c1234 /s Choose option [1-4]: /n

        if errorlevel = 4 goto launcher

        if errorlevel = 3 goto invinc

        if errorlevel = 2 goto debug

        if errorlevel = 1 goto play

        :play

        cls

        loadfix -32 wc

        goto exit

        :debug

        cls

        loadfix -32 wc Origin

        goto exit

        :invinc

        cls

        loadfix -32 wc Origin -k

        goto exit

        :sm2

        cls

        echo 1) Play

        echo 2) Play with debug mode

        echo 3) Play with invincibility & debug mode

        echo 4) Return to launcher

        echo.

        @choice /c1234 /s Choose option [1-4]: /n

        if errorlevel = 4 goto launcher

        if errorlevel = 3 goto invincsm2

        if errorlevel = 2 goto debugsm2

        if errorlevel = 1 goto playsm2

        :playsm2

        cls

        loadfix -32 sm2

        goto exit

        :debugsm2

        cls

        loadfix -32 sm2 Origin

        goto exit

        :invincsm2

        cls

        loadfix -32 sm2 Origin -k

        goto exit

        :sound

        cls

        echo.

        echo 1) Set to Roland MT-32

        echo 2) Set to Soundblaster 16 (default)

        echo 3) Return to launcher

        echo.

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

        if errorlevel = 3 goto launcher

        if errorlevel = 2 goto sb16

        if errorlevel = 1 goto mt32

        :mt32

        cls

        echo.

        echo Note: Please edit your global DOSBox configuration file to point to the
        location of

        echo the Roland MT-32 ROM files. See https://github.com/dosbox-staging/dosbox-staging/wiki/MIDI

        echo.

        echo Setting to Roland MT-32 after pressing a key.

        echo.

        pause

        cls

        CONFIG -set "mididevice=mt32"

        CONFIG -writeconf "$GAMEDIR/dosboxWC_lutris.conf"

        echo v r z > WINGCMDR.CFG

        echo v r z > CRUSADE.CFG

        cls

        echo.

        echo Completed!

        echo.

        pause

        goto launcher

        :sb16

        cls

        CONFIG -set "mididevice=auto"

        CONFIG -writeconf "$GAMEDIR/dosboxWC_lutris.conf"

        echo v a904 z > WINGCMDR.CFG

        echo v a904 z > CRUSADE.CFG

        cls

        echo.

        echo Completed!

        echo.

        pause

        goto launcher

        :tran

        cls

        echo.

        echo 1) Transfer Wing Commander save to Secret Missions 1

        echo 2) Transfer Wing Commander / SM1 save to Secret Missions 2

        echo 3) Return to launcher

        echo.

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

        if errorlevel = 3 goto launcher

        if errorlevel = 2 goto WC12SM2

        if errorlevel = 1 goto WC12SM1

        :WC12SM1

        cls

        echo.

        echo Note: To transfer a save from Wing Commander 1, your save *must* be

        echo in the final system of the base game (Venice system). The Transfer program

        echo does allow you to convert your save to any mission, so you can always
        convert

        echo to the final mission before transferring if needed.

        echo.

        pause

        cls

        TRANSFER

        cls

        goto launcher

        :WC12SM2

        cls

        echo.

        echo Note: To transfer a save from Wing Commander 1, your save *must* be

        echo in the final system of the base game (Venice system). If transferring
        from

        echo Secret Missions 1, you must be in the Vigrid system.

        echo.

        echo The Transfer program does allow you to convert your save to any mission,

        echo so you can always convert to the final mission before transferring if
        needed.

        echo.

        pause

        cls

        TRANS2

        cls

        goto launcher

        :exit

        exit'
      file: $GAMEDIR/dosboxWC_lutris.conf
slug: wing-commander-gog
steamid: null
version: GOG
year: 1990
{
  "game_slug": "wing-commander",
  "version": "GOG",
  "description": "Includes custom launcher interface for ease of use",
  "notes": "",
  "name": "Wing Commander",
  "year": 1990,
  "steamid": null,
  "gogslug": "wing_commander_1_2",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "wing-commander-gog",
  "installer_slug": "wing-commander-gog",
  "script": {
    "files": [
      {
        "setup": "N/A:Select the Windows installer downloaded from GOG"
      }
    ],
    "game": {
      "gogid": 1207662643,
      "main_file": "$GAMEDIR/dosboxWC_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[cpu]\ncore           = auto\ncputype        = auto\ncycles         = 4000\ncycleup        = 1000\ncycledown      = 1000\n[autoexec]\n@echo off\nmount C \"$GAMEDIR\" -t dir\nmount C \"$GAMEDIR/cloud_saves\" -t overlay\nc:\ngoto launcher\n:launcher\ncls\nECHO  ------------------------------------------\nECHO   Wing Commander\nECHO  ------------------------------------------\nECHO   1) Wing Commander / The Secret Missions\nECHO   2) The Secret Missions 2: Crusade\nECHO   3) Transfer saves to The Secret Missions 1 / 2\nECHO   4) Sound options\nECHO  ------------------------------------------\nECHO   5) Exit\nECHO  ------------------------------------------\n@choice /c12345 /s Choose option [1-5]: /n\nif errorlevel 5 goto exit\nif errorlevel 4 goto sound\nif errorlevel 3 goto tran\nif errorlevel 2 goto sm2\nif errorlevel 1 goto sm\n:sm\ncls\necho 1) Play\necho 2) Play with debug mode\necho 3) Play with invincibility & debug mode\necho 4) Return to launcher\necho.\n@choice /c1234 /s Choose option [1-4]: /n\nif errorlevel = 4 goto launcher\nif errorlevel = 3 goto invinc\nif errorlevel = 2 goto debug\nif errorlevel = 1 goto play\n:play\ncls\nloadfix -32 wc\ngoto exit\n:debug\ncls\nloadfix -32 wc Origin\ngoto exit\n:invinc\ncls\nloadfix -32 wc Origin -k\ngoto exit\n:sm2\ncls\necho 1) Play\necho 2) Play with debug mode\necho 3) Play with invincibility & debug mode\necho 4) Return to launcher\necho.\n@choice /c1234 /s Choose option [1-4]: /n\nif errorlevel = 4 goto launcher\nif errorlevel = 3 goto invincsm2\nif errorlevel = 2 goto debugsm2\nif errorlevel = 1 goto playsm2\n:playsm2\ncls\nloadfix -32 sm2\ngoto exit\n:debugsm2\ncls\nloadfix -32 sm2 Origin\ngoto exit\n:invincsm2\ncls\nloadfix -32 sm2 Origin -k\ngoto exit\n:sound\ncls\necho.\necho 1) Set to Roland MT-32\necho 2) Set to Soundblaster 16 (default)\necho 3) Return to launcher\necho.\n@choice /c123 /s Choose option [1-3]: /n\nif errorlevel = 3 goto launcher\nif errorlevel = 2 goto sb16\nif errorlevel = 1 goto mt32\n:mt32\ncls\necho.\necho Note: Please edit your global DOSBox configuration file to point to the location of\necho the Roland MT-32 ROM files. See https://github.com/dosbox-staging/dosbox-staging/wiki/MIDI\necho.\necho Setting to Roland MT-32 after pressing a key.\necho.\npause\ncls\nCONFIG -set \"mididevice=mt32\"\nCONFIG -writeconf \"$GAMEDIR/dosboxWC_lutris.conf\"\necho v r z > WINGCMDR.CFG\necho v r z > CRUSADE.CFG\ncls\necho.\necho Completed!\necho.\npause\ngoto launcher\n:sb16\ncls\nCONFIG -set \"mididevice=auto\"\nCONFIG -writeconf \"$GAMEDIR/dosboxWC_lutris.conf\"\necho v a904 z > WINGCMDR.CFG\necho v a904 z > CRUSADE.CFG\ncls\necho.\necho Completed!\necho.\npause\ngoto launcher\n:tran\ncls\necho.\necho 1) Transfer Wing Commander save to Secret Missions 1\necho 2) Transfer Wing Commander / SM1 save to Secret Missions 2\necho 3) Return to launcher\necho.\n@choice /c123 /s Choose option [1-3]: /n\nif errorlevel = 3 goto launcher\nif errorlevel = 2 goto WC12SM2\nif errorlevel = 1 goto WC12SM1\n:WC12SM1\ncls\necho.\necho Note: To transfer a save from Wing Commander 1, your save *must* be\necho in the final system of the base game (Venice system). The Transfer program\necho does allow you to convert your save to any mission, so you can always convert\necho to the final mission before transferring if needed.\necho.\npause\ncls\nTRANSFER\ncls\ngoto launcher\n:WC12SM2\ncls\necho.\necho Note: To transfer a save from Wing Commander 1, your save *must* be\necho in the final system of the base game (Venice system). If transferring from\necho Secret Missions 1, you must be in the Vigrid system.\necho.\necho The Transfer program does allow you to convert your save to any mission,\necho so you can always convert to the final mission before transferring if needed.\necho.\npause\ncls\nTRANS2\ncls\ngoto launcher\n:exit\nexit",
          "file": "$GAMEDIR/dosboxWC_lutris.conf"
        }
      }
    ]
  }
}
Back to game