Installer neverwinter-nights-alternate

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.

files:
- nwinstaller: N/A:Select location of GOG's executable (should be setup_nwn_diamond_2.1.x.x.exe)
- innoextract: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- nwclientgold: https://lutris.net/files/games/neverwinter-nights/nwclientgold.tar.gz
- nwclient161: https://lutris.net/files/games/neverwinter-nights/nwclienthotu.tar.gz
- nwclient169: https://lutris.net/files/games/neverwinter-nights/English_linuxclient169_xp2.tar.gz
- nwlauncher: https://lutris.net/files/games/neverwinter-nights/nwnlauncher.tar.gz
game:
  exe: nwn.sh
installer:
- extract:
    dst: $CACHE/tmp/innoextract
    file: innoextract
- execute:
    args: --extract $nwinstaller --output-dir $CACHE/tmp/nwn/ --gog
    file: $CACHE/tmp/innoextract/innoextract
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/ambient
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/data
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/dmvault
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/erf
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/hak
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/localvault
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/modules
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/movies
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/music
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/nwm
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/override
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/texturepacks
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/chitin.key
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/dialog.tlk
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/xp1.key
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/xp2.key
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/xp2patch.key
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/game/xp3.key
- extract:
    dst: $GAMEDIR
    file: nwclientgold
- extract:
    dst: $GAMEDIR
    file: nwclient161
- execute:
    args: u+w -R $GAMEDIR
    file: /bin/chmod
- extract:
    dst: $GAMEDIR
    file: nwclient169
- extract:
    dst: $GAMEDIR
    file: nwlauncher
- execute:
    file: $GAMEDIR/nwn.sh
- move:
    dst: $GAMEDIR/nwncdkey.ini.bak
    src: $GAMEDIR/nwncdkey.ini
- move:
    dst: $GAMEDIR
    src: $CACHE/tmp/nwn/support/app/nwncdkey.ini
{
  "files": [
    {
      "nwinstaller": "N/A:Select location of GOG's executable (should be setup_nwn_diamond_2.1.x.x.exe)"
    },
    {
      "innoextract": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    },
    {
      "nwclientgold": "https://lutris.net/files/games/neverwinter-nights/nwclientgold.tar.gz"
    },
    {
      "nwclient161": "https://lutris.net/files/games/neverwinter-nights/nwclienthotu.tar.gz"
    },
    {
      "nwclient169": "https://lutris.net/files/games/neverwinter-nights/English_linuxclient169_xp2.tar.gz"
    },
    {
      "nwlauncher": "https://lutris.net/files/games/neverwinter-nights/nwnlauncher.tar.gz"
    }
  ],
  "game": {
    "exe": "nwn.sh"
  },
  "installer": [
    {
      "extract": {
        "dst": "$CACHE/tmp/innoextract",
        "file": "innoextract"
      }
    },
    {
      "execute": {
        "args": "--extract $nwinstaller --output-dir $CACHE/tmp/nwn/ --gog",
        "file": "$CACHE/tmp/innoextract/innoextract"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/ambient"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/data"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/dmvault"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/erf"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/hak"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/localvault"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/modules"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/movies"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/music"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/nwm"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/override"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/texturepacks"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/chitin.key"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/dialog.tlk"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/xp1.key"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/xp2.key"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/xp2patch.key"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/game/xp3.key"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "nwclientgold"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "nwclient161"
      }
    },
    {
      "execute": {
        "args": "u+w -R $GAMEDIR",
        "file": "/bin/chmod"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "nwclient169"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "nwlauncher"
      }
    },
    {
      "execute": {
        "file": "$GAMEDIR/nwn.sh"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/nwncdkey.ini.bak",
        "src": "$GAMEDIR/nwncdkey.ini"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR",
        "src": "$CACHE/tmp/nwn/support/app/nwncdkey.ini"
      }
    }
  ]
}
Back to game