View previous topic :: View next topic |
Author |
Message |
avraht n00b
Joined: 13 May 2006 Posts: 10
|
Posted: Sun Jun 04, 2006 12:39 am Post subject: NeverWinter Nights Platinum? |
|
|
Okay, I'm rather confused on how to actually install and play Neverwinter Nights Platinum. I have ~x86 nwn emerged on my system, and my keycodes for all three games (NWN, SOU, HOTU) at my hands, awaiting play
So if anyone can help me get Neverwinter Nights Platinum working, it'd be great, thanks a ton. |
|
Back to top |
|
|
FictionPimp n00b
Joined: 24 Aug 2004 Posts: 43
|
Posted: Sun Jun 04, 2006 3:27 am Post subject: |
|
|
I've always used this script to install NWN instead of portage.
Code: | #!/bin/sh
# Neverwinter Nights installer
# Version: 1.3
# Written by Morgan Galpin
# Additional changes by Steve Ellis
# date: November 1, 2004
# updated by Steve Ellis: July 08, 2005
# (untested please let me know if it works or not)
# email: icarus.lnx@gmail.com
# original file name: install-nwn.sh
#---------------------------------------------------------------------
# This script installs Neverwinter Nights Platinum from the CDs.
# It also applies the current hotu patch, which can be obtained from
# the Bioware website. The orginal game plus both expansion packs
# are installed since that seems to be the point of buying the
# Platinum version.
#
# Instructions:
#
# Make sure you meet the few requirements below, set the
# configuration parameters, then at a shell prompt, type:
# ./install-nwn.sh
# Enter the CDs when asked to do so, and soon you will be enjoying
# Neverwinter Nights Platinum!
#
# Note:
# The files installed from the Platinum CDs and the files from the
# current hotu patch match those in Eyrdan's valid installation
# guide md5sums for common and both expansion packs (1 and 5),
# except for ./fixinstall. The one included with the Platinum CDs
# may be older, but they only differ by a few characters. It
# certainly won't break your install.
#--------------------------------------------------------------------
# Additional Notes by Steve Ellis:
# I replaced most of the static options with variables to better
# support various Linux distributions and enhancing the script
# so no manual editing of the script is required.
# The patch to be installed currently needs to be located in the
# installers home directory.
# Slight update to use convert to make the nwn.ico a nwn.xpm for
# used as a menu item
# Slight update to default to the 1.66 patch
# Currently this is mostly aimed at the English version, maybe
# in the future multi-language support will be added
#
# Special Thanks:
# Thanks to pineapple <pineapplecoward@yahoo.com> for suppliing the
# needed information for the DVD install
#---------------------------------------------------------------------
# Requirements:
#
# unshield: You must have this installed since some of the required
# files are in installshield .cab files. Type 'unshield -h'
# at your shell prompt to see if you have it installed.
# If you don't, you can get it from:
# http://synce.sourceforge.net/synce/unshield.php
# It's free and it does the job with less patch downloading.
# English_linuxclient166_xp2.tar.gz: The latest linux Hordes
# of the Underdark patch. Some of the files from the install
# CDs are not extracted since they would only be overwritten
# by the latest patch, so you need this. You can get it from:
# http://nwn.bioware.com/support/patch.html
# Client files: The DVD version requires the Client files as the DVD
# does not include the needed Linux files to run. This is only
# needed if you have the DVD, the Linux client files are included
# in the CD disks on Disk 3.
# The game cds: You need the cds. This script installs most of the
# files for the game from the cds.
#---------------------------------------------------------------------
# Configuration parameters:
# No trailing slashes (/) for directories.
# The cdrom drive mount point where each of the cds will be
# mounted one at a time.
# OPT_CDROM=/mnt/cdrom
# The destination directory where all the files will be extracted.
# You must have write access to this directory.
#OPT_INSTALL_DIR=/usr/local/games/nwn
# The current linux client from bioware's website (currently v1.29)
OPT_CLIENT=~/nwclient129.tar.gz
# The patch to apply after the install is done. Some of the
# required files are only found in the patch.
#OPT_PATCH=./linuxhotuclientupdate1xxto165eng.tar.gz
# Whether or not to use the mount command. Some systems automatically
# mount a cdrom drive when a cd is inserted. If your system does this,
# then this should be set to 0. If you have to manually mount cds
# with the mount command, set this to 1. You might have to run the
# script as root to use the mount command.
OPT_USE_MOUNT_COMMAND=0
# The username and group to make the owner of all the files.
# If this is other than your own, then the script will have to
# be run as root. If you've opted to OPT_USE_MOUNT_COMMAND, then
# likely you *are* running the script as root and you will want
# to set these options to the user and group that you will play
# the game as.
# OPT_USERNAME=root
OPT_USERNAME=`whoami`
#OPT_GROUPNAME=root
#OPT_GROUPNAME=users
# Whether to install from 4 cds or from the dvd.
OPT_CD_OR_DVD=DVD
# End of configuration. Run the script!
#---------------------------------------------------------------------
# Prompt the user and wait for Enter to be pressed. Any input
# is ignored.
# Paramters:
# $1: The text to use for a prompt.
give_prompt() {
echo -e "\033[31m$1Press Enter to continue.\033[0m"
read $ENTER
return 0
}
# Get user inputed variables
get_input_vars(){
echo -e "\033[32mTesting for unshield\033[0m"
unshield_test=`whereis unshield|awk -F: '{ print $2 }'`
if [ -z "$unshield_test" ];
then
echo -e "\033[31munshield not found!\033[0m"
echo -e "unshield can be downloaded from http://synce.sourceforge.net/synce/unshield.php"
echo -e "Try again after installing"
exit 0
else
echo -e "\033[33munshield found, using $unshield_test\033[0m"
fi
echo -n "Will the install be using the CD version or DVD version? (CD/dvd): "
read ready
if [ -z "$ready" ];
then
OPT_CD_OR_DVD=CD
else
case $ready in
cd|CD|cD|Cd)
OPT_CD_OR_DVD=CD
;;
dvd|DVD|dVd|DvD|Dvd|dVD|DVd|dvD)
OPT_CD_OR_DVD=DVD
;;
*)
echo -e "\033[32mPlease use a cd/dvd variant\033[0m"
exit 0
;;
esac
fi
echo -e "\033[33mInstall will use the $OPT_CD_OR_DVD version to install\033[0m"
if [ $OPT_CD_OR_DVD = DVD ]; then
CLIENT_TEST=`ls $OPT_CLIENT`
if [ -z $CLIENT_TEST ];
then
echo -e "\033[31mClient file not found! Please check that the patch is in your home directory.\033[0m"
echo -en "\033[33mDo you wish to try to download the client? (y/n): \033[0m"
read client
case $client in
y|Y|yes|Yes|YES)
wget http://nwdownloads.bioware.com/neverwinternights/linux/129/nwclient129.tar.gz
;;
n|N|no|No|NO)
echo -e "\033[32mFailing on the client install, the game will not run without the client files\033[0m"
echo -e "\033[31mYou can download the client from www.bioware.comhttp://nwn.bioware.com/downloads/linuxclient.html"
exit 0
;;
*)
echo -e "\033[32mPlease use a yes/no variant\033[0m"
;;
esac
else
echo -e "\033[33mThe client to be installed is $OPT_CLIENT\033[0m"
fi
fi
echo -n "Enter the cdrom path (/mnt/cdrom): "
read ready
if [ -z "$ready" ];
then
OPT_CDROM=/mnt/cdrom
else
OPT_CDROM=$ready
fi
CD_TEST=`grep $OPT_CDROM /etc/fstab|wc -l`
if [ "$CD_TEST" -lt 1 ];
then
echo -e "\033[31mINVALID DEVICE! Please check the device and try again\033[0m"
exit 0
else
echo -e "\033[33mcdrom drive is set for $OPT_CDROM\033[0m"
fi
echo -n "Enter the install directory (/usr/local/games/nwn): "
read ready
if [ -z "$ready" ];
then
OPT_INSTALL_DIR=/usr/local/games/nwn
else
OPT_INSTALL_DIR=$ready
fi
echo -e "\033[33mNeverwinter Nights will install to $OPT_INSTALL_DIR\033[0m"
# Setup/get patch
echo -n "Enter the current patch version that is located in the users home directory (166): "
read ready
if [ -z "$ready" ];
then
OPT_PATCHNUM=166
else
OPT_PATCHNUM=$ready
fi
if [ $OPT_PATCHNUM -eq 166 ]; then
OPT_PATCH=~/English_linuxclient166_xp2.tar.gz
else
OPT_PATCH=~/linuxhotuclientupdate1xxto$OPT_PATCHNUM.tar.gz
fi
PATCH_TEST=`ls $OPT_PATCH`
if [ -z $PATCH_TEST ];
then
echo -e "\033[31mPatch Not Found! Please check that the patch is in your home directory\033[0m"
echo -en "\033[33mDo you wish to try to download this patch? (y/n): \033[0m"
read patch
case $patch in
y|Y|yes|Yes|YES)
PATCH_VER=`echo $OPT_PATCHNUM|cut -c1-3`
PATCH_LAN=`echo $OPT_PATCHNUM|cut -c4-6`
echo "-$PATCH_VER-"
case $PATCH_VER in
164)
wget http://nwdownloads.bioware.com/neverwinternights/linux/164/linuxhotuclientupdate1xxto$OPT_PATCHNUM.tar.gz
;;
165)
wget http://content.bioware.com/neverwinternights/linux/165/linuxhotuclientupdate1xxto165$PATCH_LAN.tar.gz
;;
166)
wget http://content.bioware.com/neverwinternights/linux/166/English_linuxclient166_xp2.tar.gz
;;
*)
echo -e "\033[32mPatch not needed for versions older then 1.64\033[0m"
;;
esac
;;
n|N|no|No|NO)
echo -e "\033[32mSkipping patch, there WILL be errors at the end of the install\033[0m"
;;
*)
echo -e "\033[32mPlease use a yes/no variant\033[0m"
;;
esac
else
echo -e "\033[33mThe patch to be installed is $OPT_PATCH\033[0m"
fi
echo -n "Do you wish for the script to mount the CD (Y/n): "
read ready
if [ -z "$ready" ];
then
OPT_USE_MOUNT_COMMAND=1
else
case $ready in
y|Y|yes|Yes|YES)
OPT_USE_MOUNT_COMMAND=1
;;
n|N|no|No|NO)
OPT_USE_MOUNT_COMMAND=0
;;
*)
echo -e "\033[32mPlease use a yes/no variant\033[0m"
exit 0
;;
esac
fi
echo -e "\033[33mThe CD setting for mounting is $OPT_USE_MOUNT_COMMAND\033[0m"
echo ""
echo -e "\033[33mThe game will be installed as user '$OPT_USERNAME'\033[0m"
echo -n "What Group should the game be installed as (users): "
read ready
if [ -z "$ready" ];
then
OPT_GROUPNAME=users
else
OPT_GROUPNAME=$ready
fi
GROUP_TEST=`awk -F: '{ print $1 }' /etc/group|grep $OPT_GROUPNAME`
if [ -z "$GROUP_TEST" ];
then
echo -e "\033[31mInvalid Group name\033[0m"
exit 0
else
echo -e "\033[33mThe group is set to $OPT_GROUPNAME\033[0m"
fi
}
# Get all desired zip files from a disk:
# Parameters:
# $1: The disk number, ie. 1, 2, 3, or 4.
# $@: The list of files to get, eg. "disk4" "xp1" "xp1_data"
get_zips_on_disk() {
disk_num="$1"
shift
give_prompt "Please insert Neverwinter Nights disk \033[32m$disk_num\033[0m \033[31min\033[0m \033[33m$OPT_CDROM\033[0m\n"
if [ $OPT_USE_MOUNT_COMMAND -eq 1 ]; then
mount $OPT_CDROM
fi
for file in $@
do
filename="$OPT_CDROM/$file.zip"
while [ ! -r "$filename" ]; do
give_prompt "Cannot read \"$filename\".\033[0m\nPlease check that disk \033[32m$disk_num\033[0m is in \033[33m$OPT_CDROM\033[0m\n"
done
unzip -o "$filename"
done
return 0
}
get_zips_on_dvd(){
give_prompt "Please insert Neverwinter Nights Platinum \033[32mDVD\033[0m \033[31min\033[0m \033[33m$OPT_CDROM\033[0m\n"
if [ $OPT_USE_MOUNT_COMMAND -eq 1 ]; then
mount $OPT_CDROM
fi
for file in $@
do
filename="$OPT_CDROM/$file.zip"
while [ ! -r "$filename" ]; do
give_prompt "Cannot read \"$filename\".\033[0m\nPlease check that disk \033[32m$disk_num\033[0m is in \033[33m$OPT_CDROM\033[0m\n"
done
unzip -o "$filename"
done
return 0
}
# Unmount the cd only if that's what the user wants.
do_umount()
{
if [ $OPT_USE_MOUNT_COMMAND -eq 1 ]; then
eject $OPT_CDROM
fi
return 0
}
# Same as get_zips_on_disk(), but unmounts the cdrom afterwards.
get_zips_on_disk_umount() {
get_zips_on_disk $@
do_umount
return 0
}
# Conditionally create a directory.
# Parameters:
# $1: The name of the directory to create.
make_dir() {
if [ -d "$1" ]; then
if [ ! -w "$1" ]; then
echo "You do not have write permission for $1!" 1>&2
return 1
else
return 0
fi
else
if ( mkdir "$1"); then
return 0
else
echo "Unable to create $1!" 1>&2
return 1
fi
fi
}
# Create a directory and enter it.
# Parameters:
# $1: The name of the directory to create and enter.
make_and_enter() {
if ( make_dir "$1" ); then
cd "$1"
return 0
else
return 1
fi
}
# Get variables from user input
get_input_vars
# Make the destination directory:
make_and_enter "$OPT_INSTALL_DIR" || exit 1
# Unpack all the needed zip files.
if [ $OPT_CD_OR_DVD = CD ]; then
get_zips_on_disk_umount 2 "disk2"
get_zips_on_disk_umount 3 "disk3" "language_data" "Data_Linux"
get_zips_on_disk_umount 4 "disk4" "xp1" "xp1_data"
get_zips_on_disk 1 "Data_Shared" "Language_data"
else
get_zips_on_dvd "Data_Shared" "Language_data" "Language_update"
fi
# Get some files from the cab files.
make_and_enter unshielded_files
unshield x $OPT_CDROM/data1.hdr
make_dir ../nwm/
mv -f NWN_Platinum/nwm/* ../nwm/
make_dir ../docs/
mv -f NWN_Platinum/docs/* ../docs/
make_dir ../modules/
mv -f NWN_Platinum/modules/* ../modules/
cd ..
rm -rf unshielded_files
cp $OPT_CDROM/nwn.ico $OPT_INSTALL_DIR/nwn.ico
do_umount
# Install linux binaries if DVD version is selected (currently v1.29)
if [ $OPT_CD_OR_DVD = DVD ]; then
echo Extracting $OPT_CLIENT
tar -xvzf $OPT_CLIENT
fi
# Apply the current patch.
rm -rf override # Not needed, but for good measure.
echo Extracting $OPT_PATCH ...
tar -xvzf $OPT_PATCH
# Fix any files that need fixin'.
# Should not be needed with the 1.66 patch
mv ./texturepacks/xp2_gui.erf ./texturepacks/XP2_GUI.erf
chown -R $OPT_USERNAME:$OPT_GROUPNAME *
./fixinstall
# Give final instructions.
echo "Add \"cd $OPT_INSTALL_DIR\" to \"$OPT_INSTALL_DIR/nwn\" to be able to run Neverwinter Nights from anywhere. You may also want to add a symbolic link to it from a bin directory, or somewhere else in your PATH."
echo "Enjoy!"
echo -e "\033[32mTesting for ImageMagick convert\033[0m"
convert_test=`whereis convert|awk -F: '{ print $2 }'`
if [ -z "$convert_test" ];
then
echo -e "\033[31mconvert not found!\033[0m"
echo -e "convert is a part of the Image Magick tools, used here to make the nwn.iso a Linux friendly nwn.xps"
echo -e "Skipping image conversion"
else
echo -e "\033[33mMaking nwn.xpm\033[0m"
convert nwn.ico nwn.xpm
fi
exit 0 |
|
|
Back to top |
|
|
avraht n00b
Joined: 13 May 2006 Posts: 10
|
Posted: Sun Jun 04, 2006 6:59 pm Post subject: |
|
|
I have everything set up right, but I insert the CD and hit enter and it tells me that the CD isn't in /mnt/cdrom
My /etc/fstab says that's where it should be (/mnt/cdrom / /dev/cdroms/cdrom0)
Any idea how to get it into /mnt/cdrom or how to figure out where the CD is loaded to? |
|
Back to top |
|
|
ArneHB n00b
Joined: 14 Sep 2004 Posts: 16
|
Posted: Sun Jun 04, 2006 9:38 pm Post subject: |
|
|
What I did was to use my windows installation to get the game resources (by mounting up my NTFS partition, and copy them from it), but I belive you can aswell "emerge nwn-data" to get them.. Choose either of them, depending on what you have aviable, you need these these files:
Quote: | ambient/*
data/*
dmvault/*
hak/*
localvault/*
modules/*
music/*
nwm/*
override/*
portraits/*
saves/*
servervault/*
texturepacks/*
chitin.key
patch.key
dialog.tlk
dialogF.tlk (French, German, Italian, and Spanish) |
(from: http://nwn.bioware.com/downloads/linuxclient.html )
You can also read there how to install from NWN gold, which shouldn't be to different from the platinium edition: http://nwn.bioware.com/downloads/linuxclient.html#nwngoldinstall
There are probably couple of other files you need too (like xp1.key, xp2.key), since if you use the emerge function, will it install NWN without any expansions. I would guess (I havn't got the platinium edition so I don't know), have a look trough any zip files on your platinium CD and unzip and override them over any exististing iles in your NWN folder (default /opt/nwn)..
Update your NWN here: http://nwn.bioware.com/support/patch_linuxhotu167.html and you should be ready to play online.. |
|
Back to top |
|
|
avraht n00b
Joined: 13 May 2006 Posts: 10
|
Posted: Mon Jun 05, 2006 3:26 pm Post subject: |
|
|
I'd love to use FictionPimp's script that he posted but I can't figure out where my CD's are loaded to (I guess it's not /mnt/cdrom), any ideas of how to figure that out or change it?
My /etc/fstab says it's using /dev/cdroms/cdrom0 and /mnt/cdrom for my CDs but the script says I'm not.. |
|
Back to top |
|
|
ArneHB n00b
Joined: 14 Sep 2004 Posts: 16
|
Posted: Tue Jun 06, 2006 1:40 am Post subject: |
|
|
You should be able to acsess your cd, where you mounted your CD rom.. try "ls /mnt/cdrom", if you can't see anything there is there prob something wrong with the mounting, either your cdrom can't be found, or something wrong with the mounting.
Google is your best friend, one of the first hits I got when I searched on cdrom mount howto
http://www.faqs.org/docs/Linux-HOWTO/CDROM-HOWTO.html#AEN980
Says:
Quote: | To mount a CD-ROM, insert a disc in the drive, and run the mount command as root (this assumes you created a symbolic link to your device file as recommended above and that an empty directory /mnt/cdrom exists):
Code: | # mount -t iso9660 -r /dev/cdrom /mnt/cdrom |
The CD can now be accessed under the directory /mnt/cdrom.
There are other options to the mount command that you may wish to use; see the mount( man page for details.
You can add an entry to /etc/fstab to automatically mount a CD-ROM when Linux boots or to specify parameters to use when it is mounted; see the fstab(5) man page.
Note that to play audio CDs you should not try to mount them.
To unmount a CD-ROM, use the umount command as root:
Code: | # umount /mnt/cdrom |
The disc can only be unmounted if no processes are currently accessing the drive (including having their default directory set to the mounted drive). You can then eject the disc. Most drives have an eject button; there is also a standalone eject program that allows ejecting CD-ROMs under software control.
Note that you should not eject a disc while it is mounted (this may or may not be possible depending on the type of drive). Some CD-ROM drivers can automatically eject a CD-ROM when it is unmounted and insert the CD tray when a disc is mounted (you can turn this feature off when compiling the kernel or by using a software command).
Its possible that after playing an audio CD you may not be able to mount a CD-ROM. You need to send a CD audio "stop" command (using a CD player program) before trying the mount. This problem only appears to occur with the SBPCD driver.
Recent kernels support a kernel-based automounter which provides transparent mounting of removable media including CD-ROM. You can find the tools needed to use it at ftp://ftp.kernel.org/pub/linux/daemons/autofs/. |
Hope that helps you.. |
|
Back to top |
|
|
avraht n00b
Joined: 13 May 2006 Posts: 10
|
Posted: Tue Jun 06, 2006 4:02 am Post subject: |
|
|
Okay, I have it all installed okay(via the script posted above), but I can't figure out for the life of me how to actually start the game.. |
|
Back to top |
|
|
ArneHB n00b
Joined: 14 Sep 2004 Posts: 16
|
Posted: Tue Jun 06, 2006 11:09 am Post subject: |
|
|
I don't know how that script works, but my guess is that you have a windows installation on your computer now. So you'll have to download the linux client and such: http://nwn.bioware.com/downloads/linuxclient.html |
|
Back to top |
|
|
ChristyMcJesus Apprentice
Joined: 02 Oct 2004 Posts: 184
|
Posted: Tue Jun 06, 2006 11:22 am Post subject: |
|
|
The ebuild has always worked fine for me. |
|
Back to top |
|
|
avraht n00b
Joined: 13 May 2006 Posts: 10
|
Posted: Tue Jun 06, 2006 5:11 pm Post subject: |
|
|
Okay, I actually redid the installation, following the exact post on http://nwn.bioware.com/forums/viewtopic.html?topic=391386&forum=72&sp=0 and did everything as it told me, but when I try and run ./nwn (with the disk 1 in and mounted) it just says "Error" waits a little while, then heads back to my prompt..
Any ideas how to fix this? I'd ask on the topic on Bioware but it's locked.. |
|
Back to top |
|
|
avraht n00b
Joined: 13 May 2006 Posts: 10
|
Posted: Tue Jun 06, 2006 9:02 pm Post subject: |
|
|
ChristyMcJesus wrote: | The ebuild has always worked fine for me. |
Okay, but what exactly did you emerge, and after the emerging was done, what'd you do to set everything up/run the game? |
|
Back to top |
|
|
ChristyMcJesus Apprentice
Joined: 02 Oct 2004 Posts: 184
|
Posted: Wed Jun 07, 2006 8:07 am Post subject: |
|
|
avraht wrote: | ChristyMcJesus wrote: | The ebuild has always worked fine for me. |
Okay, but what exactly did you emerge, and after the emerging was done, what'd you do to set everything up/run the game? |
Code: | # USE="nowin" emerge nwn |
and to run:
I've also had success using the tuxgames NWN installer to get the data off the CD, then emerging nwn to get a working install without having to download a massive data pack. |
|
Back to top |
|
|
ArneHB n00b
Joined: 14 Sep 2004 Posts: 16
|
|
Back to top |
|
|
FictionPimp n00b
Joined: 24 Aug 2004 Posts: 43
|
Posted: Thu Jun 08, 2006 6:10 pm Post subject: |
|
|
If you used the script I posted, just go into the folder the game was installed with and do ./nwn
The game should launch. |
|
Back to top |
|
|
tsuujin n00b
Joined: 14 Jun 2006 Posts: 12
|
Posted: Wed Jun 14, 2006 2:34 pm Post subject: |
|
|
One thing to remember: nwn will not run if you do not run it from the nwn directory (if you install it via the instructions on their website).
ie:
Code: |
/games/nwn/nwn # will not work.. but
cd /games/nwn
./nwn # will work.
|
|
|
Back to top |
|
|
FictionPimp n00b
Joined: 24 Aug 2004 Posts: 43
|
Posted: Tue Jun 20, 2006 3:26 am Post subject: |
|
|
tsuujin wrote: | One thing to remember: nwn will not run if you do not run it from the nwn directory (if you install it via the instructions on their website).
ie:
Code: |
/games/nwn/nwn # will not work.. but
cd /games/nwn
./nwn # will work.
|
|
if you edit the nwn file and add cd /games/nwn/ to the script it will work even outside of the nwn directory.
I just did a new install of NWN Plat on my box.
This is the script I used and the instructions I followed.
First I downloaded these files and placed them in my home directory
English_linuxclient167_xp1.tar.gz - this is needed because contrary to instructions on the bioware website, xp2 patch does not have the updated SOU modules.
English_linuxclient167_xp2.tar.gz
nwnclient129.tar.tgz
I also placed the script I am about to post in this folder and named it install-nwn.sh and I did a chmod u+x to it.
I decided that I would not install this as root, but install it into my home directory for ease of use. So I made this path
/home/user/programs/games/
Next the script below needs a few apps to work.
emerge -vat unshield
emerge -vat imagemagick
Next I opened up a terminal and ran the install-nwn.sh.
Answer the questions, it should autofind the the patch and client. You should need to tell it path to install (user must have permissions), group to install as, If it is a CD or a DVD, and if you want it to mount the CD/DVD (gnome 2.14 automount users say NO).
After this is finished you will want to edit the nwn file found in your install (my path was /home/user/programs/games/nwn/nwn
It should look like this when you are done.
Code: |
#!/bin/sh
# This script runs Neverwinter Nights from the current directory
cd /home/user/programs/games/nwn
# Replace user with your actual home folder.
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 $@
|
This is required if you want to run nwn from a folder outside of the install folder (such as /usr/local/bin)
Some dual core users will have problems with NWN. There is a fix on nwn.bioware.com forums. But I did not have this problem on my computer (which is a dual core AMD64 X2 4400)
All you need to do now is put a link in your gnome menu, or if you are me, just cd to the nwn install folder and type ./nwn
There is one last thing you have to do. For some reason the bioware 1.67 patch does not update the SoU module (even though there are patches for it). So find that patch you downloaded (English_linuxclient167_xp1.tar.gz) and extract from it these files
XP1-Chapter 1.nwn
XP1-Chapter 2.nwn
XP1-Interlude.nwn
Place these in the nwm folder inside your install path (mine was /home/user/programs/games/nwn/nwm). This will overwrite the old files and update SoU to the current version.
Here is the code for install-nwn.sh, slightly modifed to work with gnome 2.14 (I disabled the fstab check for the DVD/CD path).
Code: |
#!/bin/sh
# Neverwinter Nights installer
# Version: 1.3-R1
# Written by Morgan Galpin
# Additional changes by Steve Ellis
# Updated for 1.67 by Don Magee (FictionPimp)
# date: November 1, 2004
# updated by Steve Ellis: July 08, 2005
# (untested please let me know if it works or not)
# email: icarus.lnx@gmail.com
# Updated by Don Magee :June 18, 2006 (worked on my machine ~x86 with nvidia 7900GT using Xorg 7.1
# original file name: install-nwn.sh
#---------------------------------------------------------------------
# This script installs Neverwinter Nights Platinum from the CDs.
# It also applies the current hotu patch, which can be obtained from
# the Bioware website. The orginal game plus both expansion packs
# are installed since that seems to be the point of buying the
# Platinum version.
#
# Instructions:
#
# Make sure you meet the few requirements below, set the
# configuration parameters, then at a shell prompt, type:
# ./install-nwn.sh
# Enter the CDs when asked to do so, and soon you will be enjoying
# Neverwinter Nights Platinum!
#
# Note:
# The files installed from the Platinum CDs and the files from the
# current hotu patch match those in Eyrdan's valid installation
# guide md5sums for common and both expansion packs (1 and 5),
# except for ./fixinstall. The one included with the Platinum CDs
# may be older, but they only differ by a few characters. It
# certainly won't break your install.
#--------------------------------------------------------------------
# Additional Notes by Steve Ellis:
# I replaced most of the static options with variables to better
# support various Linux distributions and enhancing the script
# so no manual editing of the script is required.
# The patch to be installed currently needs to be located in the
# installers home directory.
# Slight update to use convert to make the nwn.ico a nwn.xpm for
# used as a menu item
# Slight update to default to the 1.66 patch
# Currently this is mostly aimed at the English version, maybe
# in the future multi-language support will be added
#
# Special Thanks:
# Thanks to pineapple <pineapplecoward@yahoo.com> for suppliing the
# needed information for the DVD install
#---------------------------------------------------------------------
# Requirements:
#
# unshield: You must have this installed since some of the required
# files are in installshield .cab files. Type 'unshield -h'
# at your shell prompt to see if you have it installed.
# If you don't, you can get it from:
# http://synce.sourceforge.net/synce/unshield.php
# It's free and it does the job with less patch downloading.
# English_linuxclient167_xp2.tar.gz: The latest linux Hordes
# of the Underdark patch. Some of the files from the install
# CDs are not extracted since they would only be overwritten
# by the latest patch, so you need this. You can get it from:
# http://nwn.bioware.com/support/patch.html
# Client files: The DVD version requires the Client files as the DVD
# does not include the needed Linux files to run. This is only
# needed if you have the DVD, the Linux client files are included
# in the CD disks on Disk 3.
# The game cds: You need the cds. This script installs most of the
# files for the game from the cds.
#---------------------------------------------------------------------
# Configuration parameters:
# You do not need to change this, these settings can be modifed at runtime.
# You only need to modify OPT_CLIENT if the client is not in your home directory.
# No trailing slashes (/) for directories.
# The cdrom drive mount point where each of the cds will be
# mounted one at a time.
#OPT_CDROM=/mnt/cdrom
# The destination directory where all the files will be extracted.
# You must have write access to this directory.
#OPT_INSTALL_DIR=/usr/local/games/nwn
# The current linux client from bioware's website (currently v1.29)
OPT_CLIENT=~/nwclient129.tar.gz
# The patch to apply after the install is done. Some of the
# required files are only found in the patch.
#OPT_PATCH=./linuxhotuclientupdate1xxto165eng.tar.gz
# Whether or not to use the mount command. Some systems automatically
# mount a cdrom drive when a cd is inserted. If your system does this,
# then this should be set to 0. If you have to manually mount cds
# with the mount command, set this to 1. You might have to run the
# script as root to use the mount command.
#OPT_USE_MOUNT_COMMAND=1
# The username and group to make the owner of all the files.
# If this is other than your own, then the script will have to
# be run as root. If you've opted to OPT_USE_MOUNT_COMMAND, then
# likely you *are* running the script as root and you will want
# to set these options to the user and group that you will play
# the game as.
# OPT_USERNAME=root
OPT_USERNAME=`whoami`
#OPT_GROUPNAME=root
#OPT_GROUPNAME=users
# Whether to install from 4 cds or from the dvd.
#OPT_CD_OR_DVD=CD
# End of configuration. Run the script!
#---------------------------------------------------------------------
# Prompt the user and wait for Enter to be pressed. Any input
# is ignored.
# Paramters:
# $1: The text to use for a prompt.
give_prompt() {
echo -e "\033[31m$1Press Enter to continue.\033[0m"
read $ENTER
return 0
}
# Get user inputed variables
get_input_vars(){
echo -e "\033[32mTesting for unshield\033[0m"
unshield_test=`whereis unshield|awk -F: '{ print $2 }'`
if [ -z "$unshield_test" ];
then
echo -e "\033[31munshield not found!\033[0m"
echo -e "unshield can be downloaded from http://synce.sourceforge.net/synce/unshield.php"
echo -e "Try again after installing"
exit 0
else
echo -e "\033[33munshield found, using $unshield_test\033[0m"
fi
echo -n "Will the install be using the CD version or DVD version? (CD/dvd): "
read ready
if [ -z "$ready" ];
then
OPT_CD_OR_DVD=CD
else
case $ready in
cd|CD|cD|Cd)
OPT_CD_OR_DVD=CD
;;
dvd|DVD|dVd|DvD|Dvd|dVD|DVd|dvD)
OPT_CD_OR_DVD=DVD
;;
*)
echo -e "\033[32mPlease use a cd/dvd variant\033[0m"
exit 0
;;
esac
fi
echo -e "\033[33mInstall will use the $OPT_CD_OR_DVD version to install\033[0m"
if [ $OPT_CD_OR_DVD = DVD ]; then
CLIENT_TEST=`ls $OPT_CLIENT`
if [ -z $CLIENT_TEST ];
then
echo -e "\033[31mClient file not found! Please check that the patch is in your home directory.\033[0m"
echo -en "\033[33mDo you wish to try to download the client? (y/n): \033[0m"
read client
case $client in
y|Y|yes|Yes|YES)
wget http://nwdownloads.bioware.com/neverwinternights/linux/129/nwclient129.tar.gz
;;
n|N|no|No|NO)
echo -e "\033[32mFailing on the client install, the game will not run without the client files\033[0m"
echo -e "\033[31mYou can download the client from www.bioware.comhttp://nwn.bioware.com/downloads/linuxclient.html"
exit 0
;;
*)
echo -e "\033[32mPlease use a yes/no variant\033[0m"
;;
esac
else
echo -e "\033[33mThe client to be installed is $OPT_CLIENT\033[0m"
fi
fi
echo -n "Enter the cdrom path (/mnt/cdrom): "
read ready
if [ -z "$ready" ];
then
OPT_CDROM=/mnt/cdrom
else
OPT_CDROM=$ready
fi
# This CD test is commented out because it caused problems with gnome 2.14 automout.
# Gnome 2.14 automount will not work with CD/DVD entrys in fstab
# CD_TEST=`grep $OPT_CDROM /etc/fstab|wc -l`
# if [ "$CD_TEST" -lt 1 ];
# then
# echo -e "\033[31mINVALID DEVICE! Please check the device and try again\033[0m"
# exit 0
# else
echo -e "\033[33mcdrom drive is set for $OPT_CDROM\033[0m"
# fi
echo -n "Enter the install directory (/usr/local/games/nwn): "
read ready
if [ -z "$ready" ];
then
OPT_INSTALL_DIR=/usr/local/games/nwn
else
OPT_INSTALL_DIR=$ready
fi
echo -e "\033[33mNeverwinter Nights will install to $OPT_INSTALL_DIR\033[0m"
# Setup/get patch
echo -n "Enter the current patch version that is located in the users home directory (166): "
read ready
if [ -z "$ready" ];
then
OPT_PATCHNUM=167
else
OPT_PATCHNUM=$ready
fi
if [ $OPT_PATCHNUM -eq 167 ]; then
OPT_PATCH=~/English_linuxclient167_xp2.tar.gz
else
OPT_PATCH=~/linuxhotuclientupdate1xxto$OPT_PATCHNUM.tar.gz
fi
PATCH_TEST=`ls $OPT_PATCH`
if [ -z $PATCH_TEST ];
then
echo -e "\033[31mPatch Not Found! Please check that the patch is in your home directory\033[0m"
echo -en "\033[33mDo you wish to try to download this patch? (y/n): \033[0m"
read patch
case $patch in
y|Y|yes|Yes|YES)
PATCH_VER=`echo $OPT_PATCHNUM|cut -c1-3`
PATCH_LAN=`echo $OPT_PATCHNUM|cut -c4-6`
echo "-$PATCH_VER-"
case $PATCH_VER in
164)
wget http://nwdownloads.bioware.com/neverwinternights/linux/164/linuxhotuclientupdate1xxto$OPT_PATCHNUM.tar.gz
;;
165)
wget http://content.bioware.com/neverwinternights/linux/165/linuxhotuclientupdate1xxto165$PATCH_LAN.tar.gz
;;
166)
wget http://content.bioware.com/neverwinternights/linux/166/English_linuxclient167_xp2.tar.gz
;;
*)
echo -e "\033[32mPatch not needed for versions older then 1.64\033[0m"
;;
esac
;;
n|N|no|No|NO)
echo -e "\033[32mSkipping patch, there WILL be errors at the end of the install\033[0m"
;;
*)
echo -e "\033[32mPlease use a yes/no variant\033[0m"
;;
esac
else
echo -e "\033[33mThe patch to be installed is $OPT_PATCH\033[0m"
fi
echo -n "Do you wish for the script to mount the CD (Y/n): "
read ready
if [ -z "$ready" ];
then
OPT_USE_MOUNT_COMMAND=1
else
case $ready in
y|Y|yes|Yes|YES)
OPT_USE_MOUNT_COMMAND=1
;;
n|N|no|No|NO)
OPT_USE_MOUNT_COMMAND=0
;;
*)
echo -e "\033[32mPlease use a yes/no variant\033[0m"
exit 0
;;
esac
fi
echo -e "\033[33mThe CD setting for mounting is $OPT_USE_MOUNT_COMMAND\033[0m"
echo ""
echo -e "\033[33mThe game will be installed as user '$OPT_USERNAME'\033[0m"
echo -n "What Group should the game be installed as (users): "
read ready
if [ -z "$ready" ];
then
OPT_GROUPNAME=users
else
OPT_GROUPNAME=$ready
fi
GROUP_TEST=`awk -F: '{ print $1 }' /etc/group|grep $OPT_GROUPNAME`
if [ -z "$GROUP_TEST" ];
then
echo -e "\033[31mInvalid Group name\033[0m"
exit 0
else
echo -e "\033[33mThe group is set to $OPT_GROUPNAME\033[0m"
fi
}
# Get all desired zip files from a disk:
# Parameters:
# $1: The disk number, ie. 1, 2, 3, or 4.
# $@: The list of files to get, eg. "disk4" "xp1" "xp1_data"
get_zips_on_disk() {
disk_num="$1"
shift
give_prompt "Please insert Neverwinter Nights disk \033[32m$disk_num\033[0m \033[31min\033[0m \033[33m$OPT_CDROM\033[0m\n"
if [ $OPT_USE_MOUNT_COMMAND -eq 1 ]; then
mount $OPT_CDROM
fi
for file in $@
do
filename="$OPT_CDROM/$file.zip"
while [ ! -r "$filename" ]; do
give_prompt "Cannot read \"$filename\".\033[0m\nPlease check that disk \033[32m$disk_num\033[0m is in \033[33m$OPT_CDROM\033[0m\n"
done
unzip -o "$filename"
done
return 0
}
get_zips_on_dvd(){
give_prompt "Please insert Neverwinter Nights Platinum \033[32mDVD\033[0m \033[31min\033[0m \033[33m$OPT_CDROM\033[0m\n"
if [ $OPT_USE_MOUNT_COMMAND -eq 1 ]; then
mount $OPT_CDROM
fi
for file in $@
do
filename="$OPT_CDROM/$file.zip"
while [ ! -r "$filename" ]; do
give_prompt "Cannot read \"$filename\".\033[0m\nPlease check that disk \033[32m$disk_num\033[0m is in \033[33m$OPT_CDROM\033[0m\n"
done
unzip -o "$filename"
done
return 0
}
# Unmount the cd only if that's what the user wants.
do_umount()
{
if [ $OPT_USE_MOUNT_COMMAND -eq 1 ]; then
eject $OPT_CDROM
fi
return 0
}
# Same as get_zips_on_disk(), but unmounts the cdrom afterwards.
get_zips_on_disk_umount() {
get_zips_on_disk $@
do_umount
return 0
}
# Conditionally create a directory.
# Parameters:
# $1: The name of the directory to create.
make_dir() {
if [ -d "$1" ]; then
if [ ! -w "$1" ]; then
echo "You do not have write permission for $1!" 1>&2
return 1
else
return 0
fi
else
if ( mkdir "$1"); then
return 0
else
echo "Unable to create $1!" 1>&2
return 1
fi
fi
}
# Create a directory and enter it.
# Parameters:
# $1: The name of the directory to create and enter.
make_and_enter() {
if ( make_dir "$1" ); then
cd "$1"
return 0
else
return 1
fi
}
# Get variables from user input
get_input_vars
# Make the destination directory:
make_and_enter "$OPT_INSTALL_DIR" || exit 1
# Unpack all the needed zip files.
if [ $OPT_CD_OR_DVD = CD ]; then
get_zips_on_disk_umount 2 "disk2"
get_zips_on_disk_umount 3 "disk3" "language_data" "Data_Linux"
get_zips_on_disk_umount 4 "disk4" "xp1" "xp1_data"
get_zips_on_disk 1 "Data_Shared" "Language_data"
else
get_zips_on_dvd "Data_Shared" "Language_data" "Language_update"
fi
# Get some files from the cab files.
make_and_enter unshielded_files
unshield x $OPT_CDROM/data1.hdr
make_dir ../nwm/
mv -f NWN_Platinum/nwm/* ../nwm/
make_dir ../docs/
mv -f NWN_Platinum/docs/* ../docs/
make_dir ../modules/
mv -f NWN_Platinum/modules/* ../modules/
cd ..
rm -rf unshielded_files
cp $OPT_CDROM/nwn.ico $OPT_INSTALL_DIR/nwn.ico
do_umount
# Install linux binaries if DVD version is selected (currently v1.29)
if [ $OPT_CD_OR_DVD = DVD ]; then
echo Extracting $OPT_CLIENT
tar -xvzf $OPT_CLIENT
fi
# Apply the current patch.
rm -rf override # Not needed, but for good measure.
echo Extracting $OPT_PATCH ...
tar -xvzf $OPT_PATCH
# Fix any files that need fixin'.
# Should not be needed with the 1.66 patch
mv ./texturepacks/xp2_gui.erf ./texturepacks/XP2_GUI.erf
chown -R $OPT_USERNAME:$OPT_GROUPNAME *
./fixinstall
# Give final instructions.
echo "Add \"cd $OPT_INSTALL_DIR\" to \"$OPT_INSTALL_DIR/nwn\" to be able to run Neverwinter Nights from anywhere. You may also want to add a symbolic link to it from a bin directory, or somewhere else in your PATH."
echo "Enjoy!"
echo -e "\033[32mTesting for ImageMagick convert\033[0m"
convert_test=`whereis convert|awk -F: '{ print $2 }'`
if [ -z "$convert_test" ];
then
echo -e "\033[31mconvert not found!\033[0m"
echo -e "convert is a part of the Image Magick tools, used here to make the nwn.iso a Linux friendly nwn.xps"
echo -e "Skipping image conversion"
else
echo -e "\033[33mMaking nwn.xpm\033[0m"
convert nwn.ico nwn.xpm
fi
exit 0
|
I hope this helps you guys. I am currently playing the kingmaker expansion I bought online last night and having a blast.
One last note. Some of the community expansions will not work on linux with 1.67 patch. This is because of an error in a script they use. To fix this see the bioware forums. One of their users has created a patch which will resolve the issue. I have not played with this yet.
My next goal is to update the install script so that it will do the xp1 patches for us. This will be very easy, I was just lazy and havn't had the time yet. |
|
Back to top |
|
|
wolf31o2 Retired Dev
Joined: 31 Jan 2003 Posts: 628 Location: Mountain View, CA
|
Posted: Tue Jun 20, 2006 9:27 pm Post subject: |
|
|
To install both the SoU and HotU stuff with NWN/portage, unmask nwn-data and nwn, and emerge nwn. The split ebuilds really could do with more testing, as they should (eventually) replace the big monolithic ebuild. I'm currently working to make it even smarter, by allowing it to work with more of the media sets out there. _________________ Ex-Gentoo Developer
Catalyst/Genkernel Development Lead
http://wolf31o2.org |
|
Back to top |
|
|
FictionPimp n00b
Joined: 24 Aug 2004 Posts: 43
|
Posted: Thu Jun 22, 2006 5:08 pm Post subject: |
|
|
will the split ebuild work with the plat DVD? If they will I'll give them a shot and see how it works. |
|
Back to top |
|
|
haukew Tux's lil' helper
Joined: 01 Dec 2006 Posts: 135 Location: Hamburg - Germany
|
Posted: Wed Feb 07, 2007 2:29 pm Post subject: |
|
|
Hi!
I am trying to install Neverwinter Nights with both Expansionpacks from the "Platinum Edition"
I used the following command before emerging:
export CD_ROOT="/mnt/cdrom0/"
emerge starts, downloads all the data (i used the nowin flag as well as the sou and hou flags)
Then the installer takes data from the CD, but suddenly it stops with this error:
Code: | unzip: cannot find or open /mnt/cdrom0//Data_Linux.zip, /mnt/cdrom0//Data_Linux.zip.zip or /mnt/cdrom0//Data_Linux.zip.ZIP.
!!! ERROR: games-rpg/nwn-data-1.29 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_unpack
ebuild.sh, line 708: Called src_unpack
nwn-data-1.29.ebuild, line 108: Called die
!!! unpacking
!!! If you need support, post the topmost build error, and the call stack if relevant. |
It's true, the File does not exist on the DVD - where can i get it from?
[edit]these files are located on my DVD:
Code: | hauke@localhost:/mnt/cdrom0$ ls -la
insgesamt 2281357
dr-xr-xr-x 1 root root 2048 13. Aug 2004 .
drwxr-xr-x 8 root root 4096 13. Jan 17:25 ..
-r-xr-xr-x 1 root root 8839120 11. Aug 2004 AcroReader51_ENU.exe
-r-xr-xr-x 1 root root 5314434 11. Aug 2004 ArcadeInstallNWNXP213f.EXE
-r-xr-xr-x 1 root root 520704 11. Aug 2004 autorun.exe
-r-xr-xr-x 1 root root 398 11. Aug 2004 AUTORUN.INF
-r-xr-xr-x 1 root root 393728 11. Aug 2004 CriticalRebuild.exe
-r-xr-xr-x 1 root root 492 11. Aug 2004 CriticalRebuild.ini
dr-xr-xr-x 1 root root 2048 13. Aug 2004 data
-r-xr-xr-x 1 root root 1216105 11. Aug 2004 data1.cab
-r-xr-xr-x 1 root root 18113 11. Aug 2004 data1.hdr
-r-xr-xr-x 1 root root 68236157 11. Aug 2004 data2.cab
-r-xr-xr-x 1 root root 998612807 11. Aug 2004 Data_Shared.zip
dr-xr-xr-x 1 root root 2048 13. Aug 2004 ereg
-r-xr-xr-x 1 root root 13870 11. Aug 2004 EULA.txt
dr-xr-xr-x 1 root root 2048 13. Aug 2004 extras
-r-xr-xr-x 1 root root 346602 11. Aug 2004 ikernel.ex_
-r-xr-xr-x 1 root root 1248124163 11. Aug 2004 Language_data.zip
-r-xr-xr-x 1 root root 3179294 13. Aug 2004 Language_update.zip
-r-xr-xr-x 1 root root 435 11. Aug 2004 layout.bin
-r-xr-xr-x 1 root root 766 11. Aug 2004 nwn.ico
-r-xr-xr-x 1 root root 44029 11. Aug 2004 NWN Platinum Install Guide.rtf
-r-xr-xr-x 1 root root 50109 11. Aug 2004 readme.txt
-r-xr-xr-x 1 root root 921654 11. Aug 2004 setup.bmp
-r-xr-xr-x 1 root root 56320 11. Aug 2004 Setup.exe
-r-xr-xr-x 1 root root 157 11. Aug 2004 Setup.ini
-r-xr-xr-x 1 root root 203775 11. Aug 2004 setup.inx
hauke@localhost:/mnt/cdrom0$ |
_________________ http://www.MySpace.com/TheAgeOfSound - my band |
|
Back to top |
|
|
haukew Tux's lil' helper
Joined: 01 Dec 2006 Posts: 135 Location: Hamburg - Germany
|
Posted: Wed Feb 07, 2007 9:34 pm Post subject: |
|
|
Well, i could install neverwinter nights - but as soon as i add the USE flags for the expansion packs something is missing... _________________ http://www.MySpace.com/TheAgeOfSound - my band |
|
Back to top |
|
|
wizmomma n00b
Joined: 09 Feb 2007 Posts: 4
|
Posted: Fri Feb 09, 2007 6:31 am Post subject: |
|
|
Hi did you get this installed with expansion packs? Are you trying to use the script above or the ebuild? |
|
Back to top |
|
|
haukew Tux's lil' helper
Joined: 01 Dec 2006 Posts: 135 Location: Hamburg - Germany
|
Posted: Fri Feb 09, 2007 9:21 pm Post subject: |
|
|
I tried the ebuild only - and i didn't make it to install the expansion packs. As i said above, i lack the Linux.zip whcih seems to have been included on the "normal" install-cds for the expansionpacks _________________ http://www.MySpace.com/TheAgeOfSound - my band |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|