UFO:Alien Invasion

Technical support => Mac => Topic started by: goldenmonkey on January 17, 2008, 03:39:38 pm

Title: 2.2 Mac dmg install
Post by: goldenmonkey on January 17, 2008, 03:39:38 pm
Thanks to whoever built the mac dmg for 2.2. As downloaded on a fairly standard mac setup, the application immediately terminates with no error message.

To make it run, you'll need to install the SDL framework by hand- download it from the SDL site, then stick the framework into the /Librarary/Frameworks

Then it all works.

This step wasn't required for 2.1- perhaps there should be a note in the install package, or maybe the dmg should include the SDL and do this step automagically.

Thanks for all the work getting the mac port to work- it's a lot more than the original X-COM folks ever did.
Title: Re: 2.2 Mac dmg install
Post by: drix on January 18, 2008, 02:30:49 am
Hi,

Same problem here with a MacBook Pro Intel Core Duo processor with ATI Radeon X1600.

If I start with the command line I obtain this error:
Code: [Select]
/Applications/UFOAI.app/Contents/MacOS/ufo; exit
Welcome to Darwin!
Reading ~/.bash_profile
Reading ~/.bashrc
[drix00] drix00 $>/Applications/UFOAI.app/Contents/MacOS/ufo; exit
dyld: Library not loaded: @executable_path/../Frameworks/SDL.framework/Versions/A/SDL
  Referenced from: /Applications/UFOAI.app/Contents/MacOS/../Frameworks/SDL_mixer
  Reason: image not found
Trace/BPT trap
logout
[Process completed]

If I install the SDL framework into the /Librarary/Frameworks the game start correctly.

Thanks,
Drix
Title: Re: 2.2 Mac dmg install
Post by: Mattn on January 18, 2008, 07:00:00 am
the problem is, that noone on the team has mac access - the dmg was kindly created by a mac contributor (tchristney) - but not tested on a lot of systems. if you have experience in building dmg, please have a look and send us patches. the important stuff is in build/install.mk and src/ports/macosx/installer

