Installer fallout-2-gog-fallout1in2

files:
- mod: https://github.com/rotators/Fo1in2/releases/latest/download/Fallout1in2.zip
- gogsetup: N/A:Select the gog setup exe
game:
  exe: drive_c/GOG Games/Fallout 2/Fallout1in2/Fallout2.exe
  gogid: 1440151285
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    description: Installing Fallout 2
    executable: gogsetup
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2
    file: mod
- insert-disc:
    description: Please select "Fallout 1" "master.dat" file, do not use "Automatic"
    requires: master.dat
- execute:
    command: unset LD_LIBRARY_PATH; cd "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2";
      cp "$DISC/MASTER.DAT" .; chmod +x undat.sh; ./undat.sh MASTER.DAT;
    description: Extracting Fallout 1 master.dat file, this could take a moment...
- input_menu:
    description: 'Choose the game''s language:'
    id: LANG
    options:
    - english: English
    - french: French
    - german: German
    preselect: english
- write_config:
    data:
      preferences:
        subtitles: 1
      system:
        language: $INPUT_LANG
    file: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/Fallout2.cfg
    merge: true
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/backup
    src: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/ddraw.ini
- write_config:
    data:
      Graphics:
        GraphicsHeight: $RESOLUTION_HEIGHT
        GraphicsWidth: $RESOLUTION_WIDTH
        Mode: 0
      Main:
        HiResMode: 0
    file: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/ddraw.ini
    merge: true
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/backup
    src: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/f2_res.ini
- write_config:
    data:
      INPUT:
        ALT_MOUSE_INPUT: 1
      MAIN:
        SCALE_2X: 1
        SCR_HEIGHT: $RESOLUTION_HEIGHT
        SCR_WIDTH: $RESOLUTION_WIDTH
        WINDOWED: 1
        WINDOWED_FULLSCREEN: 1
    file: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/f2_res.ini
    merge: true
system:
  env:
    DXVK_FRAME_RATE: 0
    DXVK_HUD: null
  gamescope: true
  gamescope_force_grab_cursor: true
  gamescope_fps_limiter: 0
  gamescope_game_res: 1920x1080
  gamescope_output_res: 1920x1080
wine:
  overrides:
    ddraw.dll: n,b
description: Play "Fallout 1" with "Fallout 2" engine on Linux!
game_slug: fallout-2
gogslug: fallout_2
humblestoreid: ''
installer_slug: fallout-2-gog-fallout1in2
name: Fallout 2
notes: "- Using \"Fallout 1 in 2\" open source project\r\n- You will need to own and\
  \ download \"Fallout 1\" and \"Fallout 2\" games on GOG before to launch this script\
  \ installer\r\n- Multilingual: you could choose during install for your preferred\
  \ language for menus and subtitles between English (default), French and German"
runner: wine
script:
  files:
  - mod: https://github.com/rotators/Fo1in2/releases/latest/download/Fallout1in2.zip
  - gogsetup: N/A:Select the gog setup exe
  game:
    exe: drive_c/GOG Games/Fallout 2/Fallout1in2/Fallout2.exe
    gogid: 1440151285
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      description: Installing Fallout 2
      executable: gogsetup
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2
      file: mod
  - insert-disc:
      description: Please select "Fallout 1" "master.dat" file, do not use "Automatic"
      requires: master.dat
  - execute:
      command: unset LD_LIBRARY_PATH; cd "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2";
        cp "$DISC/MASTER.DAT" .; chmod +x undat.sh; ./undat.sh MASTER.DAT;
      description: Extracting Fallout 1 master.dat file, this could take a moment...
  - input_menu:
      description: 'Choose the game''s language:'
      id: LANG
      options:
      - english: English
      - french: French
      - german: German
      preselect: english
  - write_config:
      data:
        preferences:
          subtitles: 1
        system:
          language: $INPUT_LANG
      file: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/Fallout2.cfg
      merge: true
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/backup
      src: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/ddraw.ini
  - write_config:
      data:
        Graphics:
          GraphicsHeight: $RESOLUTION_HEIGHT
          GraphicsWidth: $RESOLUTION_WIDTH
          Mode: 0
        Main:
          HiResMode: 0
      file: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/ddraw.ini
      merge: true
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/backup
      src: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/f2_res.ini
  - write_config:
      data:
        INPUT:
          ALT_MOUSE_INPUT: 1
        MAIN:
          SCALE_2X: 1
          SCR_HEIGHT: $RESOLUTION_HEIGHT
          SCR_WIDTH: $RESOLUTION_WIDTH
          WINDOWED: 1
          WINDOWED_FULLSCREEN: 1
      file: $GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/f2_res.ini
      merge: true
  system:
    env:
      DXVK_FRAME_RATE: 0
      DXVK_HUD: null
    gamescope: true
    gamescope_force_grab_cursor: true
    gamescope_fps_limiter: 0
    gamescope_game_res: 1920x1080
    gamescope_output_res: 1920x1080
  wine:
    overrides:
      ddraw.dll: n,b
