Installer star-wars-the-force-unleashed-gog

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.

custom-name: Star Wars - The Force Unleashed Ultimate Sith Edition - GOG
files:
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20The%20Force%20Unleashed%20Ultimate%20Sith%20Edition/swtfu_gog.bat
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20The%20Force%20Unleashed%20Ultimate%20Sith%20Edition/swtfu.bmp
- config: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20The%20Force%20Unleashed%20Ultimate%20Sith%20Edition/Config.xml
- fix:
    filename: SWTFU_Fixed_Files.7z
    url: https://www.dropbox.com/s/svgytg5fnd0mwb3/SWTFU_Fixed_Files.7z?dl=1
- gnutils: https://github.com/legluondunet/mlls-tools/raw/master/sed/sed_win32.zip
- inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- gamesetup: N/A:Please select the Windows setup exe file downloaded from your GOG
    account.
game:
  args: c:\\swtfu_gog.bat
  exe: drive_c/windows/syswow64/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Preparing wineprefix...
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: ActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: GradientActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- extract:
    dst: $CACHE/innoextract
    file: inno
- execute:
    args: --extract $gamesetup --output-dir "$GAMEDIR/drive_c/GOG Games"
    file: $CACHE/innoextract/innoextract
- merge:
    dst: $GAMEDIR/drive_c/tmp/
    src: config
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/app/LevelPacks/
    file: fix
- input_menu:
    description: 'Please choose your preferred game''s language:'
    id: LANG
    options:
    - en: English
    - fr: French
    - de: German
    - it: Italian
    - es: Spanish
    - pl: Polish
    - ru: Russian
    preselect: en
- task:
    arch: win64
    key: Language
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\aspyr\star wars the force unleashed\
    prefix: $GAMEDIR
    type: REG_SZ
    value: $INPUT_LANG
- task:
    app: d3dcompiler_47
    name: winetricks
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/tmp/
    file: gnutils
- merge:
    dst: $GAMEDIR/drive_c/
    src: menu
- merge:
    dst: $GAMEDIR/drive_c/
    src: wpp
- task:
    arch: win64
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\swtfu.bmp
- task:
    arch: win64
    key: csmt
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- execute:
    command: cd "$GAMEDIR/drive_c/tmp/"; sed -i -e "s/resolutionx/"$RESOLUTION_WIDTH"/g"
      -e "s/resolutiony/"$RESOLUTION_HEIGHT"/g" Config.xml; cd .. ; cd "GOG Games";
      mv app "Star Wars - The Force Unleashed Ultimate Sith Edition"; cd "Star Wars
      - The Force Unleashed Ultimate Sith Edition"; rm -f -r ../tmp __support GameuxInstallHelper.dll
      goggame-1189268228.* language_setup.* webcache.zip;
wine:
  Desktop: true
{
  "custom-name": "Star Wars - The Force Unleashed Ultimate Sith Edition - GOG",
  "files": [
    {
      "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20The%20Force%20Unleashed%20Ultimate%20Sith%20Edition/swtfu_gog.bat"
    },
    {
      "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20The%20Force%20Unleashed%20Ultimate%20Sith%20Edition/swtfu.bmp"
    },
    {
      "config": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20The%20Force%20Unleashed%20Ultimate%20Sith%20Edition/Config.xml"
    },
    {
      "fix": {
        "filename": "SWTFU_Fixed_Files.7z",
        "url": "https://www.dropbox.com/s/svgytg5fnd0mwb3/SWTFU_Fixed_Files.7z?dl=1"
      }
    },
    {
      "gnutils": "https://github.com/legluondunet/mlls-tools/raw/master/sed/sed_win32.zip"
    },
    {
      "inno": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    },
    {
      "gamesetup": "N/A:Please select the Windows setup exe file downloaded from your GOG account."
    }
  ],
  "game": {
    "args": "c:\\\\swtfu_gog.bat",
    "exe": "drive_c/windows/syswow64/wineconsole.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "description": "Preparing wineprefix...",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "GradientActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "extract": {
        "dst": "$CACHE/innoextract",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "--extract $gamesetup --output-dir \"$GAMEDIR/drive_c/GOG Games\"",
        "file": "$CACHE/innoextract/innoextract"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "src": "config"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/app/LevelPacks/",
        "file": "fix"
      }
    },
    {
      "input_menu": {
        "description": "Please choose your preferred game's language:",
        "id": "LANG",
        "options": [
          {
            "en": "English"
          },
          {
            "fr": "French"
          },
          {
            "de": "German"
          },
          {
            "it": "Italian"
          },
          {
            "es": "Spanish"
          },
          {
            "pl": "Polish"
          },
          {
            "ru": "Russian"
          }
        ],
        "preselect": "en"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "Language",
        "name": "set_regedit",
        "path": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\aspyr\\star wars the force unleashed\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "$INPUT_LANG"
      }
    },
    {
      "task": {
        "app": "d3dcompiler_47",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "file": "gnutils"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "menu"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "wpp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\swtfu.bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "csmt",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/tmp/\"; sed -i -e \"s/resolutionx/\"$RESOLUTION_WIDTH\"/g\" -e \"s/resolutiony/\"$RESOLUTION_HEIGHT\"/g\" Config.xml; cd .. ; cd \"GOG Games\"; mv app \"Star Wars - The Force Unleashed Ultimate Sith Edition\"; cd \"Star Wars - The Force Unleashed Ultimate Sith Edition\"; rm -f -r ../tmp __support GameuxInstallHelper.dll goggame-1189268228.* language_setup.* webcache.zip;"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game