Installer star-trek-starfleet-command-i-cdrom-patch-v2037

files:
- bonus: https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2bonusmissionpatch.exe
- v2036: https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2patch2002-2036.exe
- v2037: N/A:Select archive StarFleet_2037.zip
- manual: https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2.pdf
game:
  exe: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/SFC2.exe
  prefix: $GAMEDIR
  working_dir: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/
installer:
- task:
    name: create_prefix
    prefix: $GAMEDIR
- insert-disc:
    description: Please mount/insert disc 1
    requires: Autostart.exe
- merge:
    dst: $CACHE/cdrom
    src: $DISC
- execute:
    command: chmod 755 -R $CACHE/cdrom
    description: Changing Permissions
- insert-disc:
    description: Please mount/insert disc 2
    requires: data2.cab
- merge:
    dst: $CACHE/cdrom
    src: $DISC
- execute:
    command: chmod 755 -R $CACHE/cdrom
    description: Changing Permissions
- task:
    description: Installing game
    executable: $CACHE/cdrom/Autostart.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: Installing Bonus Missions
    executable: bonus
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: Patching to latest official
    executable: v2036
    name: wineexec
    prefix: $GAMEDIR
    return_code: 18432
- extract:
    dst: $CACHE/patch_v2037
    file: v2037
    name: Extracting patch v2037
- execute:
    command: mkdir -p $CACHE/patch_v2037/Assets/{Strings,specs,Sprites}
    name: Creating structure to support merging patch v2037
- execute:
    command: mv -t $CACHE/patch_v2037/Assets/Strings  $CACHE/patch_v2037/strings.txt  $CACHE/patch_v2037/quicktips.txt  $CACHE/patch_v2037/aaStrings.txt
    name: Moving files to Assets/Strings
- execute:
    command: mv -t $CACHE/patch_v2037/Assets/specs  $CACHE/patch_v2037/shiplist.txt  $CACHE/patch_v2037/ftrlist.txt
    name: Moving files to Assets/specs
- execute:
    command: mv -t $CACHE/patch_v2037/Assets/Sprites $CACHE/patch_v2037/sprites.q3
    name: Moving files to Assets/Sprites
    working_dir: $CACHE/patch_v2037
- execute:
    command: chmod 755 -R  "$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet
      Command II/"
    description: Changing Permissions
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/
    src: $CACHE/patch_v2037
- move:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/
    src: manual
- input_menu:
    description: 'Choose the Resolution:'
    id: RES
    options:
    - ? 'width=640

        height=480'
      : 640x480
    - ? 'width=800

        height=600'
      : 800x600
    - ? 'width=1280

        height=720'
      : 1280x720
    - ? 'width=1360

        height=768'
      : 1360x768
    - ? 'width=1366

        height=768'
      : 1366x768
    - ? 'width=1600

        height=900'
      : 1600x900
    - ? 'width=1920

        height=1080'
      : 1920x1080
    preselect: 'width=1920

      height=1080'
- execute:
    command: perl -i -p0e 's/width=1366.*height=768/$INPUT_RES/smg'  "$GAMEDIR/drive_c/Program
      Files (x86)/Taldren/Starfleet Command II/sfc.ini"
    description: Setting Resolution
- execute:
    command: sed -i -e 's/windowed=1/windowed=0/' -e 's/MusicVolume=0/MusicVolume=25/'
      -e 's/VoiceVolume=0/VoiceVolume=25/' -e 's/voice=0/voice=3/' "$GAMEDIR/drive_c/Program
      Files (x86)/Taldren/Starfleet Command II/sfc.ini"
    description: Setting Window Mode, Turning on Music/Voice
wine:
  dgvoodoo2: true
