LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-02-2003, 07:01 AM   #1
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Rep: Reputation: 15
KDE & Neverwinter Nights


Hello! I am a newbie to this board. I came across it when looking for a solution to my problem, and although I didnt find it here, the people seem cool and I found one thread to be very interesting. Hopefully i will become a frequent visitor.

Anyway, my small problem: Bioware has been good enough to release the binaries for the NWN client (proving that the interest in linux support by large companies is expanding, YAY!) and Ive installed it on my SuSE box. It works great! (better than windows even) But I cant seem to make a Desktop shortcut to it in KDE. I can run it by using the console and typing "./nwn" (it also requires that you be in the program's dir) but even if I put the entire path in the shortcut's "Command" field, it wont open!

Any ideas as to what im doing wrong? It would be great if someone could help. Advanced thanks!
 
Old 06-02-2003, 07:28 AM   #2
Korff
Member
 
Registered: May 2003
Location: Central Florida
Distribution: Gentoo
Posts: 103

Rep: Reputation: 15
Perhaps a shell script is in order?
 
Old 06-02-2003, 07:41 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yes, that or add the nwn directory to your $PATH like I did. I prefer to be able to just, from anywhere, type:
nwn

As for desktop shortcuts, I don't see why the full path doesn't work, other than the need to be in the directory (but I am still confused since by adding it to my path... nope. Nevermind, I added the nwn executable as a symlink..)..

Ok, so here's an idea:
symlink the nwn executable to a directory in your PATH, I chose:
ln -s /usr/local/games/nwn/nwn /usr/local/bin/nwn
And what that does is execute nwn from within the nwn directory. See if that will suffice. Short of that, the shell script sounds like a good idea.

Cool
 
Old 06-02-2003, 07:50 AM   #4
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Jeese, I feel like a total newb ... I dont know what a symlink or shellscript is... Im lost... heh. Can you give me a clue how to do that? Thanks again!

<---
 
Old 06-02-2003, 07:53 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Sure, actually I did. The sentence starting "ln -s" is a symlink.



man ln for more info

A shell script, well if the ln doesn't work, we'll get into that.

Cool
 
Old 06-02-2003, 07:59 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
{OT/ONT}
Just out of curiosity, what kind of hardware do you have? I am just thinking that you could get even more of a perfomance increase by cutting out KDE while playing. I don't know if it'd work, but something like this as shell script (don't try it, just thinking out loud so someone can assist me):
Code:
!#/bin/sh
telinit 3
xinit 
/path/to/nwn/nwn &&
telinit 5
? Anyone, would something like that work?

Cool
 
Old 06-02-2003, 08:01 AM   #7
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Does SUSE have a 'failsafe' wm setting like Mandrake does? I use that if I need to squeeze CPU power Its just X and a terminal window.
 
Old 06-02-2003, 08:04 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah, that's pretty good, but a raw xinit would be just that much more power Never can have too much ya know *MasterC walks away to find something small to pick on..

Cool
 
Old 06-02-2003, 08:05 AM   #9
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Ok, I tried the symlink. But when I gave it a click it poped up "Program not found!" BUT I KNOW ITS THERE! I JUST KNOW IT! heh. My nwn is installed in "/home/me/.nwn/" because when I unstalled it as root in "/usr/local/games/nwn/" it wouldnt let me play the game unless I was logged in as root.

So to make the simlink I did
ls -s /home/me/.nwn/nwn /home/me/Desktop/nwn

did I go wrong somewhere?
 
Old 06-02-2003, 08:09 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Yeah. You wanna symlink it to inside your path, not your home directory:
ln -s /home/me/.nwn/nwn /usr/local/bin/nwn

Then, setup your desktop shortcut to point to either just nwn or /usr/local/bin/nwn

Cool
 
Old 06-02-2003, 08:10 AM   #11
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Wow, people posted while I was responding... heh...

Im not to worried about squeezing the power... Ive got a Athlon XP 1700+, a 128m GeForce 4 Ti-4400, and 512m DDR. Im good on power.
 
Old 06-02-2003, 08:13 AM   #12
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Good deal, that's how I am, but it's always nice to know if you need it, you could pull some extra juice out of it

cool
 
Old 06-02-2003, 08:26 AM   #13
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
hmm...

Quote:
Konsole
me@linux:~> nwn
/usr/local/bin/nwn: line 12: ./nwmain: No such file or directory
me@linux:~>
Does that meen its looking for nwmain in "/usr/local/bin?"
 
Old 06-02-2003, 08:34 AM   #14
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Wait a tick...

here is the code for the script for running NWN:
Code:
#!/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 $@
You think if I change that last line to include the full path, itll work?
 
Old 06-02-2003, 08:42 AM   #15
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Original Poster
Rep: Reputation: 15
Nope... that didnt work.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NeverWinter Nights GML3G0 Linux - Games 8 06-27-2006 01:08 PM
Can't run Neverwinter Nights drowbot Linux - Games 7 03-28-2005 10:11 AM
neverwinter nights slugishness mnchur Linux - Games 4 03-17-2004 02:47 PM
Neverwinter Nights Comarez Linux - Games 9 02-07-2004 06:11 AM
Neverwinter Nights Error billk Linux - Games 8 12-13-2003 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration