Package Details: nwn-gog 2.1.0.21-4

Git Clone URL: https://aur.archlinux.org/nwn-gog.git (read-only)
Package Base: nwn-gog
Description: Neverwinter Nights is an RPG from Bioware. This requires the GOG version.
Upstream URL: https://www.gog.com/game/neverwinter_nights_diamond_edition
Licenses: custom
Conflicts: nwn
Provides: nwn
Submitter: jdarch
Maintainer: ubervison
Last Packager: ubervison
Votes: 6
Popularity: 0.121650
First Submitted: 2015-09-09 22:49
Last Updated: 2017-12-22 00:21

Required by (0)

Sources (13)

Latest Comments

Mahadeva commented on 2018-04-06 16:20

I have re-organized the installation steps! And wanted to share this here, this is how I install this package now every time. Tested on 100% fresh Arch Linux installation.

--

1) Download the snapshot, and extract it like so: tar xvf nwn-gog.tar.gz

2) cd into the newly extracted nwn-gog directory

3) and place the downloaded gog setup files (from gog.com) into the same nwn-gog directory, so that yaourt doesn't have to download them again.

4) Install lgogdownloader and binkplayer via yaourt first. So you don't run into dependency issues later when executing "makepkg -si".

5) run makepkg -si in the nwn-gog directory, this will install all the dependencies automatically. I discovered just "makepkg" command won't do that.

6) install generated package with sudo pacman -U nwn-gog 2.1.0.21-4-x86_64.pkg.tar

--

That's all, no issues during the installation. The game is ready to play at this point.

  • You can start the game like so: sh /opt/nwn/nwn.sh

--

Some "fixes" I do to the launch script every time I install NWN via this package.

Edit the launch script like so: sudo nano /opt/nwn/nwn.sh

  • Disable the startup movies, get rid of the 1-2 sec delay at game launch (if you delete the movie files manually, game tries to find these movies - for as long this line is inside the script):

remove the ./nwmovies.so: from nwn.sh

  • Fix the in-game cursor (if your in-game cursor is a system/linux arrow. Instead of a fancy graphical NWN hand):

remove the ./nwmouse.so: from nwn.sh

--

Good to know when issues with Portraits:

Newly installed portraits display as WHITE boxes in-game? It is because the game expects any portrait-file names to begin with a lowercase letter.

cd into /home/user/.nwn/portraits and then run this command in this folder, it will give lowercase letter to all files inside that folder:

Copy-paste this command into the terminal: for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done

--

+ You should install ALL mods into `/home/user/.nwn` folder, mods like CEP, sounds, tlk, portraits whatever it is. Use this folder :)! I learned the hard way!

ubervison commented on 2017-12-21 22:45

Thank you for the suggestions for the hosts file! I will add it in the *.install file.

Mahadeva commented on 2017-12-21 22:01

I have disabled all movies which are located in root/opt/nwn/movies. Thank you so much for all of the help! One more to add:

WOTCLogo.bik

--

To bypass the long wait time when you press the Multiplayer button (master server) Do the following:

sudo su
echo '199.193.152.27  nwmaster.bioware.com' >> /etc/hosts
echo '198.23.165.35   nwn.master.gamespy.com' >> /etc/hosts

If I find the answers to direct connect from command line I will post the solution here :) so all of the info is complete! For flawless Multiplayer experience.

Take care, and thanks for great help.

ubervison commented on 2017-12-21 21:27

To disable the intro movies, simply rename or remove the related *.bik files in the nwn/movies directory:

BiowareLogo.bik
AtariLogo.bik
fge_logo_black.bik
NWNintro.bik

As for your optirun problem, maybe the +connect option is only intended for use with the windows version of the game? I can't find any documentation about it on linux. Your optirun command should work fine the way you do it.

I guess for now the only way would be to use direct connect from the in-game server browser.

Mahadeva commented on 2017-12-21 20:31

I have two more issues. Can you help?

1) Is there any quick way to disable the annoying intro movies when I launch the game? Because I realize to display the movies like they do, it needs help from an external program to display them. And adding "Disable Intro Movies=1" can't help in NWN.ini

2) Is there a way to use direct connect with otpirun commmand? Example how I would of expected it to work:

optirun /usr/bin/nwn +connect 46.4.59.55
But in reality that does not work lol.

I already installed mods, portraits etc. all of it works. I only have these 2 tiny issues, these things have nothing to do with this AUR package, the package is a masterpiece and thank you for creating it! But I would be glad to know if there is a way to disable the intro movies.

Mahadeva commented on 2017-12-21 11:19

ubervision THANK YOU :)! I have voted on this package now, it does work.

Your instructions are 100% clear and working precisely. My game is running beautifully and I must say, it feels as if it runs better than on Windows lol (which I hope truly is the case!).

Personally here is what I have to do in order to run the game:

optirun /usr/bin/nwn

I use a T420 thinkpad with bumblebee.

--

I will leave some FEEDBACK on how to maybe make the yaourt command more useful for new comers (such like myself :D). Because I really believed all I had to do was "yaourt nwn-gog" and that ALL of it will take care of everything, but it was not the case probably my partition was getting full as you mentioned - and it is default for many arch newcomers.

So why not make it truly foolproof :)? Too bad I don't know how to do it myself, but I love foolproofing stuff!

--

Give a couple of options for the command "yaourt nwn-gog"

Options 1) Allow us to choose whether we want to download from GOG or Select Manually the folder which already contains the two game files (if we manually downloaded).

Options 2) Allow us to change the directory, where we want to download the GOG files through nwn-gog installer. Such as "a temporary folder in /home"

Options 3) Allow us to already choose where (what folder) the game installation will be finalized inside. I use your suggestion /home/user/nwn-gog and it looks really good.

ubervison commented on 2017-12-21 09:56

Well, yaourt seems to use /tmp/yaourt-tmp-user/aur-nwn-gog as a cache directory for the package. So you could try placing the downloaded setup files in this directory.

You said I could try rebuilding the package on a drive that does not use tmpfs fs, like my home directory.

I suspect that unrar has some troubles extracting the files on ram-based filesystems, like tmpfs. So what I suggest is this:

  • download a snapshot of the package from the aur page
  • extract it in your home dir, like so: tar xvf nwn-gog.tar.gz
  • cd into the newly extracted nwn-gog directory
  • place the downloaded gog setup files in the same nwn-gog directory, so that yaourt doesn't have to download them again
  • run makepkg in the nwn-gog directory
  • install generated package with sudo pacman -U nwn-gog 2.1.0.21-4-x86_64.pkg.tar

I recommend that you read through the wiki pages on the AUR and Arch Build System if all of this is not clear :)

https://wiki.archlinux.org/index.php/Arch_User_Repository

https://wiki.archlinux.org/index.php/Arch_Build_System

Mahadeva commented on 2017-12-21 09:34

ubervision, thanks for your comment you give me hope!

Now that I try to reinstall, the downloaded gog files are gone (and the installer wants to re-download all). But I have also downloaded them manually already, the same 2 files "setup_nwn_diamond_2.1.0.21-1.bin" and "setup_nwn_diamond_2.1.0.21.exe" from GOG website manually.

  • Question: Is there a folder I can place these files, so the nwn-gog installer will find them? Or how do I point the installer to a folder where I have these files?

--

I don't really know how this works :/ I just want to play NWN haha. What I have done, is install nwn-gog from yaourt command. Default everything, I have not edited anything. Feeling kinda stuck.

You said I could try rebuilding the package on a drive that does not use tmpfs fs, like my home directory.

  • How do I do that..?

Thank you for your time and attention.

ubervison commented on 2017-12-21 08:36

Hm, maybe try to reinstall while making sure you have enough disk space ? You could also try building the package on a drive that doesn't use the tmpfs filesystem, like your home directory.

Mahadeva commented on 2017-12-21 07:13

I tried using this package, but it stopped with this error:

Extracting  /tmp/yaourt-tmp-user/aur-nwn-gog/src/game/texturepacks/Tiles_Tpc.erf   7%Write error in the file /tmp/yaourt-tmp-user/aur-nwn-gog/src/game/texturepacks/Tiles_Tpc.erf

Inappropriate ioctl for device

Program aborted

Could not extract "/tmp/yaourt-tmp-user/aur-nwn-gog/src/setup_nwn_diamond_2.1.0.21-1.bin": unrar failed

Done with 1 error.

==> ERROR: A failure occurred in prepare().

Aborting...

==> ERROR: Makepkg was unable to build nwn-gog.

gustavosg commented on 2017-11-04 13:27

It worked! Thanks!

ubervison commented on 2017-11-03 21:59

That's weird. The PKGBUILD is supposed to patch nwlogger_cookie.c to include sys/user.h instead of linux/user.h. You can always try to replace '#include <linux/user.h>' by '#include <sys/user.h>' at the top of the nwlogger_cookie.c file in src/nwlogger/nwlogger.

gustavosg commented on 2017-11-03 18:16

I was not able to instal. Got this error:

nwlogger/nwlogger_cookie.c:19:10: fatal error: linux/user.h: No such file or directory

Thanks!

zanny commented on 2017-08-30 02:24

After the changes the segfault seems to be gone, so everything works! Thank you for updating this!

ubervison commented on 2017-08-21 22:04

zanny:

I implemented your suggestions and updated the gogdownloader links. As for the segfault, I can't reproduce it. Maybe run it through valgrind or something ?

zanny commented on 2017-08-19 04:27

"Found nothing in https://api.gog.com/downloader2/extra/gog://neverwinter_nights_diamond_edition/extras/nvn_KingmakerSetup.zip/"

