Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #uncomment the following line out if you aren't sure what packages are needed to run NWN+Kingmaker properly
- #su -c 'yum install wine wine-tools SDL'
- #change to homedir and make the folder for NWN to install into. then change to that so we may put content in it
- cd ~/
- mkdir 'Neverwinter Nights'
- cd ~/'Neverwinter Nights'
- #Extract the Linux/Game stuff from the DVD at /media/NW_DIAMOND
- unzip /media/NW_DIAMOND/Data_Shared.zip
- unzip /media/NW_DIAMOND/Data_linux.zip
- unzip -o /media/NW_DIAMOND/data/XP1.zip
- unzip -o /media/NW_DIAMOND/data/XP2.zip
- #COMMENT THIS OUT IF YOU DO NOT WANT KINGMAKER INSTALLED (no harm in having it, tho! you paid for it! (i hope)
- cp /media/NW_DIAMOND/KingmakerSetup.exe ~/Neverwinter\ Nights/KingmakerSetup.exe
- #download needed tarballs from the offical site
- wget http://nwdownloads.bioware.com/neverwinternights/linux/gold/nwclientgold.tar.gz
- wget http://nwdownloads.bioware.com/neverwinternights/linux/161/nwclienthotu.tar.gz
- wget http://files.bioware.com/neverwinternights/updates/linux/168/English_linuxclient168_xp2.tar.gz
- #extract what we just downloaded, in order
- tar zxfv ~/Neverwinter\ Nights/nwclientgold.tar.gz
- tar zxfv ~/Neverwinter\ Nights/nwclienthotu.tar.gz
- tar zxfv ~/Neverwinter\ Nights/English_linuxclient168_xp2.tar.gz
- #run fixinstall to make sure everything is installed properly
- ./fixinstall
- #set startup options/configure 'nwn' to execute from any directory, not just the current
- echo "#!/bin/sh
- # This script runs Neverwinter Nights from the current directory
- #export SDL_MOUSE_RELATIVE=0
- #export SDL_VIDEO_X11_DGAMOUSE=0
- # If you do not wish to use the SDL library included in the package, remove
- # ./lib from LD_LIBRARY_PATH
- #export LD_LIBRARY_PATH=./lib:./miles:\$LD_LIBRARY_PATH
- #./nwmain \$@
- # change to the nwn directory
- cd \$(dirname \$0)
- # set enviroment variables
- export SDL_MOUSE_RELATIVE=0
- export SDL_VIDEO_X11_DGAMOUSE=0
- export SDL_AUDIODRIVER=esd
- # set library search path
- export LD_LIBRARY_PATH=./miles:\$LD_LIBRARY_PATH
- # fire up the game
- ~/Neverwinter\ Nights/nwmain \$@" > ~/Neverwinter\ Nights/nwn
- #YOU NEED WINE FOR THIS!
- #make the n: drive
- ln -s $PWD $HOME/.wine/dosdevices/n\:
- #create a registry hack -- stupid Windows(TM)
- cat > ~/Neverwinter\ Nights/nwn.reg << EOF
- [HKEY_LOCAL_MACHINE\Software\BioWare\NWN\Neverwinter]
- "Location"="n:\\\"
- EOF
- #apply it
- regedit ~/Neverwinter\ Nights/nwn.reg
- #create a symbolic link for KingmakerSetup/WINE to behave -- obsolete
- #ln -s $NW_DIAMOND/KingmakerSetup.exe .
- #install
- wine ~/Neverwinter\ Nights/KingmakerSetup.exe
- #make symlink to /usr/local/bin so you can run it by typing 1 command
- #su -c 'ln -s ~/Neverwinter\ Nights/nwn /usr/local/bin/playnwn'
- #clean up
- rm -f KingmakerSetup.exe nwn.reg 'premium/uninst Neverwinter\ Nights(TM)\ Kingmaker.exe'
- #happy day msg
- echo 'Hopefully you can play by making a launcher and putting in the command "playnwn"
- enjoy,
- downhillgames
- irc.freenode.net/#Fedora'
- #quit the script, for good measure
- exit 0;
Advertisement
Add Comment
Please, Sign In to add comment