Installer starship-titanic-cd-cnc-ddraw

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:
- cncddraw: https://github.com/CnCNet/cnc-ddraw/files/3139881/ddraw.zip
game:
  exe: drive_c/Starship Titanic/St.exe
  prefix: $GAMEDIR
installer:
- insert-disc:
    requires: Autorun.exe
- task:
    args: /desktop=StarshipTitanic,1024x780 $DISC/Autorun.exe
    description: Running setup of the game. Just proceed and keep all settings at
      their defaults
    executable: $GAMEDIR/drive_c/windows/explorer.exe
    name: wineexec
- extract:
    dst: $GAMEDIR/drive_c/Starship Titanic/
    file: cncddraw
- execute:
    command: cp "$GAMEDIR/drive_c/Starship Titanic/ddraw.ini" "$GAMEDIR/drive_c/Starship
      Titanic/ddraw_original.ini"
- write_config:
    data:
      ddraw:
        border: false
        fullscreen: false
        height: $RESOLUTION_HEIGHT
        maintas: true
        maxfps: -1
        renderer: opengl
        singlecpu: false
        vsync: true
        width: $RESOLUTION_WIDTH
        windowed: true
    file: $GAMEDIR/drive_c/Starship Titanic/ddraw.ini
    merge: true
- task:
    arch: win64
    key: ddraw
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- task:
    arch: win64
    key: csmt
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
wine:
  Desktop: true
{
  "installer": [
    {
      "insert-disc": {
        "requires": "Autorun.exe"
      }
    },
    {
      "task": {
        "args": "/desktop=StarshipTitanic,1024x780 $DISC/Autorun.exe",
        "executable": "$GAMEDIR/drive_c/windows/explorer.exe",
        "description": "Running setup of the game. Just proceed and keep all settings at their defaults",
        "name": "wineexec"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/Starship Titanic/",
        "file": "cncddraw"
      }
    },
    {
      "execute": {
        "command": "cp \"$GAMEDIR/drive_c/Starship Titanic/ddraw.ini\" \"$GAMEDIR/drive_c/Starship Titanic/ddraw_original.ini\""
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/Starship Titanic/ddraw.ini",
        "merge": true,
        "data": {
          "ddraw": {
            "maintas": true,
            "width": "$RESOLUTION_WIDTH",
            "windowed": true,
            "maxfps": -1,
            "singlecpu": false,
            "border": false,
            "height": "$RESOLUTION_HEIGHT",
            "fullscreen": false,
            "vsync": true,
            "renderer": "opengl"
          }
        }
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "value": "native,builtin",
        "arch": "win64",
        "key": "ddraw",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "type": "REG_SZ"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "value": "00000000",
        "arch": "win64",
        "key": "csmt",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "type": "REG_DWORD"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "value": "0 0 0",
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "type": "REG_SZ"
      }
    }
  ],
  "files": [
    {
      "cncddraw": "https://github.com/CnCNet/cnc-ddraw/files/3139881/ddraw.zip"
    }
  ],
  "wine": {
    "Desktop": true
  },
  "game": {
    "prefix": "$GAMEDIR",
    "exe": "drive_c/Starship Titanic/St.exe"
  }
}
Back to game