The Ur-Quan Masters Discussion Forum

The Ur-Quan Masters Re-Release => Technical Issues => Topic started by: fwiffo42 on January 08, 2003, 07:56:17 am



Title: Mac OS X Success
Post by: fwiffo42 on January 08, 2003, 07:56:17 am
I've had some success at getting UQM to run under Mac OS X.  I got it to compile after playing with some of the build environment stuff.  I haven't tested it extensively, but it seems to work.  The one thing I noticed was that in OpenGL mode all of the colors are messed up.  I don't know if this is a known issue or not, but thought I would mention it.

-fwiffo


Title: Re: Mac OS X Success
Post by: Death 999 on January 08, 2003, 08:32:32 pm
Can I have your .app?

::gets excited::


Title: Re: Mac OS X Success
Post by: Mika on January 08, 2003, 09:32:45 pm
Quote
The one thing I noticed was that in OpenGL mode all of the colors are messed up.
Are you using 0.1 or current CVS version? It should be fixed in CVS (atleast I applied one patch for it once), but I've altered opengl code some more after that to fix another bug so in theory it might need some fixing again for OS X.


Title: Re: Mac OS X Success
Post by: fwiffo42 on January 08, 2003, 10:20:59 pm
I'm using the current CVS version.

-fwiffo


Title: Re: Mac OS X Success
Post by: fwiffo42 on January 08, 2003, 11:28:32 pm
If you want to download a binary, you can get it from http://www.andrew.cmu.edu/~jge/uqm-cvs-macosx.tar.gz  you still need to install the SDL, SDL_image, SDL_mixer, and vorbis libraries from fink.  Also, I compiled this on a machine running Mac OS X 10.2.3, it may not work on anything else.

Good Luck-

-fwiffo


Title: Re: Mac OS X Success
Post by: Will on January 09, 2003, 01:06:17 am
Wow, very cool!  However, a question.  I pulled the 0.1 content off of the web site.  When I run your binary with that, it starts up.  I get the splash screen to fade in, to fade to the menu screen.  Alas, I cannot click, or get any keys to do anything like interact with the menu.  After some seconds, it fades back to splash, and then back to menu, in an endless loop.  Do you have any idea what is wrong? (Or is this as far as you can have yours get?)


Title: Re: Mac OS X Success
Post by: Peter Berger on January 09, 2003, 01:08:11 am

Someone earlier indicated that they didn't see any benefit to having a ProjectBuilder project file for the source; but this is the reason:  if you can build with projectbuilder, you can distribute a packaged .app that doesn't require the user to separately build or finkify the various SDL things.

I managed to build ./uqm via gcc, but it's crufty and unsatisfying (the build process!  not the work -- thanks, guys!).  An integrated mac package would be so much nicer once we're out of beta.

I haven't put much effort into the projectbuilder path since christmas, mostly because of all the duplicated symbol issues that i know were actively being worked on.  maybe i'll have another go at it.

-Pete
PS: As a software engineer, the other thing i'll say is that if you can take your project and easily put it into various build systems, that's a good confirming sign that there aren't hidden dependencies on custom-rolled build environments, which are IMHO almost always a bad thing.  So it's a useful exercise in and of itself, because it gives you greater confidence in the correctness of your code.  Just like linting, in fact.


Title: Re: Mac OS X Success
Post by: Death 999 on January 09, 2003, 03:16:25 am
I'm ALMOST there:
I have the uqm-debug, I have the libraries finked in... but here's the remaining problem:
Couldn't initialize joystick subsystem: Joystick: Couldn't create a HID object iterator.
I'm not even USING a joystick. Is there some way to prevent this question from being asked?

Might it be because I'm on System 10.1.5? We might have a more primitive way of handling peripherals... or something...


Title: Re: Mac OS X Success
Post by: Will on January 09, 2003, 04:44:51 am
I stand corrected.  I got the CVS code, and it plays now!
One odd thing left.
I can't hear any speech.
For instance, when the probe hits me as I enter Earth's vicinity at the start of the game, the console gives this:

SpliceTrack(): loading comm/urquan/urqua027.ogg
SpliceTrack(): Mix_LoadWAV failed for comm/urquan/urqua027.ogg: Unrecognized file type (not VOC)

If I run uqm-debug with the PC music, it still won't play.  The 3DO music oggs play just fine, though.
All of my SDL stuff is from fink unstable, I'm running 10.2.3.  Any ideas?


Title: Re: Mac OS X Success
Post by: Nic. on January 09, 2003, 05:33:27 am
That means you don't have OGG support, which would make sense if you were using SDL_mixer from Fink instead of the bleeding-edge version..  The "Downloads" page explains all that..

I'm working on getting an OSX version running with OpenAL, which is proving challenging because the dev tools on OSX 10.1 are a thalidomide abortion. (for starters, "gcc -MM" doesn't work, and it just gets better from there)

