Installer tropico-gog-w-dxwrapper-edit

files:
- game: N/A:Select the Windows setup file downloaded from GOG
- dxWrapper: https://github.com/elishacloud/dxwrapper/releases/download/v1.1.6900.22/dxwrapper.zip
- tropicoTools: https://github.com/alexanderjgray/myLutrisScripts/releases/download/v0.3-tropico-tools/tropico-tools.tar.gz
game:
  exe: $GAMEDIR/drive_c/GOG Games/Tropico/Tropico.EXE
  gogid: 1207663953
  prefix: $GAMEDIR
installer:
- task:
    args: /silent /nogui /suppressmsgboxes
    executable: game
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/extras/dxwrapper
    file: $dxWrapper
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tropico
    src: $GAMEDIR/extras/dxwrapper/dxwrapper.dll
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tropico
    src: $GAMEDIR/extras/dxwrapper/dxwrapper.ini
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tropico
    src: $GAMEDIR/extras/dxwrapper/Stub/ddraw.dll
- write_config:
    file: $GAMEDIR/drive_c/GOG Games/Tropico/dxwrapper.ini
    key: Dd7to9
    section: Compatibility
    value: 1
- extract:
    dst: $GAMEDIR/extras
    file: $tropicoTools
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tropico
    src: $GAMEDIR/extras/eventadd.exe
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tropico
    src: $GAMEDIR/extras/eventget.exe
- chmodx: $GAMEDIR/extras/tropico-auto-hotel-fix.sh
- chmodx: $GAMEDIR/extras/tropico-auto-scenario-fix.sh
- execute:
    file: $GAMEDIR/extras/tropico-auto-scenario-fix.sh
wine:
  overrides:
    ddraw.dll: n
description: GOG version with dxwrapper, editing tools and a fix for the hotel double
  income bug.
game_slug: tropico
gogslug: tropico_reloaded
humblestoreid: ''
installer_slug: tropico-gog-w-dxwrapper-edit
name: Tropico
notes: "Please report bugs at: https://github.com/alexanderjgray/myLutrisScripts\r\
  \n\r\nAll scripts and tools can be found in the \"extra\" folder at the root of\
  \ your installs prefix.\r\n\r\nNOTE: The scripts expect everything to be installed\
  \ to Lutris's default location:\r\n\"/home/user/Games/gog/tropico/drive_c/GOG Games/Tropico\"\
  \ \r\nIf this isn't how your setup is you'll have to fetch the scripts from my github\
  \ and modify yourself.\r\n\r\nPre-made scenarios are fixed automatically during\
  \ the install process.\r\n\r\nTo automatically apply the fix to random map games:\r\
  \n\r\nFirst you'll need to install inotify-tools from your distro's repository.\r\
  \n\r\nAdd \"tropico-auto-hotel-fix.sh\" to the pre-launch script in lutris under\
  \ the system options tab then launch the game.\r\n\r\nMake a random map game per\
  \ usual, make sure everything is setup as you wish. Once in game, hold CTRL and\
  \ type \"editor\" to turn on editor mode. \r\n\r\nTo confirm you are in editor mode\
  \ press \"p\" to bring up the paint menu. In editor mode save the game with its\
  \ name prefixed with \"s-\" so for example \"s-myrandomgame\". \r\n\r\nWith that\
  \ done again hold CTRL and type \"editor\" to turn off editor mode. If you don't\
  \ do this it will still be active later. \r\n\r\nExit the random game and go to\
  \ pre-designed scenarios. You should see your random game with the same name as\
  \ its save name in the scenario list.\r\n\r\nEnjoy :3\r\n\r\n*Note, this script\
  \ will keep running post exiting the game, so tell lutris to stop Tropico after\
  \ you exit"
runner: wine
script:
  files:
  - game: N/A:Select the Windows setup file downloaded from GOG
  - dxWrapper: https://github.com/elishacloud/dxwrapper/releases/download/v1.1.6900.22/dxwrapper.zip
  - tropicoTools: https://github.com/alexanderjgray/myLutrisScripts/releases/download/v0.3-tropico-tools/tropico-tools.tar.gz
  game:
    exe: $GAMEDIR/drive_c/GOG Games/Tropico/Tropico.EXE
    gogid: 1207663953
    prefix: $GAMEDIR
  installer:
  - task:
      args: /silent /nogui /suppressmsgboxes
      executable: game
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/extras/dxwrapper
      file: $dxWrapper
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Tropico
      src: $GAMEDIR/extras/dxwrapper/dxwrapper.dll
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Tropico
      src: $GAMEDIR/extras/dxwrapper/dxwrapper.ini
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Tropico
      src: $GAMEDIR/extras/dxwrapper/Stub/ddraw.dll
  - write_config:
      file: $GAMEDIR/drive_c/GOG Games/Tropico/dxwrapper.ini
      key: Dd7to9
      section: Compatibility
      value: 1
  - extract:
      dst: $GAMEDIR/extras
      file: $tropicoTools
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Tropico
      src: $GAMEDIR/extras/eventadd.exe
  - copy:
      dst: $GAMEDIR/drive_c/GOG Games/Tropico
      src: $GAMEDIR/extras/eventget.exe
  - chmodx: $GAMEDIR/extras/tropico-auto-hotel-fix.sh
  - chmodx: $GAMEDIR/extras/tropico-auto-scenario-fix.sh
  - execute:
      file: $GAMEDIR/extras/tropico-auto-scenario-fix.sh
  wine:
    overrides:
      ddraw.dll: n