thank you very much
Title: Re: 2.2 Mac dmg install
Post by: kreo123 on January 18, 2008, 08:40:37 pm
It starts after installing SDL as described crashes soon after that :(

I have santa rosa c2d 2.2GHz macbook white, with intel x3100 graphics. Startup screen shows up, but dissapears if you try to click on it.

this is the last output on terminal:
...
===== UFO Initialized ======

Cinematic videos/intro.roq not found
Switch grab input off
S_Music_Start: Playing music: 'music/PsymongN3'

Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 18, 2008, 11:04:35 pm
Hi Everyone. I'm the guy responsible for your problems. I haven't modified the build setup from 2.1, other than to enable a universal binary. I know what is happening with the SDL problems and the fix is quite easy. Basically there are two options - install the frameworks globally as you have done OR to install them in UFOAI.app/Contents/Frameworks/. I will modify the copy files section of the Makefile to do the right thing, although the best I'll be able to do is put a patch on the sourceforge site. I'll reupload the dmg after fixing the issue.

Other than that SDL issue, is the program working for you?

kreo123, could you use Console.app to see if there are any errors reported in there (and post them here if there are)?
Title: Re: 2.2 Mac dmg install
Post by: ox on January 18, 2008, 11:07:38 pm
i installed the sdl framework like drix after getting his error message.
but the game doesnt starts at all.

does some have an idea why?

the ufoai icon jumps at the dock. but the nothing else happes.

mbp c2d x1600

thx
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 19, 2008, 01:35:52 am
Please start /Applications/Utilities/Console.app.

Look for entries related to UFOAI.app/Contents/MacOS/ufo and report any errors here. This is the ONLY way that I can have a hope of helping anyone with these issues.
Title: Re: 2.2 Mac dmg install
Post by: ox on January 19, 2008, 12:27:23 pm
19.01.08 12:24:52 [0x0-0x7b07b].UFOAI[1325] objc[1325]: Class SDL_QuartzView is implemented in both /Applications/UFOAI.app/Contents/MacOS/../Frameworks/SDL.framework/Versions/A/SDL and /Applications/UFOAI.app/Contents/MacOS/../Frameworks/SDL. Using implementation from /Applications/UFOAI.app/Contents/MacOS/../Frameworks/SDL.


thats all. sry
Title: Re: 2.2 Mac dmg install
Post by: kreo123 on January 19, 2008, 04:15:45 pm
i installed the sdl framework like drix after getting his error message.
but the game doesnt starts at all.

does some have an idea why?

the ufoai icon jumps at the dock. but the nothing else happes.

mbp c2d x1600

thx


Hi, I had a same problem and found solution in another thread - you have to start the game in fullscreen.
Title: Re: 2.2 Mac dmg install
Post by: ox on January 19, 2008, 06:10:09 pm
there is only one button.
how can i start in fullscreen?
thx
Title: Re: 2.2 Mac dmg install
Post by: kreo123 on January 19, 2008, 06:37:28 pm
Run it form terminal.app adding +set vid_fullscreen 1

So it should be run with something like this (from terminal):
/Applications/UFOAI.app/Contents/MacOS/ufo +set vid_fullscreen 1

However, you'll probably have crash problems on tactical missions... I managed to finis only 1 out of 3 without a crash :(
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 12:18:17 am
Just to confirm that the DMG doesn't work as built but adding the SDL files as per tchristney's instructions does resolve the issue.  FWIW I didn't need to use fullscreen.

I've only been playing briefly but have had no issues with the first 3 missions, UFO interceptions or any other game activities.

Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 12:44:00 am
I can't get this game to even start, and I really don't understand what you guys are talking about? SDL's? Framwork? what does all this mean. someone please help me getting this game running. I'm dying to play this game! I'm losing my mind trying to figure this out, lord have mercy I even downloaded dosbox to try and play x-com and I don't understand that either. I'm losing faith here.
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 02:20:01 am
Grab the files from http://www.libsdl.org/release/SDL-1.2.13.dmg

Open the DMG and copy the SDL.framework folder to either /Library/Frameworks or (as I did) to <your install path to game>/UFOAI.app/Contents/Frameworks/

Then sit back, run game and enjoy!

BTW has anyone noticed there's a bug with reaction fire always taking 7 TU's and not reflecting the weapon or fire mode?  If not I'll open another topic for it.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 02:50:30 am
hey thanks for the help stormcrow, but I still need help. I put the sdl.framework folder in frameworks, what about the devel-lite folder that comes with the sdl.framework folder?

anyway, my problem is this, I can get as far as a screen with 3 characters and the planet behind them, then these options open up, volume etc....but as soon as I click on the screen the game crashes, I can still hear the music, but nothing else.....

what should I do now?
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 20, 2008, 04:14:33 am
Did you install all three SDL frameworks (frameworks are self-packaged bits of code)? In /Library/Frameworks you should have at least directories named SDL.framework, SDL_mixer.framework and SDL_ttf.framework. Also, if you are having problems PLEASE post the output from Console.app!

For everyone having strange problems - I am confident that I have found where the problems relating to libraries are cropping up. I am working on it - there is a script during the build stages that is written in perl. I am not a perl expert so it's taking longer than I hoped. Please be patient.
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 05:34:27 pm
Legend, tchristney is trying to help you.  As our crystal ball is a little cloudy, the only way we can help you is if you help us by pasting the output from the console.  ;)

You shouldn't need to worry about the dev-lite folder and should have the 3 directories that tchristney has said above.

Finally can you just confirm what machine you're running this on?
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 05:58:30 pm
ok guys i'll try to give you the best info I can, here we go.

Stormcrow, you gave me a link for the SDL.framework and I installed it in library/frameworks as you instructed,

Tchristney says I should have 3 directories in library/framework
1-SDL.framework,
2-SDL_mixer.framework
3-SDL_ttf.framework
I only have SDL.framework in library/framework,

