PDA

View Full Version : problem running SW under linux (jfsw port)


clayasaurus
04-04-2005, 03:49 PM
Hello, I've downloaded the build and SW sources, downloaded FMOD and NASM, and got SW and build to compile.

I've also used wine and winsetup.exe to copy the game files to my comp.
I've moved the SW binaries into the game folder and here is what i get when i try to run SW.


./sw
SHADOW WARRIOR(tm) Version 1.2
Copyright (c) 1997 3D Realms Entertainment



Type 'SW -?' for command line options.

Initialising mouse
Initialising SDL system interface (compiled with SDL version 1.2.8, DLL version 1.2.8)
Loading /usr/lib/libGL.so.1
Using "x11" video driver
Video device information:
Can create hardware surfaces? No
Window manager available? Yes
Accelerated hardware blits? No
Accelerated hardware colourkey blits? No
Accelerated hardware alpha blits? No
Accelerated software blits? No
Accelerated software colourkey blits? No
Accelerated software alpha blits? No
Accelerated colour fills? No
Total video memory: 0KB
ERROR: Failed to load TABLES.DAT!



I've tried changing the GL driver name and, I don't know what tables.dat is. I was wondering if anyone else has gotten it to run under linux or can help with the error messages?

I'm using the nvidia-glx driver under MEPIS linux.

edit: and yes, the nvidia driver works, i can play tuxracer at some blazing FPS http://forums.3drealms.com/ubbthreads/images/graemlins/wink.gif

Jim Bentler
04-04-2005, 04:04 PM
I think that sw.grp is not being found. If it is in caps (SW.GRP), rename it to sw.grp.

clayasaurus
04-04-2005, 04:58 PM
Ah yes, that worked. I had to rename Sw.cfg to sw.cfg.

Now, I just have to get the screen to be 800x600, get sound working, and have it not crash/freeze after I load the first level.

TerminX
04-04-2005, 04:59 PM
Sound won't be working for you.

clayasaurus
04-04-2005, 05:04 PM
:'( I thought FMOD was x-platform. Oh well, how hard can it be to get sound to work, or what needs to be done?

TerminX
04-04-2005, 05:48 PM
clayasaurus said:
:'( I thought FMOD was x-platform. Oh well, how hard can it be to get sound to work, or what needs to be done?


The new sound system (JFAud) works under Linux. When the implementation into the games is complete, you will have sound. Alternatively, you could look at the icculus port's source and hack in the sound code from that if you want sound badly enough. http://forums.3drealms.com/ubbthreads/images/graemlins/smile.gif

Mephisto
05-09-2005, 12:50 PM
Until the version with JFAud comes out, you can use this patch to get sound working:
http://www.mephisto.ma.cx/mephisto/jfsw_src_20050402-sound.patch
its based on the sound patch for jfduke3d, and it probably only works on the 02/04/05 release (the only release now, but i'll mention it anyway, in case it gets updated soon).

Mephisto
06-01-2005, 05:28 PM
New version for new release:

http://www.mephisto.ma.cx/mephisto/patches/jfsw_src_20050531-sound.patch

And i forgot to tell with last patch that Ambience needs to be OFF, or the game will hang when launching a game, filling up all your memory until you kill it or it gets killed itself.