PDA

View Full Version : rolauncher - gtk issues


arobicha
02-02-2008, 10:29 PM
Hey all,

I've searched the forums and this looks unanswered, but I'm sorry if this has been dealt with. I've downloaded the linux client, unarchived using ark, chmod +x rolauncher , and this is what I get when I try to run it:

le-moi@my_host:~/regnum> sudo ./rolauncher
Error: Unable to initialize gtk, is DISPLAY set properly?

I'm running KDE 4 (tried in KDE 3.5 as well) on Suse 10.3,
GTK 1 & 2 installed (just today, tried after reboot and all).
echo DISPLAY gives 127.0.0.1:0.0 (which I would assume is correct considering everything else works...)

Double clicking the launcher gives me squat. I assume it's due to the GTK issue. Any idea on what I should do? (thanks in advance)

Miraculix
02-02-2008, 11:22 PM
Hm, check for gnome packages? Really no clue :/

magnet
02-03-2008, 01:12 AM
It has nothing to do with rolauncher nor with GTK; you are trying to run an X program using sudo, which creates a virtual root shell (obviously lacking the X environment variables required to locate the appropriate X session and the credentials). That's what gksu is made far.

Anyway, more generally, no game should ever be ran as root. Drop sudo.

arobicha
02-03-2008, 08:18 AM
Probably should have mentioned I tried that.


el-moriati@supermegaawesomehost:~/regnum> ./rolauncher
Aborted


I was initially under the impression that ./rolauncher was an installer, hence the sudo.

Myxir
02-03-2008, 12:25 PM
Try this:

xhost +

This allows every user to access Xserver. Maybe a problem with that.
If that works then write

export xhost

into
/etc/profile

Froste
02-03-2008, 06:20 PM
Try this:

xhost +

This allows every user to access Xserver. Maybe a problem with that.
If that works then write

into
/etc/profile

Yeah that's brilliant, and why not email his /etc/shadow to random people in the world too, if you're going to open security holes might as well go for the big ones.

What magnet said is The Truth. Do not run rolauncher as root, run it as a regular user, if all the regnum files are owned by root right now, then chown -R YourLuserName:users regnum/ and then run the launcher again.

magnet
02-03-2008, 06:51 PM
Probably should have mentioned I tried that.


el-moriati@supermegaawesomehost:~/regnum> ./rolauncher
Aborted


I was initially under the impression that ./rolauncher was an installer, hence the sudo.

That's another problem then; this is an uncaught C++ exception (as good as a segfault, that is; error management really isn't NGD's forte). Even if you run the program as root it won't change that. You have to find the specific problem.

Actually Froste's idea may be it: are the regnum files owned by your own user account? How did you install the game? (new install or old rolauncher alone), etc.

arobicha
02-03-2008, 08:01 PM
Nothing's installed, I'm trying to install it. If that's the issue, I've been severely mislead. I'm Downloading the "new" linux installer as we speak via KTorrent (significantly slower than I'm used to...) Most of the looking around I've done said that the install process was running rolauncher... For wiggles and giggles I tried ./rolauncher --install (and ./rolauncer -i, which I assumed where the same) they gave me a flat-out segfault. Even if I DID have the source available to me, you wouldn't catch me dead looking to fix another segfault :p

Anyway, I'll update when I get the installer.

magnet
02-03-2008, 08:07 PM
Nothing's installed, I'm trying to install it. If that's the issue, I've been severely mislead. I'm Downloading the "new" linux installer as we speak via KTorrent (significantly slower than I'm used to...) Most of the looking around I've done said that the install process was running rolauncher... For wiggles and giggles I tried ./rolauncher --install (and ./rolauncer -i, which I assumed where the same) they gave me a flat-out segfault. Even if I DID have the source available to me, you wouldn't catch me dead looking to fix another segfault :p

Anyway, I'll update when I get the installer.

rolauncher is a patcher-downloader-launcher. It doesn't take any argument. It is supposed to download the full game (in $PATH) when you launch it first. The "new" installer is only an installer which installs a recent version of the game (just a few patches away).

arobicha
02-03-2008, 08:12 PM
Ok, that's what I thought. I have no files then, just rolauncher. Anyway, I'm positive that rolauncher is owned by my regular user, so that's not the issue.

arobicha
02-03-2008, 11:14 PM
Used the RegnumOnlineLinux.run script, and everything worked like a charm. I'd like to thank you all for your help. I'd have been sitting here installing gtk for weeks on end if not for your ideas.

Cheers!
-A