Author Topic: Linux Stand-alone Client..  (Read 3260 times)

Ryan450

  • PGP
  • Posts: 4
Linux Stand-alone Client..
« on: September 02, 2005, 11:32:01 AM »
hey guys,

Been trying to run this paintball game under my linux system but I keep getting this error when I try to run the game..

ryan450@1[paintball2]$ ./paintball2
Paintball 2 -- Version 3.21+r0.16
execing configs/default.cfg
Console initialized.

------- sound initialization -------
sound sampling rate: 11025
------------------------------------
------- Loading ref_glx.so -------
LoadLibrary("./ref_glx.so")
ref_gl version: PB2GL 0.14
./libGL.so: cannot open shared object file: No such file or directory
ref_gl::R_Init() - could not load "libGL.so"
recursive shutdown
Error: Couldn't load gl refresh!
ryan450@1[paintball2]$ locate libgl.so
ryan450@1[paintball2]$ locate libGL.so
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.0.7174
/usr/lib/nvidia/libGL.so.1.2.xlibmesa
/usr/lib/nvidia/libGL.so.1.xlibmesa
/usr/X11R6/lib/libGL.so
/usr/X11R6/lib/nvidia/libGL.so.1.2.xlibmesa
/usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa
ryan450@1[paintball2]$


basicly all I did was extract it and try to launch the binary.. not sure how to fix this one.. when doing locate to find the file its listed there.. but when I view it under my file manager it reads as an unknown link :S.. and as you can see I have different varients of it..

any and all help appreciated :)

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Linux Stand-alone Client..
« Reply #1 on: September 02, 2005, 12:05:17 PM »
What I did to resolve this was create a symbollic link to the libGL.so file that was on my system from the nvidia driver installation.  I don't know the exact location of the .so from this pc, but I can check when I get home.
You could always try 'locate libGL.so'
Let me know if you need any more help.

Ryan450

  • PGP
  • Posts: 4
Re: Linux Stand-alone Client..
« Reply #2 on: September 02, 2005, 12:30:10 PM »
What I did to resolve this was create a symbollic link to the libGL.so file that was on my system from the nvidia driver installation.  I don't know the exact location of the .so from this pc, but I can check when I get home.
You could always try 'locate libGL.so'
Let me know if you need any more help.

well, when I do locate libGL.so I get this back

locate libGL.so
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.0.7174
/usr/lib/nvidia/libGL.so.1.2.xlibmesa
/usr/lib/nvidia/libGL.so.1.xlibmesa
/usr/X11R6/lib/libGL.so
/usr/X11R6/lib/nvidia/libGL.so.1.2.xlibmesa
/usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa

and when I use my file manager to look at it graphically it says unkown link and its 0 bytes..

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux Stand-alone Client..
« Reply #3 on: September 02, 2005, 01:06:59 PM »
Sounds like libGL.so is linked to something that no longer exists.   Link it to one of the other files.  If you have an nVidia card, download the nVidia drivers and follow the installation instructions carefully.

Eiii

  • Autococker
  • Posts: 4595
Re: Linux Stand-alone Client..
« Reply #4 on: September 02, 2005, 01:48:22 PM »
Also, keep in mind that the Linux version is FUBARd.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux Stand-alone Client..
« Reply #5 on: September 02, 2005, 02:36:10 PM »
The linux version is fine -- it's Linux that's fubar. ;)

Ryan450

  • PGP
  • Posts: 4
Re: Linux Stand-alone Client..
« Reply #6 on: September 02, 2005, 02:57:04 PM »
Sounds like libGL.so is linked to something that no longer exists.   Link it to one of the other files.  If you have an nVidia card, download the nVidia drivers and follow the installation instructions carefully.

I have my nvidia drivers installed and setup already, I play with opengl with all my games and this problem never comes up.. but how do I link libGL.so to something else?