But I'm pretty close, and might have something to offer publically in the next few days..  We shall see..

UPDATE: I finally got it to build, (and run!) after disabling joystick support and a bunch of other crap.  Now the only thing barring me from giving it away is that it plays static instead of Oggs.  Really funny, because it plays MOD files just fine, and doesn't seem to play WAV files at all.  Oh, and "pure SDL" looks fine, OpenGL mode has screwy colours.

But at the very least, I can now look into doing what I was trying to do originally, getting this thing localised into a .app for maximum fun; then when I get the kinks workedout it will be ready to go.  In theory.


Title: Re: Mac OS X Success
Post by: Death 999 on January 09, 2003, 08:03:27 pm
Excellent! Can you post the executable, even if it isn't a .app yet?


Title: Re: Mac OS X Success
Post by: Nic. on January 09, 2003, 08:46:05 pm
That wouldn't be proper, it's still very broken on my machine just yet.  All good things in good time. :)


Title: Re: Mac OS X Success
Post by: EldritchEvil on January 09, 2003, 09:01:42 pm
FASTER!!!  ;D





Title: Re: Mac OS X Success
Post by: Irresponsible Capt. Tylor on January 09, 2003, 09:03:03 pm
Hey, I am using Fwiffo's build with the SDL and vorbis files installed
from fink.  The program runs, but comes up with a black window.  The
terminal keeps spouting "Couldn't get cel data from..." many differnt files.  I checked to make sure that all those files are there.  Any clue what is going wrong?  Anyone else have this problem?


Title: Re: Mac OS X Success
Post by: fwiffo42 on January 09, 2003, 09:47:00 pm
Is the executable in the same directory as the content directory?

-fwiffo


Title: Re: Mac OS X Success
Post by: Irresponsible Capt. Tylor on January 09, 2003, 10:27:01 pm
Yes, the executable is in the same directory with the content directory.
(the sc2 directory).  I tried temporarily putting it in the content directory
because the path names of the files it can't get cel data from don't begin
with content/ .  This caused even more errors so I moved it back out to
the sc2 directory.

Here is a small sample of what it is spouting to the terminal:

We've loaded the Kernel
       'lbm/title.ani' -- 19 bytes
Couldn't get cel data for 'lbm/title.ani'
       'arilou.shp' -- 301 bytes
       'arilou/ariicons.ani' -- 50 bytes
Couldn't get cel data for 'arilou/ariicons.ani'
       'arilou/arimicon.ani' -- 46 bytes
Couldn't get cel data for 'arilou/arimicon.ani'
       'arilou/aritext.txt' -- 407 bytes
       'arilou/arilou.cod' -- 1 bytes
       'chmmr.shp' -- 345 bytes
       'chmmr/chmicons.ani' -- 48 bytes
Couldn't get cel data for 'chmmr/chmicons.ani'
       'chmmr/chmmicon.ani' -- 48 bytes


Title: Re: Mac OS X Success
Post by: Iamlindoro on January 09, 2003, 11:51:20 pm
I also am recieving the "HID object iterator" error when uqm-debug tries to detect a joystick.  Now, I suppose it would work fine if I had an HID compliant joystick, but I do not... I suspect this might be some sort of strange SDL problem, but I updated to the latest SDL CVS and still get the error message... I also noticed there is a similar error for one of the BSD users on this forum.  Any feedback on why this happens, and hopefully a solution?

Thanks,

Iamlindoro


Title: Re: Mac OS X Success
Post by: Astronautism on January 13, 2003, 06:29:55 pm
Quote

We've loaded the Kernel
       'lbm/title.ani' -- 19 bytes
Couldn't get cel data for 'lbm/title.ani'
       'arilou.shp' -- 301 bytes
       'arilou/ariicons.ani' -- 50 bytes
Couldn't get cel data for 'arilou/ariicons.ani'
       'arilou/arimicon.ani' -- 46 bytes
Couldn't get cel data for 'arilou/arimicon.ani'
       'arilou/aritext.txt' -- 407 bytes
       'arilou/arilou.cod' -- 1 bytes
       'chmmr.shp' -- 345 bytes
       'chmmr/chmicons.ani' -- 48 bytes
Couldn't get cel data for 'chmmr/chmicons.ani'
       'chmmr/chmmicon.ani' -- 48 bytes


I received these exact error messages when I tried building uqm using SDL libraries installed via Fink. I removed all of the SDL libraries and re-installed them using the packages at www.libsdl.org (and built the CVS version of SDL_mixer in PB). This got rid of the cel data errors.


Title: Re: Mac OS X Success
Post by: Nic. on February 01, 2003, 10:05:09 am
You can download a compiled .app for MacOS X here:

http://www.submedia.net/uqm/