so Stormcrow,Tchristney sorry for my lack of knowledge but I have no idea how to get the output from the console. is it something thats supposed to happen automatically? all that happens is that I click on the screen and it closes with the music still playing and nothing else.

and finally stormcrow, I have a 1.5 GHz PowerPC G4, with 1 GB DDR SDRAM, ATI Mobility Radeon 9700.

thanks for the help guys! I can't WAIT to play this game  ;D

Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 06:14:15 pm
Legend

Can you open /Applications/Utilities/Console click the log tab and then select Crashreporter and then ufo.crash.log?  This will tell us what went wrong with the game. 

For future reference, you'll notice a lot of other things log here, bear it in mind for any issues you might have with your system.

Also open Terminal (also in Utilities) and give us the output of the following commands

ls -la /Library/Frameworks/
ls -la <REPLACE WITH YOUR INSTALL PATH TO GAME>/UFOAI.app/Contents/Frameworks/

Ahh PPC, I know this should all be universal binary but has anyone else got this working on a PPC?

Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 06:36:40 pm
Just to remind you guys,

Tchristney says I should have 3 directories in library/framework
1-SDL.framework,
2-SDL_mixer.framework
3-SDL_ttf.framework
I only have SDL.framework in library/framework,
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 20, 2008, 06:39:17 pm
OK, I've been working on making the package "just work" but I'm actually very new to this project. The previous Mac developer (who did some great work, bless him/her) did some strange things when installing the frameworks into the app bundle that were totally unnecessary and were sort of broken. Some of you are obviously a step ahead of my by having a second Mac to test on ;) That's one of the problems with being a developer - you get your environment set up in ways that users shouldn't have to and it can be tricky to get things to work the way they should on vanilla installs of Mac OS X.

About Console - it is a totally separate program installed in /Applications/Utilities/Console. It logs output from programs that write to the "standard" output and error "streams". It can be instructive and is worthwhile to take a peek even if you aren't having problems with an application. If you are having problems it is critical for developers because that is where Mac OS X logs things like missing library messages.

I'm currently uploading a new dmg that I believe has the frameworks and other libraries in the right place and everything is pointing to the right place. It should be up later today.

Hmm, PPC. I have a friend who was working off one of my previous builds so hopefully that isn't a problem.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 06:43:55 pm
thanks for the info tchristney, I guess i'll just sit here and wait for the new dmg to go up. is it a dmg that we have to add to what we already have or is it a complete game download?
can't wait!
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 06:45:11 pm
Legend

Sorry look under ~/Library/Logs/Crashreporter, ufo should be there.

Also can you run the terminal commands I asked for above? This will help us understand what you have installed.
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 20, 2008, 06:46:37 pm
Wow. OK, that crash log has nothing to do with ufo:ai, but thanks anyway!

SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/)

SDL_ttf (http://www.libsdl.org/projects/SDL_ttf/)

The uploaded version is the full game, not a patch. Sorry, but the tools just aren't set up to split the programs and data into separate packages.

BTW, thanks for the help stormcrow, and thanks for everyone's patience.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 06:49:57 pm
NO! thank you guys for your hard work!  ;)  :D  :)  8)
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 06:50:40 pm
tchristney

It's been a long time since I did any coding (and not on a mac) but I hear you about trying to replicate a vanilla install!

There's a couple of things I'd suggest

1) Mac gets it's own forum section, making it easier for mac users to find help and each other (few that we are)  ;)

2) When you build a dmg in future we should set the right expectation by calling it something like a Release Candidate until it's proved as working. Then we can just rename the package once we know it works.

And finally thanks for building this dmg, it saves me compiling the code and I always prefer the path of least resistance!!  Also if you want someone to test the images I'm happy to help out where I can provided I can avoid losing previous saved games etc!
Title: Re: 2.2 Mac dmg install
Post by: BTAxis on January 20, 2008, 07:39:25 pm
1) Mac gets it's own forum section, making it easier for mac users to find help and each other (few that we are)  ;)