slug: fallout-2-gog-fallout1in2
steamid: 38410
version: GOG + Fallout1in2
year: 1998
{
  "game_slug": "fallout-2",
  "version": "GOG + Fallout1in2",
  "description": "Play \"Fallout 1\" with \"Fallout 2\" engine on Linux!",
  "notes": "- Using \"Fallout 1 in 2\" open source project\r\n- You will need to own and download \"Fallout 1\" and \"Fallout 2\" games on GOG before to launch this script installer\r\n- Multilingual: you could choose during install for your preferred language for menus and subtitles between English (default), French and German",
  "name": "Fallout 2",
  "year": 1998,
  "steamid": 38410,
  "gogslug": "fallout_2",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "fallout-2-gog-fallout1in2",
  "installer_slug": "fallout-2-gog-fallout1in2",
  "script": {
    "files": [
      {
        "mod": "https://github.com/rotators/Fo1in2/releases/latest/download/Fallout1in2.zip"
      },
      {
        "gogsetup": "N/A:Select the gog setup exe"
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Fallout 2/Fallout1in2/Fallout2.exe",
      "gogid": 1440151285,
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Installing Fallout 2",
          "executable": "gogsetup",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2",
          "file": "mod"
        }
      },
      {
        "insert-disc": {
          "description": "Please select \"Fallout 1\" \"master.dat\" file, do not use \"Automatic\"",
          "requires": "master.dat"
        }
      },
      {
        "execute": {
          "command": "unset LD_LIBRARY_PATH; cd \"$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2\"; cp \"$DISC/MASTER.DAT\" .; chmod +x undat.sh; ./undat.sh MASTER.DAT;",
          "description": "Extracting Fallout 1 master.dat file, this could take a moment..."
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language:",
          "id": "LANG",
          "options": [
            {
              "english": "English"
            },
            {
              "french": "French"
            },
            {
              "german": "German"
            }
          ],
          "preselect": "english"
        }
      },
      {
        "write_config": {
          "data": {
            "preferences": {
              "subtitles": 1
            },
            "system": {
              "language": "$INPUT_LANG"
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/Fallout2.cfg",
          "merge": true
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/backup",
          "src": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/ddraw.ini"
        }
      },
      {
        "write_config": {
          "data": {
            "Graphics": {
              "GraphicsHeight": "$RESOLUTION_HEIGHT",
              "GraphicsWidth": "$RESOLUTION_WIDTH",
              "Mode": 0
            },
            "Main": {
              "HiResMode": 0
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/ddraw.ini",
          "merge": true
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/backup",
          "src": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/f2_res.ini"
        }
      },
      {
        "write_config": {
          "data": {
            "INPUT": {
              "ALT_MOUSE_INPUT": 1
            },
            "MAIN": {
              "SCALE_2X": 1,
              "SCR_HEIGHT": "$RESOLUTION_HEIGHT",
              "SCR_WIDTH": "$RESOLUTION_WIDTH",
              "WINDOWED": 1,
              "WINDOWED_FULLSCREEN": 1
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Fallout 2/Fallout1in2/f2_res.ini",
          "merge": true
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": 0,
        "DXVK_HUD": null
      },
      "gamescope": true,
      "gamescope_force_grab_cursor": true,
      "gamescope_fps_limiter": 0,
      "gamescope_game_res": "1920x1080",
      "gamescope_output_res": "1920x1080"
    },
    "wine": {
      "overrides": {
        "ddraw.dll": "n,b"
      }
    }
  }
}
Back to game