The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
March 19, 2024, 05:27:05 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Problems with starting and also with keys.
« previous next »
Pages: [1] 2 Print
Author Topic: Problems with starting and also with keys.  (Read 7346 times)
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Problems with starting and also with keys.
« on: February 27, 2003, 07:19:07 pm »

I have some problems.

using 0.2 under linux:
Saved games are kept in /home/ilyak/.uqm/save/.
Initializing SDL (pure).
SDL driver used: x11
SDL initialized.
Initializing Screen.
Set the resolution to: 640x480x32
Initializing SDL audio subsystem.
SDL audio subsystem initialized.
Initializing MixSDL mixer.
MixSDL using driver 'SDL_audio'
MixSDL Mixer initialized.
   opened artsc at 44100 Hz 16 bit stereo, 2048 samples audio buffer
Initializing sound decoders.
Sound decoders initialized.
0 joysticks were found.
Kernel failed to load!

any clues?

second: under windows, i change keys.cfg but it does not work: still 's' left 'f' right not 'z' 'c' as i set... any clues?
Logged
Robert McNamara
Guest


Email
Re: Problems with starting and also with keys.
« Reply #1 on: February 27, 2003, 10:27:26 pm »

Okay, I am not familiar with the PC version, but may be of SOME help-- If I am wrong, please forgive me.

Try this:

Instead of keys.cfg, edit starcon.key in the content directory.  Change it as you like.  If when you start the game again it is still not working, try adding

-n=(put your content directory here)

to the executable in your shortcut, which I assume would then read something like this:

uqm.exe -n=c:\uqmcontent

or whatever.  Then again, the options on PC may be different than other platforms, but probably not.

Robert McNamara
Logged
PhracturedBlue
Frungy champion
**
Offline Offline

Posts: 88


Me developer. Here me roar!


View Profile
Re: Problems with starting and also with keys.
« Reply #2 on: February 27, 2003, 11:17:54 pm »

Version 0.2 creates keys.cfg, but it doesn't use it.
You'll need to edit starcon.key (in the content directory) instead.
I don't recomend using '-n' on the Windows build.

As for your linux problem:
Did you build from source, or use the 'static' or 'dynamic' builds?

