Installer caesar-ii-dos-no-cd-drive

files:
- c2package:
    filename: c2.zip
    url: http://www.starehry.eu/download/strategy/Caesar.2.CD-www.oldgames.sk-Compilation.exe
- p7package: https://lutris.net/files/tools/p7zip-16.02-i686.tar.gz
game:
  config_file: $GAMEDIR/play.conf
  main_file: $GAMEDIR/C/C2.BAT
installer:
- extract:
    dst: $GAMEDIR/E
    file: c2package
- extract:
    dst: $CACHE/p7z
    file: $p7package
- execute:
    command: mkdir $GAMEDIR/C; cp -r $GAMEDIR/E/C/SIERRA/CAESAR2/* $GAMEDIR/C
    description: Extracting game data...
- execute:
    command: mkdir $GAMEDIR/D; cd $GAMEDIR/D; $CACHE/p7z/7z x $GAMEDIR/E/CD/CAESAR2.ISO
    description: Extracting more game data...
- write_config:
    file: $GAMEDIR/play.conf
    key: aspect
    section: render
    value: true
- write_config:
    file: $GAMEDIR/play.conf
    key: fullscreen
    section: sdl
    value: true
- write_config:
    file: $GAMEDIR/play.conf
    key: sbtype
    section: sblaster
    value: sb16
- write_config:
    file: $GAMEDIR/play.conf
    key: cycles
    section: cpu
    value: max
- write_file:
    content: '

      [autoexec]

      # Lines in this section will be run at startup.

      @echo off

      mount C $GAMEDIR/C

      mount D $GAMEDIR/D

      C:

      '
    file: $GAMEDIR/play.conf
    mode: a
- write_file:
    content: '

      ;

      ;Miles Design Audio Interface Library V3.02 of 18-Jan-95

      ;

      DEVICE      Creative Labs Sound Blaster(TM) 16

      DRIVER      SBPRO2.MDI

      IO_ADDR     220h

      IRQ         -1

      DMA_8_BIT   -1

      DMA_16_BIT  -1

      '
    file: $GAMEDIR/C/MDI.INI
- write_file:
    content: '

      ;

      ;Miles Design Audio Interface Library V3.02 of 18-Jan-95

      ;

      DEVICE      Creative Labs Sound Blaster 16 or AWE32

      DRIVER      SB16.DIG

      IO_ADDR     220h

      IRQ         -1

      DMA_8_BIT   -1

      DMA_16_BIT  -1

      '
    file: $GAMEDIR/C/DIG.INI
- write_file:
    content: '

      resaud=D:\

      resmap=D:\

      ressfx=D:\

      rescdis=D:\

      sync=D:\

      patchDir=C:\SIERRA\Caesar2;D:\;D:\patches

      '
    file: $GAMEDIR/C/RESOURCE.CFG
description: This installer assumes that you own the game CD but do not have a functioning
  CD drive to access game files. It downloads these files from the internet for you.
game_slug: caesar-ii
gogslug: caesar_ii
humblestoreid: ''
installer_slug: caesar-ii-dos-no-cd-drive
name: Caesar II
notes: ''
runner: dosbox
script:
  files:
  - c2package:
      filename: c2.zip
      url: http://www.starehry.eu/download/strategy/Caesar.2.CD-www.oldgames.sk-Compilation.exe
  - p7package: https://lutris.net/files/tools/p7zip-16.02-i686.tar.gz
  game:
    config_file: $GAMEDIR/play.conf
    main_file: $GAMEDIR/C/C2.BAT
  installer:
  - extract:
      dst: $GAMEDIR/E
      file: c2package
  - extract:
      dst: $CACHE/p7z
      file: $p7package
  - execute:
      command: mkdir $GAMEDIR/C; cp -r $GAMEDIR/E/C/SIERRA/CAESAR2/* $GAMEDIR/C
      description: Extracting game data...
  - execute:
      command: mkdir $GAMEDIR/D; cd $GAMEDIR/D; $CACHE/p7z/7z x $GAMEDIR/E/CD/CAESAR2.ISO
      description: Extracting more game data...
  - write_config:
      file: $GAMEDIR/play.conf
      key: aspect
      section: render
      value: true
  - write_config:
      file: $GAMEDIR/play.conf
      key: fullscreen
      section: sdl
      value: true
  - write_config:
      file: $GAMEDIR/play.conf
      key: sbtype
      section: sblaster
      value: sb16
  - write_config:
      file: $GAMEDIR/play.conf
      key: cycles
      section: cpu
      value: max
  - write_file:
      content: '

        [autoexec]

        # Lines in this section will be run at startup.

        @echo off

        mount C $GAMEDIR/C

        mount D $GAMEDIR/D

        C:

        '
      file: $GAMEDIR/play.conf
      mode: a
  - write_file:
      content: '

        ;

        ;Miles Design Audio Interface Library V3.02 of 18-Jan-95

        ;

        DEVICE      Creative Labs Sound Blaster(TM) 16

        DRIVER      SBPRO2.MDI

        IO_ADDR     220h

        IRQ         -1

        DMA_8_BIT   -1

        DMA_16_BIT  -1

        '
      file: $GAMEDIR/C/MDI.INI
  - write_file:
      content: '

        ;

        ;Miles Design Audio Interface Library V3.02 of 18-Jan-95

        ;

        DEVICE      Creative Labs Sound Blaster 16 or AWE32

        DRIVER      SB16.DIG

        IO_ADDR     220h

        IRQ         -1

        DMA_8_BIT   -1

        DMA_16_BIT  -1

        '
      file: $GAMEDIR/C/DIG.INI
  - write_file:
      content: '

        resaud=D:\

        resmap=D:\

        ressfx=D:\

        rescdis=D:\

        sync=D:\

        patchDir=C:\SIERRA\Caesar2;D:\;D:\patches

        '
      file: $GAMEDIR/C/RESOURCE.CFG
slug: caesar-ii-dos-no-cd-drive
steamid: null
version: DOS (no CD drive)
year: 1995
{
  "game_slug": "caesar-ii",
  "version": "DOS (no CD drive)",
  "description": "This installer assumes that you own the game CD but do not have a functioning CD drive to access game files. It downloads these files from the internet for you.",
  "notes": "",
  "name": "Caesar II",
  "year": 1995,
  "steamid": null,
  "gogslug": "caesar_ii",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "caesar-ii-dos-no-cd-drive",
  "installer_slug": "caesar-ii-dos-no-cd-drive",
  "script": {
    "files": [
      {
        "c2package": {
          "filename": "c2.zip",
          "url": "http://www.starehry.eu/download/strategy/Caesar.2.CD-www.oldgames.sk-Compilation.exe"
        }
      },
      {
        "p7package": "https://lutris.net/files/tools/p7zip-16.02-i686.tar.gz"
      }
    ],
    "game": {
      "config_file": "$GAMEDIR/play.conf",
      "main_file": "$GAMEDIR/C/C2.BAT"
    },
    "installer": [
      {
        "extract": {
          "dst": "$GAMEDIR/E",
          "file": "c2package"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/p7z",
          "file": "$p7package"
        }
      },
      {
        "execute": {
          "command": "mkdir $GAMEDIR/C; cp -r $GAMEDIR/E/C/SIERRA/CAESAR2/* $GAMEDIR/C",
          "description": "Extracting game data..."
        }
      },
      {
        "execute": {
          "command": "mkdir $GAMEDIR/D; cd $GAMEDIR/D; $CACHE/p7z/7z x $GAMEDIR/E/CD/CAESAR2.ISO",
          "description": "Extracting more game data..."
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/play.conf",
          "key": "aspect",
          "section": "render",
          "value": true
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/play.conf",
          "key": "fullscreen",
          "section": "sdl",
          "value": true
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/play.conf",
          "key": "sbtype",
          "section": "sblaster",
          "value": "sb16"
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/play.conf",
          "key": "cycles",
          "section": "cpu",
          "value": "max"
        }
      },
      {
        "write_file": {
          "content": "\n[autoexec]\n# Lines in this section will be run at startup.\n@echo off\nmount C $GAMEDIR/C\nmount D $GAMEDIR/D\nC:\n",
          "file": "$GAMEDIR/play.conf",
          "mode": "a"
        }
      },
      {
        "write_file": {
          "content": "\n;\n;Miles Design Audio Interface Library V3.02 of 18-Jan-95\n;\nDEVICE      Creative Labs Sound Blaster(TM) 16\nDRIVER      SBPRO2.MDI\nIO_ADDR     220h\nIRQ         -1\nDMA_8_BIT   -1\nDMA_16_BIT  -1\n",
          "file": "$GAMEDIR/C/MDI.INI"
        }
      },
      {
        "write_file": {
          "content": "\n;\n;Miles Design Audio Interface Library V3.02 of 18-Jan-95\n;\nDEVICE      Creative Labs Sound Blaster 16 or AWE32\nDRIVER      SB16.DIG\nIO_ADDR     220h\nIRQ         -1\nDMA_8_BIT   -1\nDMA_16_BIT  -1\n",
          "file": "$GAMEDIR/C/DIG.INI"
        }
      },
      {
        "write_file": {
          "content": "\nresaud=D:\\\nresmap=D:\\\nressfx=D:\\\nrescdis=D:\\\nsync=D:\\\npatchDir=C:\\SIERRA\\Caesar2;D:\\;D:\\patches\n",
          "file": "$GAMEDIR/C/RESOURCE.CFG"
        }
      }
    ]
  }
}
Back to game