The nvn-KingmakerSetup seems to be gone from gog. The other two files downloaded fine with lgogdownloader.

Should also probably change the gog: urls to gogdownloader: since that is what most pkgbuilds are using.

There seems to be an issue where partial failed builds leave behind src/icons and attempted rebuilds fail if the directory exists (deleting it makes the next build work):

mkdir: cannot create directory ‘/ms/aur/nwn-gog/src/icons’: File exists

There should be a make-depend here on gcc-multilib for x86_64, since some parts build i686 only (nwmovies, nwuser) despite the package advertising both.

Could also think about making PKGEXT='.pkg.tar' since most of the data in the pkg is already compressed and xz'ing it takes forever.

Finally, after building the package, I get these trying to run it:

ERROR: ld.so: object './nwuser64.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
/usr/bin/nwn: line 28: 24450 Segmentation fault (core dumped) ./nwmain $@

vdemin commented on 2017-06-19 20:44

Thanks for updating the package!

Please fix a typo in Description:
s/Nigts/Nights/

Maybe it's worth changing Upstream URL to https://www.gog.com/game/neverwinter_nights_diamond_edition ?

ubervison commented on 2017-06-18 16:04

Updated the PKGBUILD and changed urls for the linux clients, the bioware site seems to be down. If you didn't configure a gog DLAGENT, you can simply put the installer files in the same folder as the PKGBUILD.

cRaZy-bisCuiT commented on 2016-12-05 21:21

Could you please update the PKGBUILD? As mentioned in the "out-of-date": It's a newer version (setup_nwn_diamond_2.1.0.21) with only one *.bin file! Thanks!

vdemin commented on 2016-12-01 08:49

Please update nwuser's SHA:
https://github.com/nwnlinux/nwuser/pull/1

smls commented on 2016-07-24 12:54

@nexero:

You shouldn't use the outdated 'if [ "$CARCH" = "x86_64" ]' method for architecture-specific sources, anymore, as it can cause problems for the AUR database and AUR helpers.

Instead, use:

depends=(...)
depends_i686=(...)
depends_x86_64=(...)

smls commented on 2016-07-24 12:44

@JinksonFox:
What are you talking about?
Using the gog:// protocol in the source array is the proper way to do it.

It has zero disadvantages compared to using no protocol at all. With no protocol, you would *have* to manually copy the source files into the PKGBUILD directory, and with the protocol you can still do that.

But what you can *also* do now, is to define a custom DLAGENT in /etc/makepkg.conf.
You could define a dlagent that uses lgogdownloader for such URLs, but personally I prefer to use the following dlagent for hib:// and gog:// URLs which finds the files in my ~/download folder and subdirectories thereof: http://pastebin.com/raw/Brz8THUG

JinksonFox commented on 2016-07-11 02:28

cybrid:

I also attempted to try to see if I could do anything with the gog:// URIs to no avail. What I eventually ended up doing was using lgogdownloader just to download the neverwinter_nights_diamond_edition folder to my system, I put a quick and dirty HTTP server up (nginx), and then I moved that folder into the HTTP directory, modified the PKGBUILD to point to the local http sources, and then it got me on my way. I ran a makepkg on that modified PKGBUILD and installed with sudo pacman -U.

Whoever decided to use the gog:// URI for source files created a world of headache for anyone attempting to use this package. Luckily, it's still less of a headache than trying to set up NWN for native linux without something like this.

cybrid commented on 2016-06-18 00:45

I've been trying to install this via yaourt.
I'm getting the following error:

==> Building and installing package
==> Making package: nwn-gog 2.0.0.15-4 (Fri Jun 17 19:42:26 CDT 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
==> ERROR: Unknown download protocol: gog
Aborting...
==> ERROR: Makepkg was unable to build nwn-gog.
==> Restart building nwn-gog ? [y/N]

I have installed lgogdownloader, but this doesn't seem to have helped.

abbradar commented on 2015-11-12 13:01

Hi, thanks you very much for this work! I have ported your package to Nix package manager: https://github.com/NixOS/nixpkgs/pull/10981. Some improvements you may want to take back:

1. https://github.com/abbradar/nixpkgs/commit/4280ca3c306d4db5b9ca3a0347c162887db764c4#diff-45aff6716b2938a16657fb52cbb27449R12 (-m option to avoid extracting tmp/)
2. https://github.com/abbradar/nixpkgs/commit/4280ca3c306d4db5b9ca3a0347c162887db764c4#diff-45aff6716b2938a16657fb52cbb27449R74 (bigger list of things to remove)
3. https://github.com/abbradar/nixpkgs/commit/4280ca3c306d4db5b9ca3a0347c162887db764c4#diff-b184132934e6bdd2abad00398ba25aabR20 (video scaling by default, overridable)