Installer might-and-magic-4-5-world-of-gog

files:
- file1: N/A:Please select the GOG installer
- file2: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
game:
  config_file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
  main_file: $GAMEDIR/DOSBOX/dosboxMM4-5_single.conf
installer:
- extract:
    dst: $CACHE
    file: $file2
- execute:
    args: -d "$CACHE" "$file1"
    file: $CACHE/innoextract
- merge:
    dst: $GAMEDIR
    src: $CACHE
- merge:
    dst: $GAMEDIR/DOSBOX
    src: $GAMEDIR/__support/app/
- merge:
    dst: $GAMEDIR
    src: $GAMEDIR/__support/save/
- merge:
    dst: $GAMEDIR/cloud_saves
    src: $GAMEDIR/__support/save/
- write_config:
    file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
    key: aspect
    section: render
    value: true
- write_config:
    file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
    key: output
    section: sdl
    value: overlay
- write_config:
    file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
    key: fullscreen
    section: sdl
    value: false
- write_config:
    file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
    key: fullresolution
    section: sdl
    value: 1920x1080
- write_config:
    file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
    key: midiconfig
    section: midi
    value: '128:0'
- write_file:
    content: "[ipx]\nipx=false\n\n[autoexec]\n @ECHO OFF\n mount C \"..\"\n c:\n mount\
      \ C \".\\cloud_saves\" -t overlay\n imgmount d \".\\game1.ins\" \".\\game2.ins\"\
      \ -t iso\n goto launcher\n\n :launcher\n cls\n ECHO  -----------------------------------------------------------\n\
      \ ECHO  Might & Magic World of Xeen Lutris DOSBox Launcher\n ECHO  -----------------------------------------------------------\n\
      \ ECHO   1) World of Xeen (CD version)\n ECHO   2) World of Xeen  (Floppy version\
      \ \n ECHO  -----------------------------------------------------------\n ECHO\
      \   3) Game DOS Settings (CD version)\n ECHO   4) Game DOS Settings (Floppy\
      \ version)\n ECHO  -----------------------------------------------------------\n\
      \ ECHO   5) exit program\n ECHO  -----------------------------------------------------------\n\
      \n choice /c12345 /s Which game do you want to run? 1-5: /n\n if errorlevel\
      \ 5 goto exit\n if errorlevel 4 goto setup\n if errorlevel 3 goto setupcd\n\
      \ if errorlevel 2 goto game\n if errorlevel 1 goto gamecd\n \n :game\n cls\n\
      \ xeen.exe\n goto exit\n\n :gamecd\n cls\n cd world\n xeen.exe\n goto exit\n\
      \n :setup\n cls\n install.exe\n goto launcher\n\n :setupcd\n cd world\n install.exe\n\
      \ cd ..\n goto launcher\n\n :exit\n exit"
    file: $GAMEDIR/DOSBOX/dosboxMM4-5_single.conf
description: ''
game_slug: might-and-magic-world-of-xeen
gogslug: might_and_magic_6_limited_edition
humblestoreid: ''
installer_slug: might-and-magic-4-5-world-of-gog
name: Might and Magic 4-5 - World of Xeen
notes: "This game uses keywords from the game manual for copy protection.  Do not\
  \ use the provided game manual.  The keywords are found in the file 'keys_3_5.pdf'\
  \ in the game's folder.\r\n\r\nAudio (MIDI and sound FX) should work without additional\
  \ setup."
runner: dosbox
script:
  files:
  - file1: N/A:Please select the GOG installer
  - file2: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
  game:
    config_file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
    main_file: $GAMEDIR/DOSBOX/dosboxMM4-5_single.conf
  installer:
  - extract:
      dst: $CACHE
      file: $file2
  - execute:
      args: -d "$CACHE" "$file1"
      file: $CACHE/innoextract
  - merge:
      dst: $GAMEDIR
      src: $CACHE
  - merge:
      dst: $GAMEDIR/DOSBOX
      src: $GAMEDIR/__support/app/
  - merge:
      dst: $GAMEDIR
      src: $GAMEDIR/__support/save/
  - merge:
      dst: $GAMEDIR/cloud_saves
      src: $GAMEDIR/__support/save/
  - write_config:
      file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
      key: aspect
      section: render
      value: true
  - write_config:
      file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
      key: output
      section: sdl
      value: overlay
  - write_config:
      file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
      key: fullscreen
      section: sdl
      value: false
  - write_config:
      file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
      key: fullresolution
      section: sdl
      value: 1920x1080
  - write_config:
      file: $GAMEDIR/DOSBOX/dosboxMM4-5.conf
      key: midiconfig
      section: midi
      value: '128:0'
  - write_file:
      content: "[ipx]\nipx=false\n\n[autoexec]\n @ECHO OFF\n mount C \"..\"\n c:\n\
        \ mount C \".\\cloud_saves\" -t overlay\n imgmount d \".\\game1.ins\" \".\\\
        game2.ins\" -t iso\n goto launcher\n\n :launcher\n cls\n ECHO  -----------------------------------------------------------\n\
        \ ECHO  Might & Magic World of Xeen Lutris DOSBox Launcher\n ECHO  -----------------------------------------------------------\n\
        \ ECHO   1) World of Xeen (CD version)\n ECHO   2) World of Xeen  (Floppy\
        \ version \n ECHO  -----------------------------------------------------------\n\
        \ ECHO   3) Game DOS Settings (CD version)\n ECHO   4) Game DOS Settings (Floppy\
        \ version)\n ECHO  -----------------------------------------------------------\n\
        \ ECHO   5) exit program\n ECHO  -----------------------------------------------------------\n\
        \n choice /c12345 /s Which game do you want to run? 1-5: /n\n if errorlevel\
        \ 5 goto exit\n if errorlevel 4 goto setup\n if errorlevel 3 goto setupcd\n\
        \ if errorlevel 2 goto game\n if errorlevel 1 goto gamecd\n \n :game\n cls\n\
        \ xeen.exe\n goto exit\n\n :gamecd\n cls\n cd world\n xeen.exe\n goto exit\n\
        \n :setup\n cls\n install.exe\n goto launcher\n\n :setupcd\n cd world\n install.exe\n\
        \ cd ..\n goto launcher\n\n :exit\n exit"
      file: $GAMEDIR/DOSBOX/dosboxMM4-5_single.conf
