Title: Problems with starting and also with keys. Post by: Ilyak 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? Title: Re: Problems with starting and also with keys. Post by: Robert McNamara 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 Title: Re: Problems with starting and also with keys. Post by: PhracturedBlue 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? Title: Re: Problems with starting and also with keys. Post by: Ilyak 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 Title: Re: Problems with starting and also with keys. Post by: PhracturedBlue 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.
Title: Re: Problems with starting and also with keys. Post by: Ilyak 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? Title: Re: Problems with starting and also with keys. Post by: Vansander 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. Title: Re: Problems with starting and also with keys. Post by: PhracturedBlue 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. Title: Re: Problems with starting and also with keys. Post by: Vansander 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. ???
Edit: Never mind. Google saves the day again. Title: Re: Problems with starting and also with keys. Post by: Ilyak== on March 01, 2003, 08:44:44 am debugging:
Title: Re: Problems with starting and also with keys. Post by: Ilyak 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 Title: Re: Problems with starting and also with keys. Post by: PhracturedBlue 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.
Title: Re: Problems with starting and also with keys. Post by: Ilyak 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? Title: Re: Problems with starting and also with keys. Post by: Ilyak 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
Title: Re: Problems with starting and also with keys. Post by: Ilyak 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 Title: Re: Problems with starting and also with keys. Post by: meep-eep on March 03, 2003, 12:38:20 am Ah, I see what went wrong. The .zip files themselves contain the incorrect permissions. 'chmod -R go+rX /path/to/uqm/content' is a good work-around. I'll replace the content files on the download site, so other people won't have the same problem.
Addition: I'll change the install script instead for this release as a workaround. For the next release, I'll make sure the files in the content .zips themselves have the correct permissions. Title: Re: Problems with starting and also with keys. Post by: Someone else on March 04, 2003, 03:49:43 am Thank you! It works.
Title: Re: Problems with starting and also with keys. Post by: Vansander on March 06, 2003, 07:43:02 pm Frabjous day, it works!
Now I just have to get GDB working... apparently I'm missing ncurses? You'd think the average Linux distro would have this...? Ah well. Not a UQM problem, and now the game works for me. Title: Re: Problems with starting and also with keys. Post by: Tirol on March 07, 2003, 03:47:11 am I'm running an XP machine and I'm getting the kernal failed to load error. I have a 1 gHz Duron with Geforce 3 and 512 MB of RAM. Any ideas fixing this problem? Thanks.
Title: Re: Problems with starting and also with keys. Post by: PhracturedBlue on March 07, 2003, 08:47:25 pm Quote I'm running an XP machine and I'm getting the kernal failed to load error. I have a 1 gHz Duron with Geforce 3 and 512 MB of RAM. Any ideas fixing this problem? Thanks. this is most likely an installation problem. Did you try to upgrade from 0.1 or did you do a fresh install. if you did an upgrade, you should rerun the installer, and make sure to choose 'Upgrade' from the drop-down menu (instead of Full Install') and rerun the installer. If you did a full install, please cut and paste the entire message that appears on th screen. Title: Re: Problems with starting and also with keys. Post by: Tirol on March 08, 2003, 02:35:36 am I did a full install. Here's the message:
Initializing SDL (pure) SDL driver used: directx SDL initialized. Initializing Screen. Set resolution to: 640x480x32 Initializing SDL audio subsystem. SDL audio subsystem initialized. Initialzing MixSDL mixer. MixSDL using driver 'SDL_audio' MixSDL mixer initialized. opened dsound at 44100 Hz 16 bit stereo, 2048 samples audio buffer Initializing sound decoders. Sound decoders initialized. 0 joysticks were found. Kernal failed to load! Title: Re: Problems with starting and also with keys. Post by: Ilyak on March 08, 2003, 09:29:22 am check if there is {Dir where uqm is installed}\content\starcon.ndx.
if there is no, thats a problem. Title: Re: Problems with starting and also with keys. Post by: Tirol on March 09, 2003, 12:57:31 am Quote check if there is {Dir where uqm is installed}\content\starcon.ndx. if there is no, thats a problem. I have that file in my content folder. Any other ideas? Title: Re: Problems with starting and also with keys. Post by: madeofpeanuts on July 11, 2003, 05:34:11 am yeah, any other ideas? i am having the exact same problem
|