slug: tropico-gog-w-dxwrapper-edit
steamid: 33520
version: GOG w/ dxwrapper, editing tools
year: 2001
{
  "game_slug": "tropico",
  "version": "GOG w/ dxwrapper, editing tools",
  "description": "GOG version with dxwrapper, editing tools and a fix for the hotel double income bug.",
  "notes": "Please report bugs at: https://github.com/alexanderjgray/myLutrisScripts\r\n\r\nAll scripts and tools can be found in the \"extra\" folder at the root of your installs prefix.\r\n\r\nNOTE: The scripts expect everything to be installed to Lutris's default location:\r\n\"/home/user/Games/gog/tropico/drive_c/GOG Games/Tropico\" \r\nIf this isn't how your setup is you'll have to fetch the scripts from my github and modify yourself.\r\n\r\nPre-made scenarios are fixed automatically during the install process.\r\n\r\nTo automatically apply the fix to random map games:\r\n\r\nFirst you'll need to install inotify-tools from your distro's repository.\r\n\r\nAdd \"tropico-auto-hotel-fix.sh\" to the pre-launch script in lutris under the system options tab then launch the game.\r\n\r\nMake a random map game per usual, make sure everything is setup as you wish. Once in game, hold CTRL and type \"editor\" to turn on editor mode. \r\n\r\nTo confirm you are in editor mode press \"p\" to bring up the paint menu. In editor mode save the game with its name prefixed with \"s-\" so for example \"s-myrandomgame\". \r\n\r\nWith that done again hold CTRL and type \"editor\" to turn off editor mode. If you don't do this it will still be active later. \r\n\r\nExit the random game and go to pre-designed scenarios. You should see your random game with the same name as its save name in the scenario list.\r\n\r\nEnjoy :3\r\n\r\n*Note, this script will keep running post exiting the game, so tell lutris to stop Tropico after you exit",
  "name": "Tropico",
  "year": 2001,
  "steamid": 33520,
  "gogslug": "tropico_reloaded",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "tropico-gog-w-dxwrapper-edit",
  "installer_slug": "tropico-gog-w-dxwrapper-edit",
  "script": {
    "files": [
      {
        "game": "N/A:Select the Windows setup file downloaded from GOG"
      },
      {
        "dxWrapper": "https://github.com/elishacloud/dxwrapper/releases/download/v1.1.6900.22/dxwrapper.zip"
      },
      {
        "tropicoTools": "https://github.com/alexanderjgray/myLutrisScripts/releases/download/v0.3-tropico-tools/tropico-tools.tar.gz"
      }
    ],
    "game": {
      "exe": "$GAMEDIR/drive_c/GOG Games/Tropico/Tropico.EXE",
      "gogid": 1207663953,
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "args": "/silent /nogui /suppressmsgboxes",
          "executable": "game",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/extras/dxwrapper",
          "file": "$dxWrapper"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Tropico",
          "src": "$GAMEDIR/extras/dxwrapper/dxwrapper.dll"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Tropico",
          "src": "$GAMEDIR/extras/dxwrapper/dxwrapper.ini"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Tropico",
          "src": "$GAMEDIR/extras/dxwrapper/Stub/ddraw.dll"
        }
      },
      {
        "write_config": {
          "file": "$GAMEDIR/drive_c/GOG Games/Tropico/dxwrapper.ini",
          "key": "Dd7to9",
          "section": "Compatibility",
          "value": 1
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/extras",
          "file": "$tropicoTools"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Tropico",
          "src": "$GAMEDIR/extras/eventadd.exe"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Tropico",
          "src": "$GAMEDIR/extras/eventget.exe"
        }
      },
      {
        "chmodx": "$GAMEDIR/extras/tropico-auto-hotel-fix.sh"
      },
      {
        "chmodx": "$GAMEDIR/extras/tropico-auto-scenario-fix.sh"
      },
      {
        "execute": {
          "file": "$GAMEDIR/extras/tropico-auto-scenario-fix.sh"
        }
      }
    ],
    "wine": {
      "overrides": {
        "ddraw.dll": "n"
      }
    }
  }
}
Back to game