Installer wing-commander-armada-gog

files:
- setup: N/A:Select the Windows installer downloaded from GOG
- askecho: https://github.com/keenanweaver/lutris-files/raw/main/wing-commander-armada/ASKECHO.COM
game:
  gogid: 1207659603
  main_file: $GAMEDIR/dosboxWCA_lutris.conf
installer:
- extract:
    description: Extract GOG installer
    dst: $GAMEDIR
    file: setup
- merge:
    description: Move ASKECHO.COM to $GAMEDIR
    dst: $GAMEDIR
    src: askecho
- write_file:
    content: '[sdl]

      fullscreen     = true

      fullresolution = desktop

      output         = openglpp



      [cpu]

      core           = auto

      cputype        = auto

      cycles         = fixed 8000

      cycleup        = 1000

      cycledown      = 1000



      [ipx]

      ipx            = true



      [autoexec]

      @echo off

      mount C "$GAMEDIR" -t dir

      mount C "$GAMEDIR/cloud_saves" -t overlay

      c:

      goto launcher

      :launcher

      cls

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

      ECHO   Wing Commander Armada

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

      ECHO   1) Wing Commander: Armada

      ECHO   2) Proving Grounds (multiplayer)

      ECHO   3) Game settings

      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 setup

      if errorlevel 2 goto pg

      if errorlevel 1 goto wca

      :wca

      cls

      armada.exe

      goto exit

      :pg

      echo.

      echo 1) Join a game

      echo 2) Host a game

      echo 3) Return to launcher

      echo.

      choice /C:123 /N Choose option [1-3]:

      if errorlevel = 3 goto launcher

      if errorlevel = 2 goto host

      if errorlevel = 1 goto join

      :host

      cls

      echo.

      ipxnet startserver

      cls

      echo.

      echo An IPX Server has been started with the default port (213).

      echo.

      echo Other players will need your IP address to join you.

      echo.

      echo Use this IP for internet play:

      type ExtIP.txt

      echo Use this IP for LAN play:

      type ExtIP2.txt

      echo.

      echo Press a key to launch the game. Then choose the following:

      echo IPX Net Play

      echo Enter Callsign or Press F1 to use Previous Callsign

      echo Click Create, Choose Game Type and Asteroid density

      echo Click PLAY once all other players have joined.

      echo Choose Ship and select COMMIT

      echo.

      pause

      pg

      echo.

      pause

      goto launcher

      :join

      cls

      echo.

      echo You will need the host IP address in order to connect to them.

      echo.

      echo When playing within the same network, this will typically start

      echo with 192.168.XXX.XXX. If playing over the internet, it will not

      echo start with 192.

      echo.

      askecho /N "set IP=" "+Host IP Address? " > SetIP.bat

      call setip

      IPXNET CONNECT %IP%

      echo.

      echo Press 1 if the connection succeeded

      echo Press 2 if it failed and you want to try again

      echo Press 3 to give up

      echo.

      choice /C:123 /N Choose option [1-3]:

      if errorlevel = 3 goto launcher

      if errorlevel = 2 goto join

      if errorlevel = 1 goto connected

      :connected

      cls

      echo.

      echo Press a key to launch the game. Then choose the following:

      echo IPX Net Play

      echo Enter Callsign or Press F1 to use Previous Callsign

      echo Click Available Game and then JOIN

      echo Click PLAY once all other players have joined.

      echo Choose Ship and select COMMIT

      echo.

      pause

      pg

      echo.

      pause

      goto launcher

      :setup

      cls

      INSTALL.EXE

      goto launcher

      :sound

      cls

      echo.

      echo 1) Set to Roland MT-32 / MIDI

      echo 2) Set to Soundblaster 16 (default)

      echo 3) Return to launcher

      echo.

      choice /C:123 /N Choose option [1-3]:

      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 enter.

      echo.

      pause

      cls

      CONFIG -set "mididevice=mt32"

      CONFIG -writeconf "$GAMEDIR/dosboxWCA_lutris.conf"

      echo -w > ARMADA.CFG

      echo =DATA.TRE >> ARMADA.CFG

      echo -mg330 >> ARMADA.CFG

      echo -ds271 >> ARMADA.CFG

      echo -w > INSTALL.CFG

      echo =DATA.TRE >> INSTALL.CFG

      echo -mg330 >> INSTALL.CFG

      echo -ds271 >> INSTALL.CFG

      cls

      echo.

      echo Completed!

      echo.

      pause

      goto launcher

      :sb16

      cls

      CONFIG -set "mididevice=auto"

      CONFIG -writeconf "$GAMEDIR/dosboxWCA_lutris.conf"

      echo -w > ARMADA.CFG

      echo =DATA.TRE >> ARMADA.CFG

      echo -ma >> ARMADA.CFG

      echo -ds271 >> ARMADA.CFG

      echo -w > INSTALL.CFG

      echo =DATA.TRE >> INSTALL.CFG

      echo -ma >> INSTALL.CFG

      echo -ds271 >> INSTALL.CFG

      cls

      echo.

      echo Completed!

      echo.

      pause

      goto launcher

      :exit

      exit'
    file: $GAMEDIR/dosboxWCA_lutris.conf