I'm by no means an advanced linux user.. my current linux distro is SimplyMepis and it pretty much autoconfigured everything for me.

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Linux Stand-alone Client..
« Reply #7 on: September 02, 2005, 04:21:35 PM »
The think about these libraries is that they usually link to their location somewhere else.
In your case that it's possible that /usr/lib/libGL.so points to /usr/lib/libGL.so.1 which is pointed to /usr/lib/libGL.so.1.0.7174
On my system I know that /usr/lib/libGL.so is pointing to /usr/lib/opengl/nvidia/lib/libGL.so which I know is pointing to something else.
what I would do is create a link in your paintball directory to the /usr/lib/libGL.so library.
Within the paintball2 directory you can execute the command:
ln -s libGL.so /usr/lib/libGL.so

Depending on your system you made need to execute it as root.
You might hit some other roadblocks after that, post them here before wasting your time online searching for problems, I'm familiar with a couple of them.

Ryan450

  • PGP
  • Posts: 4
Re: Linux Stand-alone Client..
« Reply #8 on: September 02, 2005, 08:09:15 PM »
The think about these libraries is that they usually link to their location somewhere else.
In your case that it's possible that /usr/lib/libGL.so points to /usr/lib/libGL.so.1 which is pointed to /usr/lib/libGL.so.1.0.7174
On my system I know that /usr/lib/libGL.so is pointing to /usr/lib/opengl/nvidia/lib/libGL.so which I know is pointing to something else.
what I would do is create a link in your paintball directory to the /usr/lib/libGL.so library.
Within the paintball2 directory you can execute the command:
ln -s libGL.so /usr/lib/libGL.so

Depending on your system you made need to execute it as root.
You might hit some other roadblocks after that, post them here before wasting your time online searching for problems, I'm familiar with a couple of them.

Well, I'm not sure what output that command is supposed to give me, but this is what I got

ryan450@1[paintball2]$ ln -s libGL.so /usr/lib/libGL.so
ln: `/usr/lib/libGL.so': File exists

When I try as root it does exactly the same thing...

XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Linux Stand-alone Client..
« Reply #9 on: September 03, 2005, 08:20:46 AM »
My mistake, the filenames should be the other way around.
ln -s /usr/lib/libGL.so libGL.so

F for Fragging

  • Guest
Re: Linux Stand-alone Client..
« Reply #10 on: September 04, 2005, 07:39:39 AM »
I'm new to this game and I play on Linux as well. Didn't get it working at first because I encountered the same error, but thanks to this thread I solved it :).
So I managed to get it working, but sometimes my mouse would have weird slow downs in the menu, DP2 didn't want to run in full screen for some reason, random crashes.
I appreciate it that this game is playable on Linux as well, thank you for the game. But please fix this huge problem which prevents us from starting DP2 the easy way on Linux.  

TinMan

  • Guest
Re: Linux Stand-alone Client..
« Reply #11 on: October 19, 2005, 08:23:38 PM »
I am in Ubuntu and am a total n00b, how do I make a link in the folder?


th3t1nm4n@root:~/Desktop/paintball2$ ls
ace     Docs  paintball2  README_Paintball2_alpha014.txt
baseq2  locs  pball       ref_glx.so



th3t1nm4n@root:~/Desktop/paintball2$ sudo ./paintball2
Paintball 2 -- Version 3.21+r0.16
execing configs/default.cfg
Console initialized.

------- sound initialization -------
sound sampling rate: 11025
------------------------------------
------- Loading ref_glx.so -------
LoadLibrary("./ref_glx.so")
ref_gl version: PB2GL 0.14
./libGL.so: cannot open shared object file: No such file or directory
ref_gl::R_Init() - could not load "libGL.so"
recursive shutdown
Error: Couldn't load gl refresh!
th3t1nm4n@root:~/Desktop/paintball2$ sudo ln -s libGL.so /usr/lib/libGL.so.1.2
ln: `/usr/lib/libGL.so.1.2': File exists
th3t1nm4n@root:~/Desktop/paintball2$ sudo ln -s libGL.so /usr/lib/libGL.so.1.2
ln: `/usr/lib/libGL.so.1.2': File exists
th3t1nm4n@root:~/Desktop/paintball2$ sudo ln -s /usr/lib/libGL.so.1.2 /usr/lib/libGL.so
ln: `/usr/lib/libGL.so': File exists
th3t1nm4n@root:~/Desktop/paintball2$ sudo ./paintball2
Paintball 2 -- Version 3.21+r0.16
execing configs/default.cfg
Console initialized.

