Installer civilization-iv-gog

files:
- gogsetup: N/A:Please select the game Windows install file, available for  download
    from your GOG account page
- game_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Civilization%20IV/CivilizationIV.ini
game:
  exe: drive_c/GOG Games/Civilization IV/Civ4/Civilization4.exe
  launch_configs:
  - exe: $GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4/Beyond the Sword/Civ4BeyondSword.exe
    name: Civilization IV - Beyond Sword
  - exe: $GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4/Warlords/Civ4Warlords.exe
    name: Civilization IV - Warlords
  - exe: $GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4Colonization/Colonization.exe
    name: Civilization IV - Colonization
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: gogsetup
    format: gog
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Civilization IV
    src: $CACHE/game
- task:
    app: vcrun2003 msxml3 win10
    name: winetricks
    prefix: $GAMEDIR
- input_menu:
    description: 'Please choose game''s language:'
    id: LANG
    options:
    - 0: English
    - 1: French
    - 2: German
    - 3: Italian
    - 4: Spanish
    preselect: 0
- execute:
    command: sed -i -e 's/ScreenWidth = 0/ScreenWidth = '$RESOLUTION_WIDTH'/g' -e
      's/ScreenHeight = 0/ScreenHeight = '$$RESOLUTION_HEIGHT'/g' -e 's/Language =
      0/Language = '$INPUT_LANG'/g' $game_cfg;
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Beyond the Sword
    src: game_cfg
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Civ4
    src: game_cfg
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Civ4Colonization
    src: game_cfg
- merge:
    dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Warlords
    src: game_cfg
description: Play "Civilization IV" on Linux!
game_slug: sid-meiers-civilization-iv
gogslug: sid_meiers_civilization_iv_the_complete_edition
humblestoreid: ''
installer_slug: civilization-iv-gog
name: Civilization IV
notes: Civilization IV, Civilization IV - Beyond Sword, Civilization IV - Warlords,
  Civilization IV - Colonization
runner: wine
script:
  files:
  - gogsetup: N/A:Please select the game Windows install file, available for  download
      from your GOG account page
  - game_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Civilization%20IV/CivilizationIV.ini
  game:
    exe: drive_c/GOG Games/Civilization IV/Civ4/Civilization4.exe
    launch_configs:
    - exe: $GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4/Beyond the Sword/Civ4BeyondSword.exe
      name: Civilization IV - Beyond Sword
    - exe: $GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4/Warlords/Civ4Warlords.exe
      name: Civilization IV - Warlords
    - exe: $GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4Colonization/Colonization.exe
      name: Civilization IV - Colonization
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE
      file: gogsetup
      format: gog
  - merge:
      dst: $GAMEDIR/drive_c/GOG Games/Civilization IV
      src: $CACHE/game
  - task:
      app: vcrun2003 msxml3 win10
      name: winetricks
      prefix: $GAMEDIR
  - input_menu:
      description: 'Please choose game''s language:'
      id: LANG
      options:
      - 0: English
      - 1: French
      - 2: German
      - 3: Italian
      - 4: Spanish
      preselect: 0
  - execute:
      command: sed -i -e 's/ScreenWidth = 0/ScreenWidth = '$RESOLUTION_WIDTH'/g' -e
        's/ScreenHeight = 0/ScreenHeight = '$$RESOLUTION_HEIGHT'/g' -e 's/Language
        = 0/Language = '$INPUT_LANG'/g' $game_cfg;
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Beyond the Sword
      src: game_cfg
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Civ4
      src: game_cfg
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Civ4Colonization
      src: game_cfg
  - merge:
      dst: $GAMEDIR/drive_c/users/$USER/Documents/My Games/Warlords
      src: game_cfg
slug: civilization-iv-gog
steamid: 3900
version: GOG
year: 2005
{
  "game_slug": "sid-meiers-civilization-iv",
  "version": "GOG",
  "description": "Play \"Civilization IV\" on Linux!",
  "notes": "Civilization IV, Civilization IV - Beyond Sword, Civilization IV - Warlords, Civilization IV - Colonization",
  "name": "Civilization IV",
  "year": 2005,
  "steamid": 3900,
  "gogslug": "sid_meiers_civilization_iv_the_complete_edition",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "civilization-iv-gog",
  "installer_slug": "civilization-iv-gog",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the game Windows install file, available for  download from your GOG account page"
      },
      {
        "game_cfg": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Civilization%20IV/CivilizationIV.ini"
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Civilization IV/Civ4/Civilization4.exe",
      "launch_configs": [
        {
          "exe": "$GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4/Beyond the Sword/Civ4BeyondSword.exe",
          "name": "Civilization IV - Beyond Sword"
        },
        {
          "exe": "$GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4/Warlords/Civ4Warlords.exe",
          "name": "Civilization IV - Warlords"
        },
        {
          "exe": "$GAMEDIR/drive_c/GOG Games/Civilization IV/Civ4Colonization/Colonization.exe",
          "name": "Civilization IV - Colonization"
        }
      ],
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Civilization IV",
          "src": "$CACHE/game"
        }
      },
      {
        "task": {
          "app": "vcrun2003 msxml3 win10",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "input_menu": {
          "description": "Please choose game's language:",
          "id": "LANG",
          "options": [
            {
              "0": "English"
            },
            {
              "1": "French"
            },
            {
              "2": "German"
            },
            {
              "3": "Italian"
            },
            {
              "4": "Spanish"
            }
          ],
          "preselect": 0
        }
      },
      {
        "execute": {
          "command": "sed -i -e 's/ScreenWidth = 0/ScreenWidth = '$RESOLUTION_WIDTH'/g' -e 's/ScreenHeight = 0/ScreenHeight = '$$RESOLUTION_HEIGHT'/g' -e 's/Language = 0/Language = '$INPUT_LANG'/g' $game_cfg;"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Beyond the Sword",
          "src": "game_cfg"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Civ4",
          "src": "game_cfg"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Civ4Colonization",
          "src": "game_cfg"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/users/$USER/Documents/My Games/Warlords",
          "src": "game_cfg"
        }
      }
    ]
  }
}
Back to game