description: Includes custom launcher interface for ease of use
game_slug: wing-commander-armada
gogslug: wing_commander_armada
humblestoreid: ''
installer_slug: wing-commander-armada-gog
name: 'Wing Commander: Armada'
notes: ''
runner: dosbox
script:
  files:
  - setup: N/A:Select the Windows installer downloaded from GOG
  - askecho: https://github.com/keenanweaver/lutris-files/raw/main/wing-commander-armada/ASKECHO.COM
  game:
    gogid: 1207659603
    main_file: $GAMEDIR/dosboxWCA_lutris.conf
  installer:
  - extract:
      description: Extract GOG installer
      dst: $GAMEDIR
      file: setup
  - merge:
      description: Move ASKECHO.COM to $GAMEDIR
      dst: $GAMEDIR
      src: askecho
  - write_file:
      content: '[sdl]

        fullscreen     = true

        fullresolution = desktop

        output         = openglpp



        [cpu]

        core           = auto

        cputype        = auto

        cycles         = fixed 8000

        cycleup        = 1000

        cycledown      = 1000



        [ipx]

        ipx            = true



        [autoexec]

        @echo off

        mount C "$GAMEDIR" -t dir

        mount C "$GAMEDIR/cloud_saves" -t overlay

        c:

        goto launcher

        :launcher

        cls

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

        ECHO   Wing Commander Armada

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

        ECHO   1) Wing Commander: Armada

        ECHO   2) Proving Grounds (multiplayer)

        ECHO   3) Game settings

        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 setup

        if errorlevel 2 goto pg

        if errorlevel 1 goto wca

        :wca

        cls

        armada.exe

        goto exit

        :pg

        echo.

        echo 1) Join a game

        echo 2) Host a game

        echo 3) Return to launcher

        echo.

        choice /C:123 /N Choose option [1-3]:

        if errorlevel = 3 goto launcher

        if errorlevel = 2 goto host

        if errorlevel = 1 goto join

        :host

        cls

        echo.

        ipxnet startserver

        cls

        echo.

        echo An IPX Server has been started with the default port (213).

        echo.

        echo Other players will need your IP address to join you.

        echo.

        echo Use this IP for internet play:

        type ExtIP.txt

        echo Use this IP for LAN play:

        type ExtIP2.txt

        echo.

        echo Press a key to launch the game. Then choose the following:

        echo IPX Net Play

        echo Enter Callsign or Press F1 to use Previous Callsign

        echo Click Create, Choose Game Type and Asteroid density

        echo Click PLAY once all other players have joined.

        echo Choose Ship and select COMMIT

        echo.

        pause

        pg

        echo.

        pause

        goto launcher

        :join

        cls

        echo.

        echo You will need the host IP address in order to connect to them.

        echo.

        echo When playing within the same network, this will typically start

        echo with 192.168.XXX.XXX. If playing over the internet, it will not

        echo start with 192.

        echo.

        askecho /N "set IP=" "+Host IP Address? " > SetIP.bat

        call setip

        IPXNET CONNECT %IP%

        echo.

        echo Press 1 if the connection succeeded

        echo Press 2 if it failed and you want to try again

        echo Press 3 to give up

        echo.

        choice /C:123 /N Choose option [1-3]:

        if errorlevel = 3 goto launcher

        if errorlevel = 2 goto join

        if errorlevel = 1 goto connected

        :connected

        cls

        echo.

        echo Press a key to launch the game. Then choose the following:

        echo IPX Net Play

        echo Enter Callsign or Press F1 to use Previous Callsign

        echo Click Available Game and then JOIN

        echo Click PLAY once all other players have joined.

        echo Choose Ship and select COMMIT

        echo.

        pause

        pg

        echo.

        pause

        goto launcher

        :setup

        cls

        INSTALL.EXE

        goto launcher

        :sound

        cls

        echo.

        echo 1) Set to Roland MT-32 / MIDI

        echo 2) Set to Soundblaster 16 (default)

        echo 3) Return to launcher

        echo.

        choice /C:123 /N Choose option [1-3]:

        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 enter.

        echo.

        pause

        cls

        CONFIG -set "mididevice=mt32"

        CONFIG -writeconf "$GAMEDIR/dosboxWCA_lutris.conf"

        echo -w > ARMADA.CFG

        echo =DATA.TRE >> ARMADA.CFG

        echo -mg330 >> ARMADA.CFG

        echo -ds271 >> ARMADA.CFG

        echo -w > INSTALL.CFG

        echo =DATA.TRE >> INSTALL.CFG

        echo -mg330 >> INSTALL.CFG

        echo -ds271 >> INSTALL.CFG

        cls

        echo.

        echo Completed!

        echo.

        pause

        goto launcher

        :sb16

        cls

        CONFIG -set "mididevice=auto"

        CONFIG -writeconf "$GAMEDIR/dosboxWCA_lutris.conf"

        echo -w > ARMADA.CFG

        echo =DATA.TRE >> ARMADA.CFG

        echo -ma >> ARMADA.CFG

        echo -ds271 >> ARMADA.CFG

        echo -w > INSTALL.CFG

        echo =DATA.TRE >> INSTALL.CFG

        echo -ma >> INSTALL.CFG

        echo -ds271 >> INSTALL.CFG

        cls

        echo.

        echo Completed!

        echo.

        pause

        goto launcher

        :exit

        exit'
      file: $GAMEDIR/dosboxWCA_lutris.conf