Done.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 07:55:53 pm
Honestly, I have no idea what I just did with that info I gave you, hopefully that's what you need, but with my luck it probably isn't.   :'(
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 08:03:22 pm
Thanks BTAxis!!

Legend

Yes I'm guessing since you placed the SDL.framework in /Library/frameworks it then got confused when it couldn't find the other frameworks.  Anyway now you've added the other two that should be better.  Does it work now?

Also you might want to edit that post as it shows your name, your choice.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 08:23:11 pm
Honestly, now that I added the other two SDL's its not working at all. I have the UFOAI icon on the bottom of the screen bouncing up and down but nothing else.

I just don't think its meant to be, I'm giving up hope.   :'(
Title: Re: 2.2 Mac dmg install
Post by: stormcrow on January 20, 2008, 08:27:42 pm
Ok try and put the SDL.framework folder in the <REPLACE WITH YOUR INSTALL PATH TO GAME>/UFOAI.app/Contents/Frameworks/ and rerun the game.

Just that folder.  It's what I did to get it working.  It's odd you don't get a crashlog file.  I can only suggest that you repair permissions via the DiskUtility tool.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 08:48:21 pm
nothing!  >:(
I open the game and I see a window for a split second and it disappears. I just don't think this is going to work, this shouldn't be so damn difficult. tchristney said he's going to put up a new DMG for download, whats the ETA on that? I will give that a chance and if not, I will have to stop trying, this is really making my weekend a sour one.

I really am thankful for all your help gentlemen!  ;)
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 20, 2008, 09:10:39 pm
OK, the modified dmg has been uploaded to sourceforge.net but we have to wait for one of the project developers to get it onto the main download site.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 09:17:51 pm
cool, so we should be able to download it later today?
wish me luck guys!   :-\
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 20, 2008, 11:16:16 pm
It should be up now. Good Luck!
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 20, 2008, 11:23:13 pm
I see a download that has a date of january 11th, is this right? I downloaded that and it still won't work! i'm hoping maybe i'm supposed to wait a little longer?
Title: Re: 2.2 Mac dmg install
Post by: Mock on January 21, 2008, 01:29:01 am
First I'd like to say, thank you so very much for such a great game, and with a Mac version too!

I have successfully downloaded and played on my intel MacBook running 10.4.x, however my brother is having problems with his G5 powermac.  Here is his crashlog:

Quote
**********

Host Name:      Beatrice.local
Date/Time:      2008-01-20 16:00:48 -0800
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: ufo
Path:    /Entertainment/Demos/UFOAI.app/Contents/MacOS/ufo
Version: ??? (???)
PID:     563
Thread:  Unknown

Link (dyld) error:

dyld: /Entertainment/Demos/UFOAI.app/Contents/MacOS/ufo Undefined
symbols:
/Entertainment/Demos/UFOAI.app/Contents/MacOS/ufo undefined reference
to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib
/Entertainment/Demos/UFOAI.app/Contents/MacOS/ufo undefined reference
to ___stdoutp expected to be defined in /usr/lib/libSystem.B.dylib

**********

I'm hoping it's not just because he's running 10.3.  Any help would be appreciated!
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 21, 2008, 01:34:59 am
Unfortunately it is only because he is running 10.3. I was just testing this on my old computer and am getting the same messages. The program is trying to dynamically link to code that apparently is non-existent in 10.3. I will try to investigate whether or not I can make it work on 10.3 but I can't guarantee anything.

First I'd like to say, thank you so very much for such a great game, and with a Mac version too!

I have successfully downloaded and played on my intel MacBook running 10.4.x, however my brother is having problems with his G5 powermac.  Here is his crashlog:

I'm hoping it's not just because he's running 10.3.  Any help would be appreciated!
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 21, 2008, 01:41:18 am
I see a download that has a date of january 11th, is this right? I downloaded that and it still won't work! i'm hoping maybe i'm supposed to wait a little longer?

