Installer commander-keen-2-the-earth-ex-ms-dos-patched

files:
- game: N/A:Select the file Keen2.exe
- patch: http://www.shikadi.net/wiki/files/tools/t.ckpatch_v.0.10.andrew_durdin.2007-11-23.zip
game:
  main_file: $GAMEDIR/commander_keen.conf
installer:
- execute:
    args: $GAMEDIR/HDD $GAMEDIR/HDD/keen2
    file: mkdir
- extract:
    dst: $CACHE
    file: $patch
    format: zip
- execute:
    args: $CACHE/CK2PATCH.EXE $GAMEDIR/HDD/keen2
    file: /bin/cp
- write_file:
    content: '%ext ck2

      #Change the controls to: Space, shoot; Enter, status.

      %patch $120B  $5024W

      %patch $83A2  $5024W

      %patch $6965  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

      %patch $6A90  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

      %patch $6BFB  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

      %patch $6C0E  $90 $90

      %patch $6CAF  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

      %patch $6E3E  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

      %patch $6EEC  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

      %end'
    file: $GAMEDIR/HDD/keen2/PATCH.PAT
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      src_path=$(echo "$1" | sed -r "s/(.+)\/.+/\1/")

      cp -avr "$src_path/."  "$dst"'
    file: $CACHE/bulkcopy.sh
- chmodx: $CACHE/bulkcopy.sh
- execute:
    args: $game $GAMEDIR/HDD/keen2
    file: $CACHE/bulkcopy.sh
- write_file:
    content: '[cpu]

      cputype=386_slow

      [autoexec]

      mount C "$GAMEDIR/HDD" -t dir

      C:

      cd keen2

      CK2PATCH.EXE patch.pat

      exit'
    file: $GAMEDIR/commander_keen.conf
description: The installer will patch the controls Space = shoot Enter = status
game_slug: commander-keen-2-the-earth-explodes
gogslug: ''
humblestoreid: ''
installer_slug: commander-keen-2-the-earth-ex-ms-dos-patched
name: 'Commander Keen 2: The Earth Explodes'
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select the file Keen2.exe
  - patch: http://www.shikadi.net/wiki/files/tools/t.ckpatch_v.0.10.andrew_durdin.2007-11-23.zip
  game:
    main_file: $GAMEDIR/commander_keen.conf
  installer:
  - execute:
      args: $GAMEDIR/HDD $GAMEDIR/HDD/keen2
      file: mkdir
  - extract:
      dst: $CACHE
      file: $patch
      format: zip
  - execute:
      args: $CACHE/CK2PATCH.EXE $GAMEDIR/HDD/keen2
      file: /bin/cp
  - write_file:
      content: '%ext ck2

        #Change the controls to: Space, shoot; Enter, status.

        %patch $120B  $5024W

        %patch $83A2  $5024W

        %patch $6965  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

        %patch $6A90  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

        %patch $6BFB  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

        %patch $6C0E  $90 $90

        %patch $6CAF  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

        %patch $6E3E  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

        %patch $6EEC  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00

        %end'
      file: $GAMEDIR/HDD/keen2/PATCH.PAT
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

        src_path=$(echo "$1" | sed -r "s/(.+)\/.+/\1/")

        cp -avr "$src_path/."  "$dst"'
      file: $CACHE/bulkcopy.sh
  - chmodx: $CACHE/bulkcopy.sh
  - execute:
      args: $game $GAMEDIR/HDD/keen2
      file: $CACHE/bulkcopy.sh
  - write_file:
      content: '[cpu]

        cputype=386_slow

        [autoexec]

        mount C "$GAMEDIR/HDD" -t dir

        C:

        cd keen2

        CK2PATCH.EXE patch.pat

        exit'
      file: $GAMEDIR/commander_keen.conf
slug: commander-keen-2-the-earth-ex-ms-dos-patched
steamid: null
version: MS-DOS + PATCHED
year: 1990
{
  "game_slug": "commander-keen-2-the-earth-explodes",
  "version": "MS-DOS + PATCHED",
  "description": "The installer will patch the controls Space = shoot Enter = status",
  "notes": "",
  "name": "Commander Keen 2: The Earth Explodes",
  "year": 1990,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "commander-keen-2-the-earth-ex-ms-dos-patched",
  "installer_slug": "commander-keen-2-the-earth-ex-ms-dos-patched",
  "script": {
    "files": [
      {
        "game": "N/A:Select the file Keen2.exe"
      },
      {
        "patch": "http://www.shikadi.net/wiki/files/tools/t.ckpatch_v.0.10.andrew_durdin.2007-11-23.zip"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/commander_keen.conf"
    },
    "installer": [
      {
        "execute": {
          "args": "$GAMEDIR/HDD $GAMEDIR/HDD/keen2",
          "file": "mkdir"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$patch",
          "format": "zip"
        }
      },
      {
        "execute": {
          "args": "$CACHE/CK2PATCH.EXE $GAMEDIR/HDD/keen2",
          "file": "/bin/cp"
        }
      },
      {
        "write_file": {
          "content": "%ext ck2\n#Change the controls to: Space, shoot; Enter, status.\n%patch $120B  $5024W\n%patch $83A2  $5024W\n%patch $6965  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00\n%patch $6A90  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00\n%patch $6BFB  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00\n%patch $6C0E  $90 $90\n%patch $6CAF  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00\n%patch $6E3E  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00\n%patch $6EEC  $90 $90 $90 $90 $90 $90 $90 $80 $3E $5041W  $00\n%end",
          "file": "$GAMEDIR/HDD/keen2/PATCH.PAT"
        }
      },
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nsrc_path=$(echo \"$1\" | sed -r \"s/(.+)\\/.+/\\1/\")\ncp -avr \"$src_path/.\"  \"$dst\"",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/bulkcopy.sh"
      },
      {
        "execute": {
          "args": "$game $GAMEDIR/HDD/keen2",
          "file": "$CACHE/bulkcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[cpu]\ncputype=386_slow\n[autoexec]\nmount C \"$GAMEDIR/HDD\" -t dir\nC:\ncd keen2\nCK2PATCH.EXE patch.pat\nexit",
          "file": "$GAMEDIR/commander_keen.conf"
        }
      }
    ]
  }
}
Back to game