Installer return-to-castle-wolfenstein-gog-realrtcw-mod-33

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: Return to Castle Wolfenstein - GOG - RealRTCW mod
files:
- inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
- realrtcw: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/release-linux-x86_64.tar.xz
- gogsetup: N/A:Please select the RTCW setup exe file downloaded from your GOG account.
- realmod: N/A:Please select the RealRTCW mod archive you downloaded from https://www.moddb.com/mods/realrtcw-realism-mod/downloads/realrtcw-31
- realmodaddons: N/A:Please select the RealRTCW mod addons pack archive you downloaded
    from https://www.moddb.com/mods/realrtcw-realism-mod/downloads/realrtcw-31-addons-pack
- config: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/realrtcwconfig.cfg
game:
  exe: realrtcw.sh
installer:
- extract:
    dst: $CACHE/innoextract
    file: inno
- execute:
    args: --extract --gog $gogsetup --output-dir "$CACHE/"
    file: $CACHE/innoextract/innoextract
- merge:
    dst: $GAMEDIR/main
    src: $CACHE/app/Main
- merge:
    dst: $GAMEDIR/docs
    src: $CACHE/app/Docs
- extract:
    dst: $GAMEDIR
    file: $realmod
- execute:
    command: cd "$GAMEDIR/!copy the content of this folder into rtcw root directory";
      cp -r Main/* ../main;
- extract:
    dst: $GAMEDIR
    file: $realmodaddons
- extract:
    dst: $GAMEDIR
    file: realrtcw
- copy:
    dst: $GAMEDIR/main
    src: config
- write_file:
    content: '#!/bin/bash

      ./RealRTCW.x86_64 +set fs_homepath .

      '
    file: $GAMEDIR/realrtcw.sh
- chmodx: $GAMEDIR/realrtcw.sh
- execute:
    command: cd "$GAMEDIR"; rm -f -r "!copy the content of this folder into rtcw root
      directory"; cd main; rm -f -r *.dll ;
{
  "custom-name": "Return to Castle Wolfenstein - GOG - RealRTCW mod",
  "files": [
    {
      "inno": "https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz"
    },
    {
      "realrtcw": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/release-linux-x86_64.tar.xz"
    },
    {
      "gogsetup": "N/A:Please select the RTCW setup exe file downloaded from your GOG account."
    },
    {
      "realmod": "N/A:Please select the RealRTCW mod archive you downloaded from https://www.moddb.com/mods/realrtcw-realism-mod/downloads/realrtcw-31"
    },
    {
      "realmodaddons": "N/A:Please select the RealRTCW mod addons pack archive you downloaded from https://www.moddb.com/mods/realrtcw-realism-mod/downloads/realrtcw-31-addons-pack"
    },
    {
      "config": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Return%20to%20Castle%20Wolfenstein/realrtcwconfig.cfg"
    }
  ],
  "game": {
    "exe": "realrtcw.sh"
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE/innoextract",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "--extract --gog $gogsetup --output-dir \"$CACHE/\"",
        "file": "$CACHE/innoextract/innoextract"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/main",
        "src": "$CACHE/app/Main"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/docs",
        "src": "$CACHE/app/Docs"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "$realmod"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/!copy the content of this folder into rtcw root directory\"; cp -r Main/* ../main;"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "$realmodaddons"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "realrtcw"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/main",
        "src": "config"
      }
    },
    {
      "write_file": {
        "content": "#!/bin/bash\n./RealRTCW.x86_64 +set fs_homepath .\n",
        "file": "$GAMEDIR/realrtcw.sh"
      }
    },
    {
      "chmodx": "$GAMEDIR/realrtcw.sh"
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR\"; rm -f -r \"!copy the content of this folder into rtcw root directory\"; cd main; rm -f -r *.dll ;"
      }
    }
  ]
}
Back to game