Installer jazz-jackrabbit-2-gog

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:
- setup: N/A:Please select the GOG.com Jazz Jackrabbit 2 with JJ2+ installer executable
- helper: https://gist.github.com/daniel-j/83bf128212c085cc99989e4d1e33ffb1/archive/master.zip
game:
  arch: win32
  args: -windowed
  exe: drive_c/Games/Jazz2/Jazz2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    key: Last VideoMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Epic MegaGames\Jazz Jackrabbit 2 Special Edition\1.24\System
    prefix: $GAMEDIR
    type: REG_BINARY
    value: 04 00 00 00
- task:
    key: Desktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer
    prefix: $GAMEDIR
    value: Installing Jazz Jackrabbit 2
- task:
    key: Installing Jazz Jackrabbit 2
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer\Desktops
    prefix: $GAMEDIR
    value: 800x600
- task:
    args: /SP- /DIR="C:\\Games\\Jazz2" /NOICONS /NORESTART /CLOSEAPPLICATIONS
    description: Installing game
    exclude_processes: jazz2.exe
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- task:
    key: Desktop
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Explorer
    prefix: $GAMEDIR
    value: ''
- task:
    description: Stopping wine processes
    name: winekill
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/helper/
    file: helper
- merge:
    dst: $GAMEDIR/drive_c/Games/Jazz2/
    src: $GAMEDIR/drive_c/helper/JAZZ2.CFG
- write_config:
    file: $GAMEDIR/drive_c/Games/Jazz2/plus.ini
    key: GameInfo
    section: General
    value: 1
- write_config:
    file: $GAMEDIR/drive_c/Games/Jazz2/plus.ini
    key: PlayerListSort
    section: General
    value: 2
- write_config:
    file: $GAMEDIR/drive_c/Games/Jazz2/plus.ini
    key: MouseAim
    section: General
    value: false
- write_config:
    file: $GAMEDIR/drive_c/Games/Jazz2/plus.ini
    key: AllowSpectating
    section: Server
    value: true
- task:
    description: Applying some registry fixes
    filename: $GAMEDIR/drive_c/helper/reset.reg
    name: set_regedit_file
    prefix: $GAMEDIR
{
  "files": [
    {
      "setup": "N/A:Please select the GOG.com Jazz Jackrabbit 2 with JJ2+ installer executable"
    },
    {
      "helper": "https://gist.github.com/daniel-j/83bf128212c085cc99989e4d1e33ffb1/archive/master.zip"
    }
  ],
  "game": {
    "arch": "win32",
    "args": "-windowed",
    "exe": "drive_c/Games/Jazz2/Jazz2.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win32",
        "description": "Creating Wine prefix",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "key": "Last VideoMode",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Epic MegaGames\\Jazz Jackrabbit 2 Special Edition\\1.24\\System",
        "prefix": "$GAMEDIR",
        "type": "REG_BINARY",
        "value": "04 00 00 00"
      }
    },
    {
      "task": {
        "key": "Desktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer",
        "prefix": "$GAMEDIR",
        "value": "Installing Jazz Jackrabbit 2"
      }
    },
    {
      "task": {
        "key": "Installing Jazz Jackrabbit 2",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer\\Desktops",
        "prefix": "$GAMEDIR",
        "value": "800x600"
      }
    },
    {
      "task": {
        "args": "/SP- /DIR=\"C:\\\\Games\\\\Jazz2\" /NOICONS /NORESTART /CLOSEAPPLICATIONS",
        "description": "Installing game",
        "exclude_processes": "jazz2.exe",
        "executable": "setup",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "key": "Desktop",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Explorer",
        "prefix": "$GAMEDIR",
        "value": ""
      }
    },
    {
      "task": {
        "description": "Stopping wine processes",
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/helper/",
        "file": "helper"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Games/Jazz2/",
        "src": "$GAMEDIR/drive_c/helper/JAZZ2.CFG"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/Games/Jazz2/plus.ini",
        "key": "GameInfo",
        "section": "General",
        "value": 1
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/Games/Jazz2/plus.ini",
        "key": "PlayerListSort",
        "section": "General",
        "value": 2
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/Games/Jazz2/plus.ini",
        "key": "MouseAim",
        "section": "General",
        "value": false
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/Games/Jazz2/plus.ini",
        "key": "AllowSpectating",
        "section": "Server",
        "value": true
      }
    },
    {
      "task": {
        "description": "Applying some registry fixes",
        "filename": "$GAMEDIR/drive_c/helper/reset.reg",
        "name": "set_regedit_file",
        "prefix": "$GAMEDIR"
      }
    }
  ]
}
Back to game