Installer freespace-2-gogcom

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:
- game: N/A:Please select the GOG.com Windows installer.
game:
  arch: win32
  exe: $GAMEDIR/drive_c/game/FS2.exe
  prefix: $GAMEDIR
  working_dir: $GAMEDIR/drive_c/game
gogid: freespace_2
installer:
- task:
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    key: winemenubuilder.exe
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides
    prefix: $GAMEDIR
    type: REG_SZ
    value: ''
- task:
    args: /VERYSILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES '/DIR=C:/game'
    description: Installing...
    executable: game
    name: wineexec
    prefix: $GAMEDIR
- execute:
    args: -c "mkdir -p $GAMEDIR/drive_c/game/data/movies"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "mv $GAMEDIR/drive_c/game/data2/*.MVE $GAMEDIR/drive_c/game/data"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "mv $GAMEDIR/drive_c/game/data3/*.MVE $GAMEDIR/drive_c/game/data"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cp -f $GAMEDIR/drive_c/game/data2/tango*.vp $GAMEDIR/drive_c/game"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cp -f $GAMEDIR/drive_c/game/data3/tango*.vp $GAMEDIR/drive_c/game"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "rm -rf $GAMEDIR/drive_c/game/data3 $GAMEDIR/drive_c/game/data2"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "ln -s $GAMEDIR/drive_c/game/data $GAMEDIR/drive_c/game/data2"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "ln -s $GAMEDIR/drive_c/game/data $GAMEDIR/drive_c/game/data3"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "mkdir $GAMEDIR/drive_c/game/data/movies"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../BASTION.MVE movies/BASTION.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../COLOSSUS.MVE movies/COLOSSUS.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../ENDPART1.MVE movies/ENDPART1.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../ENDPART2A.MVE movies/ENDPART2A.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../ENDPART2B.MVE movies/ENDPART2B.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../INTRO.MVE movies/INTRO.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../MONO1.MVE movies/MONO1.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../MONO2.MVE movies/MONO2.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../MONO3.MVE movies/MONO3.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- execute:
    args: -c "cd $GAMEDIR/drive_c/game/data && ln -s ../MONO4.MVE movies/MONO4.MVE"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- move:
    description: making the GOGVersion fs2_open compatible...
    dst: $GAMEDIR/freespace2
    src: $GAMEDIR/drive_c/game
- execute:
    args: -c "cd $GAMEDIR && ln -sf ../freespace2 $GAMEDIR/drive_c/game"
    description: making the GOGVersion fs2_open compatible...
    file: /bin/sh
- task:
    app: sandbox
    description: Disabling unused WINE features
    name: winetricks
    prefix: $GAMEDIR
    silent: true
{
  "installer": [
    {
      "task": {
        "description": "Creating Wine prefix",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "type": "REG_SZ",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides",
        "key": "winemenubuilder.exe",
        "value": "",
        "name": "set_regedit",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Installing...",
        "args": "/VERYSILENT /SP- /NOCANCEL /SUPPRESSMSGBOXES '/DIR=C:/game'",
        "name": "wineexec",
        "executable": "game",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"mkdir -p $GAMEDIR/drive_c/game/data/movies\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"mv $GAMEDIR/drive_c/game/data2/*.MVE $GAMEDIR/drive_c/game/data\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"mv $GAMEDIR/drive_c/game/data3/*.MVE $GAMEDIR/drive_c/game/data\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cp -f $GAMEDIR/drive_c/game/data2/tango*.vp $GAMEDIR/drive_c/game\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cp -f $GAMEDIR/drive_c/game/data3/tango*.vp $GAMEDIR/drive_c/game\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"rm -rf $GAMEDIR/drive_c/game/data3 $GAMEDIR/drive_c/game/data2\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"ln -s $GAMEDIR/drive_c/game/data $GAMEDIR/drive_c/game/data2\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"ln -s $GAMEDIR/drive_c/game/data $GAMEDIR/drive_c/game/data3\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"mkdir $GAMEDIR/drive_c/game/data/movies\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../BASTION.MVE movies/BASTION.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../COLOSSUS.MVE movies/COLOSSUS.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../ENDPART1.MVE movies/ENDPART1.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../ENDPART2A.MVE movies/ENDPART2A.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../ENDPART2B.MVE movies/ENDPART2B.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../INTRO.MVE movies/INTRO.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../MONO1.MVE movies/MONO1.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../MONO2.MVE movies/MONO2.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../MONO3.MVE movies/MONO3.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR/drive_c/game/data && ln -s ../MONO4.MVE movies/MONO4.MVE\"",
        "file": "/bin/sh"
      }
    },
    {
      "move": {
        "description": "making the GOGVersion fs2_open compatible...",
        "src": "$GAMEDIR/drive_c/game",
        "dst": "$GAMEDIR/freespace2"
      }
    },
    {
      "execute": {
        "description": "making the GOGVersion fs2_open compatible...",
        "args": "-c \"cd $GAMEDIR && ln -sf ../freespace2 $GAMEDIR/drive_c/game\"",
        "file": "/bin/sh"
      }
    },
    {
      "task": {
        "description": "Disabling unused WINE features",
        "name": "winetricks",
        "silent": true,
        "app": "sandbox",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "game": {
    "arch": "win32",
    "working_dir": "$GAMEDIR/drive_c/game",
    "prefix": "$GAMEDIR",
    "exe": "$GAMEDIR/drive_c/game/FS2.exe"
  },
  "gogid": "freespace_2",
  "files": [
    {
      "game": "N/A:Please select the GOG.com Windows installer."
    }
  ]
}
Back to game