Installer pool-of-radiance-dos

files:
- pool: 'N/A: Select Pool of Radiance DISK1.ARJ file'
- gbc: 'N/A: Select zip file containing Gold Box Companion'
- dosbox:
    filename: DOSBox0.74-3-win32-installer.exe
    url: https://sourceforge.net/projects/dosbox/files/dosbox/0.74-3/DOSBox0.74-3-win32-installer.exe/download
- unarj: https://fossies.org/linux/unarj/unarj32.exe
game:
  exe: drive_c/GAMES/START.BAT
  launch_configs:
  - exe: drive_c/GAMES/GBC/SGE.exe
    name: Save Game Editor
  prefix: $GAMEDIR
  working_dir: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- copy:
    description: Moving DISK1.ARJ to C:\GAMES\DOS\POOLRAD
    dst: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD
    src: pool
- task:
    args: e DISK1.ARJ
    description: Extracting DISK1.ARJ
    executable: unarj
    name: wineexec
    working_dir: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD
- execute:
    command: find -maxdepth 1 -iname DISK1.ARJ -delete
    description: Deleting DISK1.ARJ
    working_dir: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD
- write_file:
    content: "E\r\nP\r\nC:\\POOLRAD\\\r\nC:\\POOLRAD\\\r\nF\r\n"
    description: Creating POOL.CFG
    file: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD/POOL.CFG
- write_file:
    content: "#!/bin/sh\n\nTARGET=./drive_c/GAMES/DOS/POOLRAD/GAME.OVR\n\nBYTES=`xxd\
      \ -p -s 0xcd8 -l 2 $TARGET`\nif [ $BYTES = '7502' ]; then\n  echo 'Patching\
      \ out copy protection'\n  echo '9090' | xxd -p -s 0xcd8 -r - $TARGET\nelse\n\
      \  echo 'Unable to patch out copy protection'\nfi\n"
    description: Creating remove-copy-protection.sh
    file: $GAMEDIR/remove-copy-protection.sh
- chmodx: $GAMEDIR/remove-copy-protection.sh
- extract:
    description: Extracting Gold Box Companion
    dst: $GAMEDIR/drive_c/GAMES/GBC
    file: gbc
- task:
    args: /S /D=C:\\GAMES\\DOSBOX
    description: Installing DOSBox
    executable: dosbox
    name: wineexec
- write_file:
    content: '[sdl]

      fullscreen=false

      fulldouble=false

      fullresolution=original

      windowresolution=original

      output=surface

      autolock=true

      sensitivity=100

      waitonerror=true

      priority=higher,normal

      mapperfile=mapper-0.74-3.map

      usescancodes=true


      [dosbox]

      language=

      machine=svga_s3

      captures=capture

      memsize=16


      [render]

      frameskip=0

      aspect=false

      scaler=normal2x


      [cpu]

      core=auto

      cputype=auto

      cycles=7000

      cycleup=10

      cycledown=20


      [mixer]

      nosound=false

      rate=44100

      blocksize=1024

      prebuffer=25


      [midi]

      mpu401=intelligent

      mididevice=default

      midiconfig=


      [sblaster]

      sbtype=sb16

      sbbase=220

      irq=7

      dma=1

      hdma=5

      sbmixer=true

      oplmode=auto

      oplemu=default

      oplrate=44100


      [gus]

      gus=false

      gusrate=44100

      gusbase=240

      gusirq=5

      gusdma=3

      ultradir=C:\ULTRASND


      [speaker]

      pcspeaker=true

      pcrate=44100

      tandy=auto

      tandyrate=44100

      disney=true


      [joystick]

      joysticktype=auto

      timed=true

      autofire=false

      swap34=false

      buttonwrap=false


      [serial]

      serial1=dummy

      serial2=dummy

      serial3=disabled

      serial4=disabled


      [dos]

      xms=true

      ems=true

      umb=true

      keyboardlayout=auto


      [ipx]

      ipx=false


      [autoexec]

      MOUNT C C:\GAMES\DOS

      C:

      CD POOLRAD

      START.EXE

      '
    description: Creating DOSBox config
    file: $GAMEDIR/drive_c/GAMES/DOSBOX/DOSBOX.CONF
