mouse goes wild

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

User avatar
The GoldFish
level5
level5
Posts: 3961
Joined: Fri Mar 01, 2002 9:01 pm
Location: Bowl / South UK
Contact:

Postby The GoldFish » Sat Sep 20, 2008 4:44 pm

Hi,

I'm not sure if you ever did get anywhere with this, however I found an interesting bug with 1.42 in windows;

If you're using windowed mode, and move the window away from the centre of the screen, the mouse position /still/ seems to be being calculated with respect to the centre, meaning that everything very quickly goes to shit - this might be why you're experiencing problems, I'm not sure. I guess dry using fullscreen, or moving the window much closer to the centre of the screen to see if the problem becomes allieviated.
-- The GoldFish - member of former GIT and commander in chief of GALLAHAD. You could have done something, but it's been fixed. The end. Also, play bestgameever!
pimp-my-ppc
level1
level1
Posts: 14
Joined: Tue Nov 15, 2005 3:35 am
Location: here and now

Postby pimp-my-ppc » Sun Sep 21, 2008 3:49 am

I have tried running it in fullscreen, but it works the same.
User avatar
briceman2
level2
level2
Posts: 123
Joined: Wed Dec 12, 2007 4:30 am

Postby briceman2 » Tue Sep 23, 2008 12:29 pm

REPOST: looks like a server crash has reverted this thread to before my last post...

if you haven't tried downgrading your libsdl to 1.2.9, you should... but if your package mgr complains/refuses, here's a way you might try. I'll just sketch the idea, which is to install a *local* copy of libsdl 1.2.9 (in darwinia/lib for example) and use ld tricks to force darwinia to link to the local lib instead of the lib on the lib path.

check out http://www.ibm.com/developerworks/web/l ... hlibs.html for a good intro to dynamic libs if you don't already understand them on linux. skip down to the section "Modifying the dynamic linker search path" for important stuff about ldd... Then google (or man ld) for how to use ld (that's LD) to force darwinia to load your local 1.2.9 libs.

Since the "darwinia" executable is actually a shell script, you can probably add the ldd magic there -- I *think* the script is already munging the ld path for those libs included with darwinia, so you might not need to do anything beyond dropping a copy of libsdl 1.2.9 into the darwinia/lib dir. But try first with the darwinia binary (in /lib) from the command line. The startup server messages (console mode) will tell you which SDL version darwinia is finding.

Also, since you are 64b you may have to compile libsdl from source... dunno, but just sayin ;)

Good luck!
data2
level0
Posts: 1
Joined: Tue Apr 28, 2009 5:04 pm
Contact:

Postby data2 » Tue Apr 28, 2009 5:06 pm

I had some fairly similar problems, on x86_64, and removing all the .so-files in the lib-directory fixed it for me. You might have to install some additional libraries, but that should be self-explaining.
pimp-my-ppc
level1
level1
Posts: 14
Joined: Tue Nov 15, 2005 3:35 am
Location: here and now

Postby pimp-my-ppc » Tue Apr 28, 2009 5:16 pm

what distro and version are you using?
TinheadNed
level0
Posts: 3
Joined: Fri Mar 09, 2007 8:54 pm

Postby TinheadNed » Mon May 25, 2009 8:14 pm

http://forums.gentoo.org/viewtopic-t-74 ... mouse.html

Try running with SDL_VIDEO_X11_DGAMOUSE=0

It works for ut2004 and darwinia for me in Gentoo here.
pimp-my-ppc
level1
level1
Posts: 14
Joined: Tue Nov 15, 2005 3:35 am
Location: here and now

Postby pimp-my-ppc » Mon May 25, 2009 8:24 pm

I have ut2004 too, and it doesn't have the same problem...only darwinia has had it in the many games i've tried. Also, it seems the SDL thing didn't do it for me.
pimp-my-ppc
level1
level1
Posts: 14
Joined: Tue Nov 15, 2005 3:35 am
Location: here and now

Postby pimp-my-ppc » Wed Jun 10, 2009 8:26 pm

Okay, two things I have found out. One, is that it seems I tried running darwinia on a fresh ubuntu install 32 bit in a virtual machine and got the same results. Second, I tried what data2 said and removed(actually moved) all .so files out of the directory, this made darwinia crash with an error I believe I've seen on other games I 've tried running with older source code.

Code: Select all

Initialising SDL Audio
ALSA lib pcm_pulse.c:626:(pulse_prepare) PulseAudio: Unable to create stream: Invalid argument

E: stream.c: Assertion 's' failed at pulse/stream.c:1224, function pa_stream_drain(). Aborting.
Aborted


running padsp on top of it just makes darwinia segfault.

I then decided to do a backtrace on the binary in case someone with authority decides to look into this problem.

Code: Select all

#0  0xf7f09430 in __kernel_vsyscall ()
#1  0xf7adc9a0 in raise () from /lib32/libc.so.6
#2  0xf7ade368 in abort () from /lib32/libc.so.6
#3  0xf79472d4 in pa_stream_drain () from /usr/lib32/libpulse.so.0
#4  0xf62cb63c in pulse_drain () from /usr/lib32/alsa-lib/libasound_module_pcm_pulse.so
#5  0xf7a61a68 in ?? () from /usr/lib32/libasound.so.2
#6  0xf7a16841 in snd_pcm_drain () from /usr/lib32/libasound.so.2
#7  0xf7e7432a in ?? () from /usr/lib32/libSDL-1.2.so.0
#8  0xf7e74bab in ?? () from /usr/lib32/libSDL-1.2.so.0
#9  0xf7e411d6 in SDL_OpenAudio () from /usr/lib32/libSDL-1.2.so.0
#10 0x080cbc6e in ?? ()
#11 0x080ce840 in ?? ()
#12 0x0804da08 in ?? ()
#13 0x080ba013 in ?? ()
#14 0x080ba1a1 in ?? ()
#15 0x080a643c in ?? ()
#16 0xf7ac7775 in __libc_start_main () from /lib32/libc.so.6
#17 0x0804cd91 in ?? ()


I just wish this game worked like when I first tried the demo, but then that was a while ago.


EDIT:okay, I fixed the pulse problem by restarting the pusle server. Same problem in game as I've had all long. :(
pimp-my-ppc
level1
level1
Posts: 14
Joined: Tue Nov 15, 2005 3:35 am
Location: here and now

Postby pimp-my-ppc » Thu Sep 10, 2009 3:00 pm

I'm now using Mandriva 2009.1 and the problem completely disappeared. Same hardware, I even copied the folder and settings. I guess there is something in Ubuntu's config/compiled that messed it up.

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 3 guests