Only in /usr/local/games/nwn: .mssdebug.log Common subdirectories: /opt/nwn/ambient and /usr/local/games/nwn/ambient Common subdirectories: /opt/nwn/data and /usr/local/games/nwn/data Only in /usr/local/games/nwn: database Common subdirectories: /opt/nwn/dmvault and /usr/local/games/nwn/dmvault Common subdirectories: /opt/nwn/docs and /usr/local/games/nwn/docs diff -u /opt/nwn/fixinstall /usr/local/games/nwn/fixinstall --- /opt/nwn/fixinstall 2006-04-18 07:24:04.000000000 +0200 +++ /usr/local/games/nwn/fixinstall 2003-05-05 22:39:07.000000000 +0200 @@ -1,107 +1,133 @@ #!/bin/bash -# Initial version by Bioware -# Modified to match the gentoo setup -# 03/27/2003 phoen][x - -cd /opt/nwn || exit 1 aRequiredDirs=(ambient data music override miles nwm) -aRequiredFiles=(chitin.key dialog.tlk nwmain) +aRequiredFiles=(chitin.key dialog.tlk nwmain patch.key) aLCDirs=(ambient data dmvault hak localvault music override portraits) aProblemFiles=() aWritables=(nwn.ini nwnplayer.ini nwncdkey.ini saves localvault tempclient currentgame dmvault) printf "Checking for required files\n\n" -for d in ${aRequiredDirs[@]} ; do - if [[ -d $d ]] ; then - printf "PASSED: $d directory exists\n" - else - printf "FAILED: $d directory missing\n" - exit 1 - fi +for d in ${aRequiredDirs[@]} +do + if [ -d $d ] + then + printf "PASSED: $d directory exists\n" + else + printf "FAILED: $d directory missing\n" + exit + fi done -for f in ${aRequiredFiles[@]} ; do - if [[ -f $f ]] ; then - printf "PASSED: $f exists\n" - else - printf "FAILED: $f missing\n" - exit 1 - fi +if [ -f dialog.TLK ] +then + mv dialog.TLK dialog.tlk +fi + +for f in ${aRequiredFiles[@]} +do + if [ -f $f ] + then + printf "PASSED: $f exists\n" + else + printf "FAILED: $f missing\n" + exit + fi done printf "\nFixing case\n\n" -if [[ -f dialog.TLK ]] ; then - mv dialog.TLK dialog.tlk +if [ -f dialogF.TLK ] +then + mv dialogF.TLK dialogf.tlk fi -if [[ -f dialogF.TLK ]] ; then - mv dialogF.TLK dialogf.tlk -fi +for d in ${aLCDirs[@]} +do + if [ -d $d ] + then + printf "$d\n" + + cd $d + + for f in $(find . -name '*.*') + do + lcf=$(echo $f | tr [:upper:] [:lower:]) + if [ $f != $lcf ] + then + if [ -f $f ] + then + mv $f $(echo $f | tr [:upper:] [:lower:]) + fi + fi + printf . + done + + cd .. -for d in ${aLCDirs[@]} ; do - if [[ -d $d ]] ; then - printf "$d\n" - cd $d - - for f in $(find . -name '*.*') ; do - lcf=$(echo $f | tr [:upper:] [:lower:]) - if [[ $f != $lcf ]] && [[ -f $f ]] ; then - mv $f $(echo $f | tr [:upper:] [:lower:]) - fi - printf . - done - - cd .. - printf "\n" - fi + printf "\n" + fi done defIFS=$IFS IFS='|' -if [[ -d saves ]] ; then - cd saves - for d in $(find . -name '* - *' -type d -printf "%f|") ; do - printf "saves/$d\n" - cd "$d" - - [[ -f Portrait.tga ]] && mv Portrait.tga portrait.tga - [[ -f Screen.tga ]] && mv Screen.tga screen.tga - - cd .. - done +if [ -d saves ] +then + cd saves + for d in $(find . -name '* - *' -type d -printf "%f|") + do + printf "saves/$d\n" + + cd "$d" + + if [ -f Portrait.tga ] + then + mv Portrait.tga portrait.tga + fi + + if [ -f Screen.tga ] + then + mv Screen.tga screen.tga + fi + cd .. + done + cd .. fi IFS=$defIFS printf "\nChecking for problem files\n\n" -for f in ${aProblemFiles[@]} ; do - if [[ -e $f ]] ; then - printf "WARNING: $f exists, deleting this file is recommended\n" - fi +for f in ${aProblemFiles[@]} +do + if [ -e $f ] + then + printf "WARNING: $f exists, deleting this file is recommended\n" + fi done -printf "\nFixing permissions\n\n" +printf "\nChecking for permissions\n\n" -chown root:games /opt/nwn/ -R -chmod g+rwX /opt/nwn/ -R +for f in ${aWritables[@]} +do + if [ -e $f ] + then + if [ -w $f ] + then + printf "PASSED: $f is writable\n" + else + printf "WARNING: $f is not writable\n" + fi + fi +done -# 1.65-specific fixes to permissions -[ -e /opt/nwn/data/patch.bif ] && \ - chmod a-x /opt/nwn/data/patch.bif 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Chapter1.nwm 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Chapter1E.nwm 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Chapter2.nwm 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Chapter2E.nwm 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Chapter3.nwm 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Chapter4.nwm 2>&1 > /dev/null -chmod a-x /opt/nwn/nwm/Prelude.nwm 2>&1 > /dev/null -[ -e /opt/nwn/patch.key ] && \ - chmod a-x /opt/nwn/patch.key 2>&1 > /dev/null +if [ -w $(pwd) ] +then + printf "PASSED: $(pwd) is writable\n" +else + printf "WARNING: $(pwd) is not writable\n" +fi printf "\nYou are ready to run Neverwinter Nights.\n\n" Common subdirectories: /opt/nwn/hak and /usr/local/games/nwn/hak Common subdirectories: /opt/nwn/lib and /usr/local/games/nwn/lib Common subdirectories: /opt/nwn/localvault and /usr/local/games/nwn/localvault Only in /usr/local/games/nwn: logs Common subdirectories: /opt/nwn/miles and /usr/local/games/nwn/miles Common subdirectories: /opt/nwn/modules and /usr/local/games/nwn/modules Common subdirectories: /opt/nwn/music and /usr/local/games/nwn/music Common subdirectories: /opt/nwn/nwm and /usr/local/games/nwn/nwm File /opt/nwn/nwn is a directory while file /usr/local/games/nwn/nwn is a regular file diff -u /opt/nwn/nwn.ini /usr/local/games/nwn/nwn.ini --- /opt/nwn/nwn.ini 2006-04-18 07:24:04.000000000 +0200 +++ /usr/local/games/nwn/nwn.ini 2006-04-14 12:47:38.000000000 +0200 @@ -12,11 +12,12 @@ [Display Options] RefreshRate=0 BitsPerPixels=32 -Height=600 -Width=800 +Height=800 +Width=1280 TexturePack=2 FullScreen=1 [Video Options] +EnableSkyboxes=0 CreatureShadowDetail=1 Gamma=1.000000 VideoQualitySetting=2 Only in /usr/local/games/nwn: nwncdkey.ini Only in /usr/local/games/nwn: nwnplayer.ini Common subdirectories: /opt/nwn/override and /usr/local/games/nwn/override Common subdirectories: /opt/nwn/portraits and /usr/local/games/nwn/portraits Common subdirectories: /opt/nwn/saves and /usr/local/games/nwn/saves Common subdirectories: /opt/nwn/servervault and /usr/local/games/nwn/servervault Only in /usr/local/games/nwn: tempclient Common subdirectories: /opt/nwn/texturepacks and /usr/local/games/nwn/texturepacks