slug: wing-commander-armada-gog
steamid: null
version: GOG
year: 1994
{
  "game_slug": "wing-commander-armada",
  "version": "GOG",
  "description": "Includes custom launcher interface for ease of use",
  "notes": "",
  "name": "Wing Commander: Armada",
  "year": 1994,
  "steamid": null,
  "gogslug": "wing_commander_armada",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "wing-commander-armada-gog",
  "installer_slug": "wing-commander-armada-gog",
  "script": {
    "files": [
      {
        "setup": "N/A:Select the Windows installer downloaded from GOG"
      },
      {
        "askecho": "https://github.com/keenanweaver/lutris-files/raw/main/wing-commander-armada/ASKECHO.COM"
      }
    ],
    "game": {
      "gogid": 1207659603,
      "main_file": "$GAMEDIR/dosboxWCA_lutris.conf"
    },
    "installer": [
      {
        "extract": {
          "description": "Extract GOG installer",
          "dst": "$GAMEDIR",
          "file": "setup"
        }
      },
      {
        "merge": {
          "description": "Move ASKECHO.COM to $GAMEDIR",
          "dst": "$GAMEDIR",
          "src": "askecho"
        }
      },
      {
        "write_file": {
          "content": "[sdl]\nfullscreen     = true\nfullresolution = desktop\noutput         = openglpp\n\n\n[cpu]\ncore           = auto\ncputype        = auto\ncycles         = fixed 8000\ncycleup        = 1000\ncycledown      = 1000\n\n\n[ipx]\nipx            = true\n\n\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 Armada\nECHO  ------------------------------------------\nECHO   1) Wing Commander: Armada\nECHO   2) Proving Grounds (multiplayer)\nECHO   3) Game settings\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 setup\nif errorlevel 2 goto pg\nif errorlevel 1 goto wca\n:wca\ncls\narmada.exe\ngoto exit\n:pg\necho.\necho 1) Join a game\necho 2) Host a game\necho 3) Return to launcher\necho.\nchoice /C:123 /N Choose option [1-3]:\nif errorlevel = 3 goto launcher\nif errorlevel = 2 goto host\nif errorlevel = 1 goto join\n:host\ncls\necho.\nipxnet startserver\ncls\necho.\necho An IPX Server has been started with the default port (213).\necho.\necho Other players will need your IP address to join you.\necho.\necho Use this IP for internet play:\ntype ExtIP.txt\necho Use this IP for LAN play:\ntype ExtIP2.txt\necho.\necho Press a key to launch the game. Then choose the following:\necho IPX Net Play\necho Enter Callsign or Press F1 to use Previous Callsign\necho Click Create, Choose Game Type and Asteroid density\necho Click PLAY once all other players have joined.\necho Choose Ship and select COMMIT\necho.\npause\npg\necho.\npause\ngoto launcher\n:join\ncls\necho.\necho You will need the host IP address in order to connect to them.\necho.\necho When playing within the same network, this will typically start\necho with 192.168.XXX.XXX. If playing over the internet, it will not\necho start with 192.\necho.\naskecho /N \"set IP=\" \"+Host IP Address? \" > SetIP.bat\ncall setip\nIPXNET CONNECT %IP%\necho.\necho Press 1 if the connection succeeded\necho Press 2 if it failed and you want to try again\necho Press 3 to give up\necho.\nchoice /C:123 /N Choose option [1-3]:\nif errorlevel = 3 goto launcher\nif errorlevel = 2 goto join\nif errorlevel = 1 goto connected\n:connected\ncls\necho.\necho Press a key to launch the game. Then choose the following:\necho IPX Net Play\necho Enter Callsign or Press F1 to use Previous Callsign\necho Click Available Game and then JOIN\necho Click PLAY once all other players have joined.\necho Choose Ship and select COMMIT\necho.\npause\npg\necho.\npause\ngoto launcher\n:setup\ncls\nINSTALL.EXE\ngoto launcher\n:sound\ncls\necho.\necho 1) Set to Roland MT-32 / MIDI\necho 2) Set to Soundblaster 16 (default)\necho 3) Return to launcher\necho.\nchoice /C:123 /N Choose option [1-3]:\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 enter.\necho.\npause\ncls\nCONFIG -set \"mididevice=mt32\"\nCONFIG -writeconf \"$GAMEDIR/dosboxWCA_lutris.conf\"\necho -w > ARMADA.CFG\necho =DATA.TRE >> ARMADA.CFG\necho -mg330 >> ARMADA.CFG\necho -ds271 >> ARMADA.CFG\necho -w > INSTALL.CFG\necho =DATA.TRE >> INSTALL.CFG\necho -mg330 >> INSTALL.CFG\necho -ds271 >> INSTALL.CFG\ncls\necho.\necho Completed!\necho.\npause\ngoto launcher\n:sb16\ncls\nCONFIG -set \"mididevice=auto\"\nCONFIG -writeconf \"$GAMEDIR/dosboxWCA_lutris.conf\"\necho -w > ARMADA.CFG\necho =DATA.TRE >> ARMADA.CFG\necho -ma >> ARMADA.CFG\necho -ds271 >> ARMADA.CFG\necho -w > INSTALL.CFG\necho =DATA.TRE >> INSTALL.CFG\necho -ma >> INSTALL.CFG\necho -ds271 >> INSTALL.CFG\ncls\necho.\necho Completed!\necho.\npause\ngoto launcher\n:exit\nexit",
          "file": "$GAMEDIR/dosboxWCA_lutris.conf"
        }
      }
    ]
  }
}
Back to game