------- sound initialization -------
sound sampling rate: 11025
------------------------------------
------- Loading ref_glx.so -------
LoadLibrary("./ref_glx.so")
ref_gl version: PB2GL 0.14
./libGL.so: cannot open shared object file: No such file or directory
ref_gl::R_Init() - could not load "libGL.so"
recursive shutdown
Error: Couldn't load gl refresh!


XtremeBain

  • Developer
  • Autococker
  • Posts: 1470
Re: Linux Stand-alone Client..
« Reply #12 on: October 19, 2005, 09:56:40 PM »
It's likely that /usr/lib/libGL.so already links to /usr/lib/libGL.so.1.2
You can verify by performing: 'ls -al /usr/lib/libGL.so'
If it's a link it'll show a little -> pointing to the file it links to.
What you can do from there is link it to your paintball2
I did: 'ln -s /usr/lib/libGL.so libGL.so' while in the paintball2 directory.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux Stand-alone Client..
« Reply #13 on: October 19, 2005, 10:43:11 PM »
That's weird.  I wonder why it's looking for libGL.so in ./.  I did not have to do any such linking.

TinMan

  • Guest
Re: Linux Stand-alone Client..
« Reply #14 on: October 20, 2005, 03:57:50 PM »
th3t1nm4n@root:~/Desktop$ cd /home/th3t1nm4n/Desktop/paintball2
th3t1nm4n@root:~/Desktop/paintball2$ ls
ace     Docs  paintball2  README_Paintball2_alpha014.txt
baseq2  locs  pball       ref_glx.so
th3t1nm4n@root:~/Desktop/paintball2$ ls -al /usr/lib/libGL.so
lrwxrwxrwx  1 root root 8 2005-10-19 21:16 /usr/lib/libGL.so -> libGL.so
th3t1nm4n@root:~/Desktop/paintball2$ ln -s /usr/lib/libGL.so libGL.so
th3t1nm4n@root:~/Desktop/paintball2$ ls
ace     Docs      locs        pball                           ref_glx.so
baseq2  libGL.so  paintball2  README_Paintball2_alpha014.txt
th3t1nm4n@root:~/Desktop/paintball2$ ./pball
bash: ./pball: is a directory
th3t1nm4n@root:~/Desktop/paintball2$ sudo ./paintball2
Password:
Paintball 2 -- Version 3.21+r0.16
execing configs/default.cfg
Console initialized.

------- sound initialization -------
sound sampling rate: 11025
------------------------------------
------- Loading ref_glx.so -------
LoadLibrary("./ref_glx.so")
ref_gl version: PB2GL 0.14
./libGL.so: cannot open shared object file: Too many levels of symbolic links
ref_gl::R_Init() - could not load "libGL.so"
recursive shutdown
Error: Couldn't load gl refresh!


So how do I view and remove symbolic links now?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux Stand-alone Client..
« Reply #15 on: October 20, 2005, 04:07:59 PM »
It looks like /usr/lib/libGL.so is linked to libGL.so, and libGL.so is linked to /usr/lib/libGL.so, so it's just infinite linking.  What you want to do is link /usr/lib/libGL.so to /usr/lib/libGL.so.1.2 instead.

... or you could just use Windows XP and save yourself from a bunch of headaches like this. ;)

TinMan

  • Guest
Re: Linux Stand-alone Client..
« Reply #16 on: October 20, 2005, 05:29:44 PM »
Thanx, got it working now.

XP...save from headaches? HA! lies

TinMan

  • Guest
Re: Linux Stand-alone Client..
« Reply #17 on: October 21, 2005, 08:28:50 PM »
How is it that Quake III Arena and Wolf: ET run fine, yet when I fire up DigitalPaint2 now it responds about 5 seconds after I do something?

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Linux Stand-alone Client..
« Reply #18 on: October 21, 2005, 09:01:28 PM »
Xbain reported that, too.  I'm really not sure what causes it.

... it doesn't happen on XP. ;)