Installer jazz-jackrabbit-2-full-local-installer

files:
- game: N/A:Select JJ2 installer exe
- plus: http://www.jazz2online.com/jj2plus/plus.zip
- ahk: https://autohotkey.com/download/ahk.zip
- helper: https://gist.github.com/daniel-j/83bf128212c085cc99989e4d1e33ffb1/archive/master.zip
- patch: http://www.jazz2online.com/J2Ov2/upload/misc/j2patch_123r.exe
game:
  arch: win32
  args: -menu -windowed -nolog -nospy
  exe: $GAMEDIR/drive_c/Games/Jazz2/Jazz2+.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/helper/
    file: ahk
- extract:
    dst: $GAMEDIR/drive_c/helper/
    file: helper
- task:
    executable: game
    name: wineexec
    prefix: $GAMEDIR
- task:
    executable: patch
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/Games/Jazz2/
    file: plus
- task:
    args: /C $GAMEDIR/drive_c/helper/plusify.bat
    executable: cmd
    name: wineexec
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/Games/Jazz2
- task:
    filename: $GAMEDIR/drive_c/helper/reset.reg
    name: set_regedit_file
    prefix: $GAMEDIR
- 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
- execute:
    file: $GAMEDIR/drive_c/helper/postinstall.sh
- merge:
    dst: $GAMEDIR/drive_c/Games/Jazz2/
    src: $GAMEDIR/drive_c/helper/JAZZ2.CFG
description: Select JJ2 installer exe from disk or CD. Works with 1.20, 1.23 and TSF.
  Installs JJ2+ community patch.
game_slug: jazz-jackrabbit-2
gogslug: jazz_jackrabbit_2_collection
humblestoreid: ''
installer_slug: jazz-jackrabbit-2-full-local-installer
name: Jazz Jackrabbit 2
notes: Make sure to install the game to C:\Games\Jazz2\
runner: wine
script:
  files:
  - game: N/A:Select JJ2 installer exe
  - plus: http://www.jazz2online.com/jj2plus/plus.zip
  - ahk: https://autohotkey.com/download/ahk.zip
  - helper: https://gist.github.com/daniel-j/83bf128212c085cc99989e4d1e33ffb1/archive/master.zip
  - patch: http://www.jazz2online.com/J2Ov2/upload/misc/j2patch_123r.exe
  game:
    arch: win32
    args: -menu -windowed -nolog -nospy
    exe: $GAMEDIR/drive_c/Games/Jazz2/Jazz2+.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win32
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/helper/
      file: ahk
  - extract:
      dst: $GAMEDIR/drive_c/helper/
      file: helper
  - task:
      executable: game
      name: wineexec
      prefix: $GAMEDIR
  - task:
      executable: patch
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/Games/Jazz2/
      file: plus
  - task:
      args: /C $GAMEDIR/drive_c/helper/plusify.bat
      executable: cmd
      name: wineexec
      prefix: $GAMEDIR
      working_dir: $GAMEDIR/drive_c/Games/Jazz2
  - task:
      filename: $GAMEDIR/drive_c/helper/reset.reg
      name: set_regedit_file
      prefix: $GAMEDIR
  - 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
  - execute:
      file: $GAMEDIR/drive_c/helper/postinstall.sh
  - merge:
      dst: $GAMEDIR/drive_c/Games/Jazz2/
      src: $GAMEDIR/drive_c/helper/JAZZ2.CFG
slug: jazz-jackrabbit-2-full-local-installer
steamid: null
version: Full (local installer)
year: 1998
{
  "game_slug": "jazz-jackrabbit-2",
  "version": "Full (local installer)",
  "description": "Select JJ2 installer exe from disk or CD. Works with 1.20, 1.23 and TSF. Installs JJ2+ community patch.",
  "notes": "Make sure to install the game to C:\\Games\\Jazz2\\",
  "name": "Jazz Jackrabbit 2",
  "year": 1998,
  "steamid": null,
  "gogslug": "jazz_jackrabbit_2_collection",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "jazz-jackrabbit-2-full-local-installer",
  "installer_slug": "jazz-jackrabbit-2-full-local-installer",
  "script": {
    "files": [
      {
        "game": "N/A:Select JJ2 installer exe"
      },
      {
        "plus": "http://www.jazz2online.com/jj2plus/plus.zip"
      },
      {
        "ahk": "https://autohotkey.com/download/ahk.zip"
      },
      {
        "helper": "https://gist.github.com/daniel-j/83bf128212c085cc99989e4d1e33ffb1/archive/master.zip"
      },
      {
        "patch": "http://www.jazz2online.com/J2Ov2/upload/misc/j2patch_123r.exe"
      }
    ],
    "game": {
      "arch": "win32",
      "args": "-menu -windowed -nolog -nospy",
      "exe": "$GAMEDIR/drive_c/Games/Jazz2/Jazz2+.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win32",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/helper/",
          "file": "ahk"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/helper/",
          "file": "helper"
        }
      },
      {
        "task": {
          "executable": "game",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "executable": "patch",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Games/Jazz2/",
          "file": "plus"
        }
      },
      {
        "task": {
          "args": "/C $GAMEDIR/drive_c/helper/plusify.bat",
          "executable": "cmd",
          "name": "wineexec",
          "prefix": "$GAMEDIR",
          "working_dir": "$GAMEDIR/drive_c/Games/Jazz2"
        }
      },
      {
        "task": {
          "filename": "$GAMEDIR/drive_c/helper/reset.reg",
          "name": "set_regedit_file",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "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
        }
      },
      {
        "execute": {
          "file": "$GAMEDIR/drive_c/helper/postinstall.sh"
        }
      },
      {
        "merge": {
          "src": "$GAMEDIR/drive_c/helper/JAZZ2.CFG",
          "dst": "$GAMEDIR/drive_c/Games/Jazz2/"
        }
      }
    ]
  }
}
Back to game