The dates didn't change for the updated dmg file, but I assure you the file is different. So if you downloaded it after my post here at 11:16 (seems to be pretty fast turn around...) then the problem must be somewhere else. But don't give up hope! I really do want you to be able to run the game, and fixing your problems with it will only help everyone else!

Edit: I am still seeing zero downloads on the sourceforge.net downloads page so I'm guessing you still have the old version.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 21, 2008, 02:47:06 am
Well hot damn! its running, the damn game is running. god bless you guys! you have no idea how much I wanted to get that old x-com type gameplay this weekend.

alright guys, I'll let you know what I think of the game, gonna start playing right now!
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 21, 2008, 04:00:53 am
Great news! I advise all Mac users to use the newest version. There are some strange things going on with the old version which means that you may end up having two instances of the SDL library running. If you have no idea what I'm talking about, trust me that it is unlikely to be a good thing.
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 21, 2008, 05:03:33 pm
Well! now that I have this game up and running, I absolutely love it. god damn this game brings back memories! great job fellas, keep up the good work. the only complaint I have is that I wish the game would give you a better idea of which soldier is under attack, thats about it for now, oh I also ran into a little problem where one of my soldiers walked into a garbage can and couldn't move for the rest of the mission, he could shoot just not move. no big deal it only happened once.

anyway, let me go back and play some more.
Title: Re: 2.2 Mac dmg install
Post by: tchristney on January 21, 2008, 06:10:51 pm
Problems like that can be fixed if they are recorded properly. Note down the level and location and if you can remember, the exact sequence of clicks that resulted in getting stuck (i.e. where he started from and where he was pointing when he started, where you clicked him to move to, etc. The more information the better!) Then follow the information in the bug reporting page (http://ufoai.ninex.info/wiki/index.php/Bugs) and hopefully somebody will be able to fix it for the next release.
Title: Re: 2.2 Mac dmg install
Post by: Mattn on January 21, 2008, 08:07:07 pm
yes, please make a screenshot of such situations - F12 is the key to make some - and open a bugtracker[1] item

[1] http://sourceforge.net/tracker/?atid=805242&group_id=157793&func=browse
Title: Re: 2.2 Mac dmg install
Post by: legend_c4a@yahoo.com on January 22, 2008, 12:11:18 am
Yikes! all I remember is this, it was a mission at a supermarket, and there was a garbage can in the entrance of the supermarket, I thought I had sent the soldier to the other side of the wall but he walked right up to the garbage can and he was done for the rest of the mission. I will make sure to take a pic and keep all the info the next time something like that happens. besides that, the game is way too much fun, and exactly what I was hoping for, keep up the good work!
Title: Re: 2.2 Mac dmg install
Post by: GoreLeech on January 27, 2008, 04:18:09 am
G'day.
I'm totally new to this...but I've read the entirety of this post...and it mirrors my own problem (yes I AM on 10.3.9 >.<) I am in the process of downloading the DMG off of Sourceforge.net.
thank goodness for this, if it truely IS the fix (on a side note, i would suggest letting the good folks at Apple Downloads page know of this update. I obtained my "copy" of UFOAI from there, and it obviously was the "bad" copy, that does not work on this OS.)
That is All. in a few minutes I will know if this patch-esque version you have so graciously released is worth the time and effort. ^-^ from the looks of it, this should be a decent game (if this decrepit old eMac will run it >.< Sadly I DO have an Intel, 10.4.11 iMac, 2 gigs of RAM the whole bit.....but its the family comp, and it's annoying to have nothing good on this little ol' eMac.)

:EDIT:

No It did NOT work, sadly. it seemed to be having trouble copying the UFOAI.app to the desktop. It gives me the message of "The Finder cannot complete the operation because some data in "0music.pk3" could not be read or written. (Error code -36)."
Let me know if you wish to obtain the error logs, ill gladly supply
Title: Re: 2.2 Mac dmg install
Post by: tchristney on February 01, 2008, 11:01:33 pm
Sorry, the game does not work on 10.3.x due to an incompatibility in the system libraries.