You are sure you have the content directory installed?  (you can try cding to the directory above content (where the actual uqm binary lives (not the wrapper generated by the installer), and running ./uqm there (i.e. don't use the wrapper script, and start running in the same directory as the binary))

Otherwise, what version of SDL, and ogg do you have installed?
What distro are you using?

Logged
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Re: Problems with starting and also with keys.
« Reply #3 on: February 28, 2003, 12:23:24 am »

i use dynamic.
i have content directory installed and almost sure path in uqm wrapper points to it. smth like "/usr/lib/games/uqm/content" as i recall
SDL is newest from their site, ogg too.

I use ASPLinux 7.3 - thats redhat clone as u may suggest
Logged
PhracturedBlue
Frungy champion
**
Offline Offline

Posts: 88


Me developer. Here me roar!


View Profile
Re: Problems with starting and also with keys.
« Reply #4 on: February 28, 2003, 01:07:14 am »

Sorry I can't be of more help.  You could try using the static build.  My only other suggestion would be to build from source (this is not too difficult to do).  As it would allow us to debug the problem more.
Logged
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Re: Problems with starting and also with keys.
« Reply #5 on: February 28, 2003, 11:06:21 pm »

Ok i built it from source.
still, i get:
[ilyak@localhost uqm-0.2-source]$ ./uqm-debug -n"/usr/lib/games/uqm/content"
The Ur-Quan Masters v0.2 (compiled Feb 28 2003 17:55:28)
Saved games are kept in /home/ilyak/.uqm/save/.
Initializing SDL (pure).
SDL driver used: x11
SDL initialized.
Initializing Screen.
Set the resolution to: 640x480x32
WARNING: SetSemaphore did not return 0, this could be bad!
Initializing SDL audio subsystem.
SDL audio subsystem initialized.
Initializing MixSDL mixer.
MixSDL using driver 'SDL_audio'
MixSDL Mixer initialized.
   opened artsc at 44100 Hz 16 bit stereo, 2048 samples audio buffer
Initializing sound decoders.
Sound decoders initialized.
0 joysticks were found.
Kernel failed to load!

what do i do wrong?
Logged
Vansander
Zebranky food
*
Offline Offline

Gender: Male
Posts: 5


You must defeat Sheng Long to stand a chance.


View Profile WWW
Re: Problems with starting and also with keys.
« Reply #6 on: March 01, 2003, 12:49:12 am »

I'm afraid I'm getting the same error, only without the line about SetSemaphore, and the mixer init says "opened dsp" instead of "opened artsc". (I'm using the dynamic installer this time; otherwise my setup would appear to be identical to Ilyak's.) I'm on Mandrake 9; can provide system info if relevant. I wouldn't normally post a "me too" error, but at least now you know it's not an isolated occurrence.

By the way... have we thanked you for even undertaking this project? I've played the Windows version of 0.1, and I'm just delighted to see this game back alive and kicking. Easily one of the top five PC games of all time; thus, easily one of the most noble projects a gamer/coder can pick up.
« Last Edit: March 01, 2003, 12:50:49 am by Vansander » Logged
PhracturedBlue
Frungy champion
**
Offline Offline

Posts: 88


Me developer. Here me roar!


View Profile
Re: Problems with starting and also with keys.
« Reply #7 on: March 01, 2003, 12:50:35 am »

I'm still not sure what is wrong.
can you try doing:
gdb uqm-debug -n "/usr/lib/games/uqm/content"

(note that you may need a space between '-n' and the dir  (I'm not really sure tho)

you can then type 'run'
when it dies, you can type 'bt' and paste the entire log here.

That should help us determine what is wrong.


Logged
Vansander
Zebranky food
*
Offline Offline

Gender: Male
Posts: 5


You must defeat Sheng Long to stand a chance.


View Profile WWW
Re: Problems with starting and also with keys.
« Reply #8 on: March 01, 2003, 12:52:36 am »

Tell me what gdb is and/or where to get it and I'd be delighted to.  Huh

Edit: Never mind. Google saves the day again.
« Last Edit: March 01, 2003, 12:53:12 am by Vansander » Logged
Ilyak==
Guest


Email
Re: Problems with starting and also with keys.
« Reply #9 on: March 01, 2003, 08:44:44 am »

debugging:

Logged
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Re: Problems with starting and also with keys.
« Reply #10 on: March 01, 2003, 08:48:18 am »

[ilyak@localhost uqm]$ gdb uqm-debug
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run
Starting program: /usr/lib/games/uqm/uqm-debug
[New Thread 1024 (LWP 1731)]
The Ur-Quan Masters v0.2 (compiled Feb 28 2003 17:55:28)
Saved games are kept in /home/ilyak/.uqm/save/.
Initializing SDL (pure).
SDL driver used: x11
SDL initialized.
Initializing Screen.
Set the resolution to: 640x480x32
WARNING: SetSemaphore did not return 0, this could be bad!
Initializing SDL audio subsystem.
SDL audio subsystem initialized.
Initializing MixSDL mixer.
MixSDL using driver 'SDL_audio'
[New Thread 2049 (LWP 1736)]
[New Thread 1026 (LWP 1737)]
MixSDL Mixer initialized.
   opened artsc at 44100 Hz 16 bit stereo, 2048 samples audio buffer
Initializing sound decoders.
Sound decoders initialized.
[New Thread 2051 (LWP 1738)]
0 joysticks were found.
[New Thread 3076 (LWP 1747)]
Kernel failed to load!

Program received signal SIGINT, Interrupt.
[Switching to Thread 1024 (LWP 1731)]
0x002d751e in select () from /lib/libc.so.6
(gdb) bt
#0  0x002d751e in select () from /lib/libc.so.6
#1  0x00177fb8 in __DTOR_END__ () from /usr/lib/libSDL-1.2.so.0
#2  0x080e6cec in SDLWrapper_TaskSwitch ()
   at src/sc2code/libs/threads/sdl/sdlthreads.c:72
#3  0x080e64bf in TaskSwitch () at src/sc2code/libs/threads/thrcommon.c:309
#4  0x080b790d in TFB_FlushGraphics ()
   at src/sc2code/libs/graphics/sdl/sdl_common.c:439
#5  0x0804b7c2 in main (argc=1, argv=0xbffff9c4) at src/starcon2.c:325
#6  0x00218294 in __libc_start_main () from /lib/libc.so.6

thats it, btw it opens window before it prints 'kernel failed to load' and it does not close it or die ;) f12 does not work, closing window quits program
Logged
PhracturedBlue
Frungy champion
**
Offline Offline

Posts: 88


Me developer. Here me roar!


View Profile
Re: Problems with starting and also with keys.
« Reply #11 on: March 01, 2003, 05:55:19 pm »

Thanks, this may be of use.  I need to study  the code some more, and the grafx gurus may need to get involved, and we may still need more info, but this is a start.
Logged
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Re: Problems with starting and also with keys.
« Reply #12 on: March 02, 2003, 02:09:59 pm »

Looks like it fails to open file in res_OpenResFile in filecntl.c:

Breakpoint 5, res_OpenResFile (filename=0xbf3ff8fc, mode=0x81202a8 "rb")
   at src/sc2code/libs/resource/filecntl.c:38
38              if (stat (filename, &sb) == 0 && S_ISDIR(sb.st_mode))
(gdb) next
42              fp = fopen (filename, mode);
(gdb) next
44              return (fp);
(gdb) print fp
$1 = (FILE *) 0x0
(gdb) printf "%s", filename
starcon

any clues? qhere it should try to open this file?
Logged
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Re: Problems with starting and also with keys.
« Reply #13 on: March 02, 2003, 02:36:57 pm »

I have almost got it! i can run uqm as root fine, but cant run it as user... seems that it somehow tries to create file where it doesnt have permissions to
Logged
Ilyak
Zebranky food
*
Offline Offline

Gender: Male
Posts: 9


I love YaBB 1G - SP1!


View Profile
Re: Problems with starting and also with keys.
« Reply #14 on: March 02, 2003, 03:20:01 pm »

ok, i have got it... u know, there is content shipped in .zip not .tgz... AND THIS F!CKING unzip extracts files with perms rw------- ;((( even under user.

2anyone who have this problem - chmod -R +r /usr/lib/games/uqm/content.
2devels: add this to appropriate .sh installers
Logged
Pages: [1] 2 Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!