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