- write_file:
    content: 'start C:\GAMES\DOSBOX\DOSBOX.EXE -conf C:\GAMES\DOSBOX\DOSBOX.CONF

      start C:\GAMES\GBC\GBC.EXE

      '
    description: Creating startup script
    file: $GAMEDIR/drive_c/GAMES/START.BAT
description: Play Pool of Radiance with Gold Box Companion on Linux!
game_slug: pool-of-radiance
gogslug: dd_classics
humblestoreid: ''
installer_slug: pool-of-radiance-dos
name: Pool of Radiance
notes: "This installer requires the original Pool of Radiance install disk archive,\
  \ DISK1.ARJ.\r\n\r\nDownload Gold Box Companion from https://gbc.zorbus.net/\r\n\
  \r\nGold Box Companion requires Pool of Radiance version 1.3. You will need to set\
  \ the install directory when first running Gold Box Companion, it is C:\\GAMES\\\
  DOS\\POOLRAD. See the Gold Box Companion documentation for more details.\r\n\r\n\
  This installer creates a bash script for disabling the copy protection from Pool\
  \ of Radiance version 1.3, it requires xxd to function. Run remove-copy-protection.sh\
  \ in the install directory. With the copy protection patched you can press enter\
  \ at the copy protection screen to pass the check.\r\n\r\nThe DOSBox config is located\
  \ at [install directory]/drive_c/GAMES/DOSBOX/DOSBOX.CONF."
runner: wine
script:
  files:
  - pool: 'N/A: Select Pool of Radiance DISK1.ARJ file'
  - gbc: 'N/A: Select zip file containing Gold Box Companion'
  - dosbox:
      filename: DOSBox0.74-3-win32-installer.exe
      url: https://sourceforge.net/projects/dosbox/files/dosbox/0.74-3/DOSBox0.74-3-win32-installer.exe/download
  - unarj: https://fossies.org/linux/unarj/unarj32.exe
  game:
    exe: drive_c/GAMES/START.BAT
    launch_configs:
    - exe: drive_c/GAMES/GBC/SGE.exe
      name: Save Game Editor
    prefix: $GAMEDIR
    working_dir: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - copy:
      description: Moving DISK1.ARJ to C:\GAMES\DOS\POOLRAD
      dst: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD
      src: pool
  - task:
      args: e DISK1.ARJ
      description: Extracting DISK1.ARJ
      executable: unarj
      name: wineexec
      working_dir: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD
  - execute:
      command: find -maxdepth 1 -iname DISK1.ARJ -delete
      description: Deleting DISK1.ARJ
      working_dir: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD
  - write_file:
      content: "E\r\nP\r\nC:\\POOLRAD\\\r\nC:\\POOLRAD\\\r\nF\r\n"
      description: Creating POOL.CFG
      file: $GAMEDIR/drive_c/GAMES/DOS/POOLRAD/POOL.CFG
  - write_file:
      content: "#!/bin/sh\n\nTARGET=./drive_c/GAMES/DOS/POOLRAD/GAME.OVR\n\nBYTES=`xxd\
        \ -p -s 0xcd8 -l 2 $TARGET`\nif [ $BYTES = '7502' ]; then\n  echo 'Patching\
        \ out copy protection'\n  echo '9090' | xxd -p -s 0xcd8 -r - $TARGET\nelse\n\
        \  echo 'Unable to patch out copy protection'\nfi\n"
      description: Creating remove-copy-protection.sh
      file: $GAMEDIR/remove-copy-protection.sh
  - chmodx: $GAMEDIR/remove-copy-protection.sh
  - extract:
      description: Extracting Gold Box Companion
      dst: $GAMEDIR/drive_c/GAMES/GBC
      file: gbc
  - task:
      args: /S /D=C:\\GAMES\\DOSBOX
      description: Installing DOSBox
      executable: dosbox
      name: wineexec
  - write_file:
      content: '[sdl]

        fullscreen=false

        fulldouble=false

        fullresolution=original

        windowresolution=original

        output=surface

        autolock=true

        sensitivity=100

        waitonerror=true

        priority=higher,normal

        mapperfile=mapper-0.74-3.map

        usescancodes=true


        [dosbox]

        language=

        machine=svga_s3

        captures=capture

        memsize=16


        [render]

        frameskip=0

        aspect=false

        scaler=normal2x


        [cpu]

        core=auto

        cputype=auto

        cycles=7000

        cycleup=10

        cycledown=20


        [mixer]

        nosound=false

        rate=44100

        blocksize=1024

        prebuffer=25


        [midi]

        mpu401=intelligent

        mididevice=default

        midiconfig=


        [sblaster]

        sbtype=sb16

        sbbase=220

        irq=7

        dma=1

        hdma=5

        sbmixer=true

        oplmode=auto

        oplemu=default

        oplrate=44100


        [gus]

        gus=false

        gusrate=44100

        gusbase=240

        gusirq=5

        gusdma=3

        ultradir=C:\ULTRASND


        [speaker]

        pcspeaker=true

        pcrate=44100

        tandy=auto

        tandyrate=44100

        disney=true


        [joystick]

        joysticktype=auto

        timed=true

        autofire=false

        swap34=false

        buttonwrap=false


        [serial]

        serial1=dummy

        serial2=dummy

        serial3=disabled

        serial4=disabled


        [dos]

        xms=true

        ems=true

        umb=true

        keyboardlayout=auto


        [ipx]

        ipx=false


        [autoexec]

        MOUNT C C:\GAMES\DOS

        C:

        CD POOLRAD

        START.EXE

        '
      description: Creating DOSBox config
      file: $GAMEDIR/drive_c/GAMES/DOSBOX/DOSBOX.CONF
  - write_file:
      content: 'start C:\GAMES\DOSBOX\DOSBOX.EXE -conf C:\GAMES\DOSBOX\DOSBOX.CONF

        start C:\GAMES\GBC\GBC.EXE

        '
      description: Creating startup script
      file: $GAMEDIR/drive_c/GAMES/START.BAT
