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

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full 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
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) - NOT WORKING\n ECHO   2) World of Xeen\
      \  (Floppy version \n ECHO  -----------------------------------------------------------\n\
      \ ECHO   3) Game DOS Settings (CD version) - NOT WORKING\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
main_file: $GAMEDIR/DOSBOX/dosboxMM4-5_single.conf
{
  "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"
  },
  "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) - NOT WORKING\n ECHO   2) World of Xeen  (Floppy version \n ECHO  -----------------------------------------------------------\n ECHO   3) Game DOS Settings (CD version) - NOT WORKING\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"
      }
    }
  ],
  "main_file": "$GAMEDIR/DOSBOX/dosboxMM4-5_single.conf"
}
Back to game