description: 'Star Trek: Starfleet Command II - Empires at War v2037'
game_slug: starfleet-command-ii-empires-at-war
gogslug: ''
humblestoreid: ''
installer_slug: star-trek-starfleet-command-i-cdrom-patch-v2037
name: 'Star Trek: Starfleet Command II: Empires At War'
notes: "# Star Trek: Starfleet Command II - Empires at War\r\n\r\nThis script installs\
  \ **Star Trek: Starfleet Command II - Empires at War**, the\r\nSulu bonus missions,\
  \ patches it to the latest official version (v2036), and \r\nadds the Hot and Spicy\
  \ Forums community patch v2037.\r\n\r\n- Expects the cdrom version of the game\r\
  \n- Expects a zip archive of \r\n[Starfleet_2037](https://hotandspicyforums.com/sfc2-empires-at-war-patch-2-037-t20068.html)\r\
  \n- Please report issues to the lutris_installer repo: \r\nhttps://github.com/jrobio/lutris_installers\r\
  \n\r\n## Wine Install Notes\r\n- `Forfeit` the Taldren upsell messages. They will\
  \ provide an option to turn\r\nthis off by entering `123` launching the game twice\
  \ after installation.\r\n- Do not install `directx 7`.\r\n- `Exit` the notepads\
  \ spawned by the patch installation process to continue\r\ninstallation.\r\n- Installation\
  \ of the patches may hang for a few seconds after completion, \r\nthis is expected.\r\
  \n- Installer will prompt user for desired resolution from supported options, \r\
  \nincluding:\r\n    - `640x480`\r\n    - `800x600`\r\n    - `1280x720`\r\n    -\
  \ `1360x768`\r\n    - `1366x768`\r\n    - `1600x900`\r\n    - `1920x1080`\r\n- The\
  \ installer Requires `perl`, but most linux distributions should have this \r\n\
  as a default package.\r\n- `Exit` the installer, rather than launch the game, on\
  \ completion.\r\n\r\n## Known Issues\r\n\r\n- The tutorials do not work...sorry."
runner: wine
script:
  files:
  - bonus: https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2bonusmissionpatch.exe
  - v2036: https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2patch2002-2036.exe
  - v2037: N/A:Select archive StarFleet_2037.zip
  - manual: https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2.pdf
  game:
    exe: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/SFC2.exe
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/
  installer:
  - task:
      name: create_prefix
      prefix: $GAMEDIR
  - insert-disc:
      description: Please mount/insert disc 1
      requires: Autostart.exe
  - merge:
      dst: $CACHE/cdrom
      src: $DISC
  - execute:
      command: chmod 755 -R $CACHE/cdrom
      description: Changing Permissions
  - insert-disc:
      description: Please mount/insert disc 2
      requires: data2.cab
  - merge:
      dst: $CACHE/cdrom
      src: $DISC
  - execute:
      command: chmod 755 -R $CACHE/cdrom
      description: Changing Permissions
  - task:
      description: Installing game
      executable: $CACHE/cdrom/Autostart.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      description: Installing Bonus Missions
      executable: bonus
      name: wineexec
      prefix: $GAMEDIR
  - task:
      description: Patching to latest official
      executable: v2036
      name: wineexec
      prefix: $GAMEDIR
      return_code: 18432
  - extract:
      dst: $CACHE/patch_v2037
      file: v2037
      name: Extracting patch v2037
  - execute:
      command: mkdir -p $CACHE/patch_v2037/Assets/{Strings,specs,Sprites}
      name: Creating structure to support merging patch v2037
  - execute:
      command: mv -t $CACHE/patch_v2037/Assets/Strings  $CACHE/patch_v2037/strings.txt  $CACHE/patch_v2037/quicktips.txt  $CACHE/patch_v2037/aaStrings.txt
      name: Moving files to Assets/Strings
  - execute:
      command: mv -t $CACHE/patch_v2037/Assets/specs  $CACHE/patch_v2037/shiplist.txt  $CACHE/patch_v2037/ftrlist.txt
      name: Moving files to Assets/specs
  - execute:
      command: mv -t $CACHE/patch_v2037/Assets/Sprites $CACHE/patch_v2037/sprites.q3
      name: Moving files to Assets/Sprites
      working_dir: $CACHE/patch_v2037
  - execute:
      command: chmod 755 -R  "$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet
        Command II/"
      description: Changing Permissions
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/
      src: $CACHE/patch_v2037
  - move:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/
      src: manual
  - input_menu:
      description: 'Choose the Resolution:'
      id: RES
      options:
      - ? 'width=640

          height=480'
        : 640x480
      - ? 'width=800

          height=600'
        : 800x600
      - ? 'width=1280

          height=720'
        : 1280x720
      - ? 'width=1360

          height=768'
        : 1360x768
      - ? 'width=1366

          height=768'
        : 1366x768
      - ? 'width=1600

          height=900'
        : 1600x900
      - ? 'width=1920

          height=1080'
        : 1920x1080
      preselect: 'width=1920

        height=1080'
  - execute:
      command: perl -i -p0e 's/width=1366.*height=768/$INPUT_RES/smg'  "$GAMEDIR/drive_c/Program
        Files (x86)/Taldren/Starfleet Command II/sfc.ini"
      description: Setting Resolution
  - execute:
      command: sed -i -e 's/windowed=1/windowed=0/' -e 's/MusicVolume=0/MusicVolume=25/'
        -e 's/VoiceVolume=0/VoiceVolume=25/' -e 's/voice=0/voice=3/' "$GAMEDIR/drive_c/Program
        Files (x86)/Taldren/Starfleet Command II/sfc.ini"
      description: Setting Window Mode, Turning on Music/Voice
  wine:
    dgvoodoo2: true