slug: pool-of-radiance-dos
steamid: null
version: DOS
year: 1988
{
  "game_slug": "pool-of-radiance",
  "version": "DOS",
  "description": "Play Pool of Radiance with Gold Box Companion on Linux!",
  "notes": "This installer requires the original Pool of Radiance install disk archive, DISK1.ARJ.\r\n\r\nDownload Gold Box Companion from https://gbc.zorbus.net/\r\n\r\nGold Box Companion requires Pool of Radiance version 1.3. You will need to set the install directory when first running Gold Box Companion, it is C:\\GAMES\\DOS\\POOLRAD. See the Gold Box Companion documentation for more details.\r\n\r\nThis installer creates a bash script for disabling the copy protection from Pool of Radiance version 1.3, it requires xxd to function. Run remove-copy-protection.sh in the install directory. With the copy protection patched you can press enter at the copy protection screen to pass the check.\r\n\r\nThe DOSBox config is located at [install directory]/drive_c/GAMES/DOSBOX/DOSBOX.CONF.",
  "name": "Pool of Radiance",
  "year": 1988,
  "steamid": null,
  "gogslug": "dd_classics",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "pool-of-radiance-dos",
  "installer_slug": "pool-of-radiance-dos",
  "script": {
    "files": [
      {
        "pool": "N/A: Select Pool of Radiance DISK1.ARJ file"
      },
      {
        "gbc": "N/A: Select zip file containing Gold Box Companion"
      },
      {
        "dosbox": {
          "filename": "DOSBox0.74-3-win32-installer.exe",
          "url": "https://sourceforge.net/projects/dosbox/files/dosbox/0.74-3/DOSBox0.74-3-win32-installer.exe/download"
        }
      },
      {
        "unarj": "https://fossies.org/linux/unarj/unarj32.exe"
      }
    ],
    "game": {
      "exe": "drive_c/GAMES/START.BAT",
      "launch_configs": [
        {
          "exe": "drive_c/GAMES/GBC/SGE.exe",
          "name": "Save Game Editor"
        }
      ],
      "prefix": "$GAMEDIR",
      "working_dir": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "copy": {
          "description": "Moving DISK1.ARJ to C:\\GAMES\\DOS\\POOLRAD",
          "dst": "$GAMEDIR/drive_c/GAMES/DOS/POOLRAD",
          "src": "pool"
        }
      },
      {
        "task": {
          "args": "e DISK1.ARJ",
          "description": "Extracting DISK1.ARJ",
          "executable": "unarj",
          "name": "wineexec",
          "working_dir": "$GAMEDIR/drive_c/GAMES/DOS/POOLRAD"
        }
      },
      {
        "execute": {
          "command": "find -maxdepth 1 -iname DISK1.ARJ -delete",
          "description": "Deleting DISK1.ARJ",
          "working_dir": "$GAMEDIR/drive_c/GAMES/DOS/POOLRAD"
        }
      },
      {
        "write_file": {
          "content": "E\r\nP\r\nC:\\POOLRAD\\\r\nC:\\POOLRAD\\\r\nF\r\n",
          "description": "Creating POOL.CFG",
          "file": "$GAMEDIR/drive_c/GAMES/DOS/POOLRAD/POOL.CFG"
        }
      },
      {
        "write_file": {
          "content": "#!/bin/sh\n\nTARGET=./drive_c/GAMES/DOS/POOLRAD/GAME.OVR\n\nBYTES=`xxd -p -s 0xcd8 -l 2 $TARGET`\nif [ $BYTES = '7502' ]; then\n  echo 'Patching out copy protection'\n  echo '9090' | xxd -p -s 0xcd8 -r - $TARGET\nelse\n  echo 'Unable to patch out copy protection'\nfi\n",
          "description": "Creating remove-copy-protection.sh",
          "file": "$GAMEDIR/remove-copy-protection.sh"
        }
      },
      {
        "chmodx": "$GAMEDIR/remove-copy-protection.sh"
      },
      {
        "extract": {
          "description": "Extracting Gold Box Companion",
          "dst": "$GAMEDIR/drive_c/GAMES/GBC",
          "file": "gbc"
        }
      },
      {
        "task": {
          "args": "/S /D=C:\\\\GAMES\\\\DOSBOX",
          "description": "Installing DOSBox",
          "executable": "dosbox",
          "name": "wineexec"
        }
      },
      {
        "write_file": {
          "content": "[sdl]\nfullscreen=false\nfulldouble=false\nfullresolution=original\nwindowresolution=original\noutput=surface\nautolock=true\nsensitivity=100\nwaitonerror=true\npriority=higher,normal\nmapperfile=mapper-0.74-3.map\nusescancodes=true\n\n[dosbox]\nlanguage=\nmachine=svga_s3\ncaptures=capture\nmemsize=16\n\n[render]\nframeskip=0\naspect=false\nscaler=normal2x\n\n[cpu]\ncore=auto\ncputype=auto\ncycles=7000\ncycleup=10\ncycledown=20\n\n[mixer]\nnosound=false\nrate=44100\nblocksize=1024\nprebuffer=25\n\n[midi]\nmpu401=intelligent\nmididevice=default\nmidiconfig=\n\n[sblaster]\nsbtype=sb16\nsbbase=220\nirq=7\ndma=1\nhdma=5\nsbmixer=true\noplmode=auto\noplemu=default\noplrate=44100\n\n[gus]\ngus=false\ngusrate=44100\ngusbase=240\ngusirq=5\ngusdma=3\nultradir=C:\\ULTRASND\n\n[speaker]\npcspeaker=true\npcrate=44100\ntandy=auto\ntandyrate=44100\ndisney=true\n\n[joystick]\njoysticktype=auto\ntimed=true\nautofire=false\nswap34=false\nbuttonwrap=false\n\n[serial]\nserial1=dummy\nserial2=dummy\nserial3=disabled\nserial4=disabled\n\n[dos]\nxms=true\nems=true\numb=true\nkeyboardlayout=auto\n\n[ipx]\nipx=false\n\n[autoexec]\nMOUNT C C:\\GAMES\\DOS\nC:\nCD POOLRAD\nSTART.EXE\n",
          "description": "Creating DOSBox config",
          "file": "$GAMEDIR/drive_c/GAMES/DOSBOX/DOSBOX.CONF"
        }
      },
      {
        "write_file": {
          "content": "start C:\\GAMES\\DOSBOX\\DOSBOX.EXE -conf C:\\GAMES\\DOSBOX\\DOSBOX.CONF\nstart C:\\GAMES\\GBC\\GBC.EXE\n",
          "description": "Creating startup script",
          "file": "$GAMEDIR/drive_c/GAMES/START.BAT"
        }
      }
    ]
  }
}
Back to game