slug: might-and-magic-4-5-world-of-gog
steamid: null
version: GOG
year: 1994
{
  "game_slug": "might-and-magic-world-of-xeen",
  "version": "GOG",
  "description": "",
  "notes": "This game uses keywords from the game manual for copy protection.  Do not use the provided game manual.  The keywords are found in the file 'keys_3_5.pdf' in the game's folder.\r\n\r\nAudio (MIDI and sound FX) should work without additional setup.",
  "name": "Might and Magic 4-5 - World of Xeen",
  "year": 1994,
  "steamid": null,
  "gogslug": "might_and_magic_6_limited_edition",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "might-and-magic-4-5-world-of-gog",
  "installer_slug": "might-and-magic-4-5-world-of-gog",
  "script": {
    "files": [
      {
        "file1": "N/A:Please select the GOG installer"
      },
      {
        "file2": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
      }
    ],
    "game": {
      "config_file": "$GAMEDIR/DOSBOX/dosboxMM4-5.conf",
      "main_file": "$GAMEDIR/DOSBOX/dosboxMM4-5_single.conf"
    },
    "installer": [
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$file2"
        }
      },
      {
        "execute": {
          "args": "-d \"$CACHE\" \"$file1\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$CACHE"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/DOSBOX",
          "src": "$GAMEDIR/__support/app/"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR",
          "src": "$GAMEDIR/__support/save/"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/cloud_saves",
          "src": "$GAMEDIR/__support/save/"
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/DOSBOX/dosboxMM4-5.conf",
          "key": "aspect",
          "section": "render",
          "value": true
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/DOSBOX/dosboxMM4-5.conf",
          "key": "output",
          "section": "sdl",
          "value": "overlay"
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/DOSBOX/dosboxMM4-5.conf",
          "key": "fullscreen",
          "section": "sdl",
          "value": false
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/DOSBOX/dosboxMM4-5.conf",
          "key": "fullresolution",
          "section": "sdl",
          "value": "1920x1080"
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/DOSBOX/dosboxMM4-5.conf",
          "key": "midiconfig",
          "section": "midi",
          "value": "128:0"
        }
      },
      {
        "write_file": {
          "content": "[ipx]\nipx=false\n\n[autoexec]\n @ECHO OFF\n mount C \"..\"\n c:\n mount C \".\\cloud_saves\" -t overlay\n imgmount d \".\\game1.ins\" \".\\game2.ins\" -t iso\n goto launcher\n\n :launcher\n cls\n ECHO  -----------------------------------------------------------\n ECHO  Might & Magic World of Xeen Lutris DOSBox Launcher\n ECHO  -----------------------------------------------------------\n ECHO   1) World of Xeen (CD version)\n ECHO   2) World of Xeen  (Floppy version \n ECHO  -----------------------------------------------------------\n ECHO   3) Game DOS Settings (CD version)\n ECHO   4) Game DOS Settings (Floppy version)\n ECHO  -----------------------------------------------------------\n ECHO   5) exit program\n ECHO  -----------------------------------------------------------\n\n choice /c12345 /s Which game do you want to run? 1-5: /n\n if errorlevel 5 goto exit\n if errorlevel 4 goto setup\n if errorlevel 3 goto setupcd\n if errorlevel 2 goto game\n if errorlevel 1 goto gamecd\n \n :game\n cls\n xeen.exe\n goto exit\n\n :gamecd\n cls\n cd world\n xeen.exe\n goto exit\n\n :setup\n cls\n install.exe\n goto launcher\n\n :setupcd\n cd world\n install.exe\n cd ..\n goto launcher\n\n :exit\n exit",
          "file": "$GAMEDIR/DOSBOX/dosboxMM4-5_single.conf"
        }
      }
    ]
  }
}
Back to game