Installer the-settlers-iv-gold-edition-gog-version-fixes-19

files:
- game: N/A:Select the installer downloaded from GOG.
- fix: https://github.com/Armageddon91/Lutris-Script/raw/master/The%20Settlers%20IV/The%20Settler%204%20Fix.zip
game:
  exe: drive_c/GOG Games/Settlers 4 Gold/S4.exe
  prefix: $GAMEDIR
installer:
- task:
    description: Creating WINE prefix
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: $fix
- task:
    args: /silent /nogui
    description: Installing game
    executable: $game
    name: wineexec
    prefix: $GAMEDIR
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Config/SoundTracks.cfg
    src: $CACHE/Music Fix/SoundTracks.cfg
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Snd/Trojans_settle_03.mp3
    src: $CACHE/Music Fix/Trojans_settle_03.mp3
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Exe/GfxEngine.dll
    src: $CACHE/Widescreen Fix/1920x1200/GfxEngine.dll
- execute:
    args: -i "s/WindowWidth.*/WindowWidth = 1920/" $CACHE/GameSettings.cfg
    description: Fix Resolution - Width
    file: sed
- execute:
    args: -i "s/WindowHeight.*/WindowHeight = 1200/" $CACHE/GameSettings.cfg
    description: Fix Resolution - Height
    file: sed
- execute:
    args: -i "s/Screenmode.*/Screenmode = 4/" $CACHE/GameSettings.cfg
    description: Fix Resolution - ScreenMode
    file: sed
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Config/GameSettings.cfg
    src: $CACHE/GameSettings.cfg
description: This script installs The Settlers 4 - Gold Edition from GOG with resolution
  and sound fixes.
game_slug: the-settlers-iv-gold-edition
gogslug: the_settlers_4_gold_edition
humblestoreid: ''
installer_slug: the-settlers-iv-gold-edition-gog-version-fixes-19
name: 'The Settlers IV: Gold Edition'
notes: "- Do not change resolution\r\n- 1920x1200 resolution - Full Screen, Windowed\
  \ doesn't work :(\r\n- Widescreen Fix (https://www.siedler-maps.de/forum/Technische-Hilfe/Siedler-4-Widescreen-Patch-18715.htm)\r\
  \n-Music Fix (https://www.youtube.com/watch?v=OQ4Re-6cL9c)\r\n   -Maya music does\
  \ not stop after a music change\r\n   -The missing Trojan track has been restored\r\
  \n   -Cards on which the Dark People are played can now also play music\r\n   -By\
  \ modifying the SoundTracks.cfg all playlists can be adjusted"
runner: wine
script:
  files:
  - game: N/A:Select the installer downloaded from GOG.
  - fix: https://github.com/Armageddon91/Lutris-Script/raw/master/The%20Settlers%20IV/The%20Settler%204%20Fix.zip
  game:
    exe: drive_c/GOG Games/Settlers 4 Gold/S4.exe
    prefix: $GAMEDIR
  installer:
  - task:
      description: Creating WINE prefix
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE
      file: $fix
  - task:
      args: /silent /nogui
      description: Installing game
      executable: $game
      name: wineexec
      prefix: $GAMEDIR
  - move:
      dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Config/SoundTracks.cfg
      src: $CACHE/Music Fix/SoundTracks.cfg
  - move:
      dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Snd/Trojans_settle_03.mp3
      src: $CACHE/Music Fix/Trojans_settle_03.mp3
  - move:
      dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Exe/GfxEngine.dll
      src: $CACHE/Widescreen Fix/1920x1200/GfxEngine.dll
  - execute:
      args: -i "s/WindowWidth.*/WindowWidth = 1920/" $CACHE/GameSettings.cfg
      description: Fix Resolution - Width
      file: sed
  - execute:
      args: -i "s/WindowHeight.*/WindowHeight = 1200/" $CACHE/GameSettings.cfg
      description: Fix Resolution - Height
      file: sed
  - execute:
      args: -i "s/Screenmode.*/Screenmode = 4/" $CACHE/GameSettings.cfg
      description: Fix Resolution - ScreenMode
      file: sed
  - move:
      dst: $GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Config/GameSettings.cfg
      src: $CACHE/GameSettings.cfg
slug: the-settlers-iv-gold-edition-gog-version-fixes-19
steamid: null
version: GOG Version + Fixes 1920x1200fs
year: 2002
{
  "game_slug": "the-settlers-iv-gold-edition",
  "version": "GOG Version + Fixes 1920x1200fs",
  "description": "This script installs The Settlers 4 - Gold Edition from GOG with resolution and sound fixes.",
  "notes": "- Do not change resolution\r\n- 1920x1200 resolution - Full Screen, Windowed doesn't work :(\r\n- Widescreen Fix (https://www.siedler-maps.de/forum/Technische-Hilfe/Siedler-4-Widescreen-Patch-18715.htm)\r\n-Music Fix (https://www.youtube.com/watch?v=OQ4Re-6cL9c)\r\n   -Maya music does not stop after a music change\r\n   -The missing Trojan track has been restored\r\n   -Cards on which the Dark People are played can now also play music\r\n   -By modifying the SoundTracks.cfg all playlists can be adjusted",
  "name": "The Settlers IV: Gold Edition",
  "year": 2002,
  "steamid": null,
  "gogslug": "the_settlers_4_gold_edition",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "the-settlers-iv-gold-edition-gog-version-fixes-19",
  "installer_slug": "the-settlers-iv-gold-edition-gog-version-fixes-19",
  "script": {
    "files": [
      {
        "game": "N/A:Select the installer downloaded from GOG."
      },
      {
        "fix": "https://github.com/Armageddon91/Lutris-Script/raw/master/The%20Settlers%20IV/The%20Settler%204%20Fix.zip"
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Settlers 4 Gold/S4.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "description": "Creating WINE prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$fix"
        }
      },
      {
        "task": {
          "args": "/silent /nogui",
          "description": "Installing game",
          "executable": "$game",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Config/SoundTracks.cfg",
          "src": "$CACHE/Music Fix/SoundTracks.cfg"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Snd/Trojans_settle_03.mp3",
          "src": "$CACHE/Music Fix/Trojans_settle_03.mp3"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Exe/GfxEngine.dll",
          "src": "$CACHE/Widescreen Fix/1920x1200/GfxEngine.dll"
        }
      },
      {
        "execute": {
          "args": "-i \"s/WindowWidth.*/WindowWidth = 1920/\" $CACHE/GameSettings.cfg",
          "description": "Fix Resolution - Width",
          "file": "sed"
        }
      },
      {
        "execute": {
          "args": "-i \"s/WindowHeight.*/WindowHeight = 1200/\" $CACHE/GameSettings.cfg",
          "description": "Fix Resolution - Height",
          "file": "sed"
        }
      },
      {
        "execute": {
          "args": "-i \"s/Screenmode.*/Screenmode = 4/\" $CACHE/GameSettings.cfg",
          "description": "Fix Resolution - ScreenMode",
          "file": "sed"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Settlers 4 Gold/Config/GameSettings.cfg",
          "src": "$CACHE/GameSettings.cfg"
        }
      }
    ]
  }
}
Back to game