Installer master-of-orion-1-windows-gog-v1

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:
- game: N/A:Select GOG installer
- inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
game:
  main_file: $GAMEDIR/orion.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type f \( -iname "*.LBX" -o -iname "FAT.*" -o -iname
      "*.dat" -o -iname "*.exe"  \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -d "$CACHE" "$game"
    file: $CACHE/innoextract
- execute:
    args: $GAMEDIR/orion
    file: mkdir
- copy:
    dst: $GAMEDIR
    src: $CACHE/manual.pdf
- copy:
    dst: $GAMEDIR
    src: $CACHE/ReferenceCard.pdf
- execute:
    args: $CACHE $GAMEDIR/orion
    file: $CACHE/selectcopy.sh
- write_file:
    content: '[sdl]

      sensitivity=30

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      capture_mouse = onstart middlerelease

      [render]

      aspect=true

      scaler=normal2x

      [autoexec]

      mount C "$GAMEDIR" -t dir

      C:

      cd orion

      cls

      ECHO OFF

      goto launcher

      :launcher

      cls

      ECHO  -------------------------------------------

      ECHO             Master of Orion

      ECHO  -------------------------------------------

      ECHO   1) Play Game

      ECHO   2) Setup

      ECHO  -------------------------------------------

      ECHO   3) Exit Program

      ECHO  -------------------------------------------


      choice /c123 /s Which program do you want to run? [1-3]: /n

      if errorlevel 3 goto exit

      if errorlevel 2 goto setup

      if errorlevel 1 goto game


      :game

      orion

      cls

      goto exit


      :setup

      cls

      install

      goto launcher



      :exit

      exit'
    file: $GAMEDIR/orion.conf
{
  "files": [
    {
      "game": "N/A:Select GOG installer"
    },
    {
      "inno": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    }
  ],
  "game": {
    "main_file": "$GAMEDIR/orion.conf"
  },
  "installer": [
    {
      "write_file": {
        "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type f \\( -iname \"*.LBX\" -o -iname \"FAT.*\" -o -iname \"*.dat\" -o -iname \"*.exe\"  \\) -exec cp {} \"$dst\" \\;",
        "file": "$CACHE/selectcopy.sh"
      }
    },
    {
      "chmodx": "$CACHE/selectcopy.sh"
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "$inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$game\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "execute": {
        "args": "$GAMEDIR/orion",
        "file": "mkdir"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/manual.pdf"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/ReferenceCard.pdf"
      }
    },
    {
      "execute": {
        "args": "$CACHE $GAMEDIR/orion",
        "file": "$CACHE/selectcopy.sh"
      }
    },
    {
      "write_file": {
        "content": "[sdl]\nsensitivity=30\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\ncapture_mouse = onstart middlerelease\n[render]\naspect=true\nscaler=normal2x\n[autoexec]\nmount C \"$GAMEDIR\" -t dir\nC:\ncd orion\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -------------------------------------------\nECHO             Master of Orion\nECHO  -------------------------------------------\nECHO   1) Play Game\nECHO   2) Setup\nECHO  -------------------------------------------\nECHO   3) Exit Program\nECHO  -------------------------------------------\n\nchoice /c123 /s Which program do you want to run? [1-3]: /n\nif errorlevel 3 goto exit\nif errorlevel 2 goto setup\nif errorlevel 1 goto game\n\n:game\norion\ncls\ngoto exit\n\n:setup\ncls\ninstall\ngoto launcher\n\n\n:exit\nexit",
        "file": "$GAMEDIR/orion.conf"
      }
    }
  ]
}
Back to game