slug: star-trek-starfleet-command-i-cdrom-patch-v2037
steamid: null
version: CDROM + patch v2037
year: 2000
{
  "game_slug": "starfleet-command-ii-empires-at-war",
  "version": "CDROM + patch v2037",
  "description": "Star Trek: Starfleet Command II - Empires at War v2037",
  "notes": "# Star Trek: Starfleet Command II - Empires at War\r\n\r\nThis script installs **Star Trek: Starfleet Command II - Empires at War**, the\r\nSulu bonus missions, patches it to the latest official version (v2036), and \r\nadds the Hot and Spicy Forums community patch v2037.\r\n\r\n- Expects the cdrom version of the game\r\n- Expects a zip archive of \r\n[Starfleet_2037](https://hotandspicyforums.com/sfc2-empires-at-war-patch-2-037-t20068.html)\r\n- Please report issues to the lutris_installer repo: \r\nhttps://github.com/jrobio/lutris_installers\r\n\r\n## Wine Install Notes\r\n- `Forfeit` the Taldren upsell messages. They will provide an option to turn\r\nthis off by entering `123` launching the game twice after installation.\r\n- Do not install `directx 7`.\r\n- `Exit` the notepads spawned by the patch installation process to continue\r\ninstallation.\r\n- Installation of the patches may hang for a few seconds after completion, \r\nthis is expected.\r\n- Installer will prompt user for desired resolution from supported options, \r\nincluding:\r\n    - `640x480`\r\n    - `800x600`\r\n    - `1280x720`\r\n    - `1360x768`\r\n    - `1366x768`\r\n    - `1600x900`\r\n    - `1920x1080`\r\n- The installer Requires `perl`, but most linux distributions should have this \r\nas a default package.\r\n- `Exit` the installer, rather than launch the game, on completion.\r\n\r\n## Known Issues\r\n\r\n- The tutorials do not work...sorry.",
  "name": "Star Trek: Starfleet Command II: Empires At War",
  "year": 2000,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "star-trek-starfleet-command-i-cdrom-patch-v2037",
  "installer_slug": "star-trek-starfleet-command-i-cdrom-patch-v2037",
  "script": {
    "files": [
      {
        "bonus": "https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2bonusmissionpatch.exe"
      },
      {
        "v2036": "https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2patch2002-2036.exe"
      },
      {
        "v2037": "N/A:Select archive StarFleet_2037.zip"
      },
      {
        "manual": "https://gaming.trekcore.com/starfleetcommand2/downloads/sfc2.pdf"
      }
    ],
    "game": {
      "exe": "$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/SFC2.exe",
      "prefix": "$GAMEDIR",
      "working_dir": "$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/"
    },
    "installer": [
      {
        "task": {
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "description": "Please mount/insert disc 1",
          "requires": "Autostart.exe"
        }
      },
      {
        "merge": {
          "dst": "$CACHE/cdrom",
          "src": "$DISC"
        }
      },
      {
        "execute": {
          "command": "chmod 755 -R $CACHE/cdrom",
          "description": "Changing Permissions"
        }
      },
      {
        "insert-disc": {
          "description": "Please mount/insert disc 2",
          "requires": "data2.cab"
        }
      },
      {
        "merge": {
          "dst": "$CACHE/cdrom",
          "src": "$DISC"
        }
      },
      {
        "execute": {
          "command": "chmod 755 -R $CACHE/cdrom",
          "description": "Changing Permissions"
        }
      },
      {
        "task": {
          "description": "Installing game",
          "executable": "$CACHE/cdrom/Autostart.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Installing Bonus Missions",
          "executable": "bonus",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Patching to latest official",
          "executable": "v2036",
          "name": "wineexec",
          "prefix": "$GAMEDIR",
          "return_code": 18432
        }
      },
      {
        "extract": {
          "dst": "$CACHE/patch_v2037",
          "file": "v2037",
          "name": "Extracting patch v2037"
        }
      },
      {
        "execute": {
          "command": "mkdir -p $CACHE/patch_v2037/Assets/{Strings,specs,Sprites}",
          "name": "Creating structure to support merging patch v2037"
        }
      },
      {
        "execute": {
          "command": "mv -t $CACHE/patch_v2037/Assets/Strings  $CACHE/patch_v2037/strings.txt  $CACHE/patch_v2037/quicktips.txt  $CACHE/patch_v2037/aaStrings.txt",
          "name": "Moving files to Assets/Strings"
        }
      },
      {
        "execute": {
          "command": "mv -t $CACHE/patch_v2037/Assets/specs  $CACHE/patch_v2037/shiplist.txt  $CACHE/patch_v2037/ftrlist.txt",
          "name": "Moving files to Assets/specs"
        }
      },
      {
        "execute": {
          "command": "mv -t $CACHE/patch_v2037/Assets/Sprites $CACHE/patch_v2037/sprites.q3",
          "name": "Moving files to Assets/Sprites",
          "working_dir": "$CACHE/patch_v2037"
        }
      },
      {
        "execute": {
          "command": "chmod 755 -R  \"$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/\"",
          "description": "Changing Permissions"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/",
          "src": "$CACHE/patch_v2037"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/",
          "src": "manual"
        }
      },
      {
        "input_menu": {
          "description": "Choose the Resolution:",
          "id": "RES",
          "options": [
            {
              "width=640\nheight=480": "640x480"
            },
            {
              "width=800\nheight=600": "800x600"
            },
            {
              "width=1280\nheight=720": "1280x720"
            },
            {
              "width=1360\nheight=768": "1360x768"
            },
            {
              "width=1366\nheight=768": "1366x768"
            },
            {
              "width=1600\nheight=900": "1600x900"
            },
            {
              "width=1920\nheight=1080": "1920x1080"
            }
          ],
          "preselect": "width=1920\nheight=1080"
        }
      },
      {
        "execute": {
          "command": "perl -i -p0e 's/width=1366.*height=768/$INPUT_RES/smg'  \"$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/sfc.ini\"",
          "description": "Setting Resolution"
        }
      },
      {
        "execute": {
          "command": "sed -i -e 's/windowed=1/windowed=0/' -e 's/MusicVolume=0/MusicVolume=25/' -e 's/VoiceVolume=0/VoiceVolume=25/' -e 's/voice=0/voice=3/' \"$GAMEDIR/drive_c/Program Files (x86)/Taldren/Starfleet Command II/sfc.ini\"",
          "description": "Setting Window Mode, Turning on Music/Voice"
        }
      }
    ],
    "wine": {
      "dgvoodoo2": true
    }
  }
}
Back to game