Log in

View Full Version : More Mac OSX problems


Chimpman
March 16th, 2004, 05:09 AM
I got the game to work just fine on my PC, but I'm having trouble getting it to work on my mac. I searched through other Posts in this forum and followed the instructions for installing SDL and the 2.08 patch. Here is the error message that I get in the console log:

mkdir: No such file or directory
SDL_SetVideoMode failed: Failed creating OpenGL pixel format
NÂgot gick fel!
Failed to init OpenGL
NÂgot gick fel!
Failed to init OpenGL

Does anyone have any ideas. I am primarily a PC user, but my mac is an ibook. I'm looking forward to playing Dom2 wherever I might go ;D.

Thanks in advance for any help you can give.

Johan K
March 16th, 2004, 04:47 PM
Seems like Dominions isn't able to get a 800x600 double buffered screen for OpenGL. Try running it with this switch -w and see if it runs better in a window. Otherwise you could try --res 640 400 and maybe you will get lucky there.

Chimpman
March 16th, 2004, 09:12 PM
Thanks for the quick reply! I'll try that when I get home and let everyone know how it works out.

Uhmmm... As I am not primarily a mac user perhaps a friendly person could explain to me how to set switches for the application on a mac. I may be able to figure it out on my own, but then again I may not be able to.

Chimpman
March 17th, 2004, 04:17 AM
Nope, thought I could figure it out, but I'm totally lost. If anyone can tell me how to set the switch on a mac app I'd really appreciate it.

Chimpman
March 17th, 2004, 04:57 AM
Nope, thought I could figure it out, but I'm totally lost. If anyone can tell me how to set the switch on a mac app I'd really appreciate it.

Chimpman
March 17th, 2004, 05:10 AM
Nope, thought I could figure it out, but I'm totally lost. If anyone can tell me how to set the switch on a mac app I'd really appreciate it.

Etaoin Shrdlu
March 17th, 2004, 09:15 PM
Originally posted by Chimpman:
I got the game to work just fine on my PC, but I'm having trouble getting it to work on my mac. I searched through other Posts in this forum and followed the instructions for installing SDL and the 2.08 patch. Here is the error message that I get in the console log:

mkdir: No such file or directory
SDL_SetVideoMode failed: Failed creating OpenGL pixel format
NÂgot gick fel!
Failed to init OpenGL
NÂgot gick fel!
Failed to init OpenGL

Does anyone have any ideas. I am primarily a PC user, but my mac is an ibook. I'm looking forward to playing Dom2 wherever I might go ;D.

Thanks in advance for any help you can give. <font size="2" face="sans-serif, arial, verdana">See the Last handful of Posts in the thread I started... when I got it to work, I felt like the cat that had extracted a mouse that was hiding in his own ear... at the same time so clever for looking there and so dense for not noticing the unbalanced weight on his head. http://forum.shrapnelgames.com/images/icons/tongue.gif
Command-click on the dominions2.app file, then control-click. You will see the "Show package contents" prompt. This was the part I was missing the whole time. Go through the Contents/Resources line. Anything in the patch that has an Older Version in the original? Replace from the patch. It'll ask for your user password at least once.
Now for the key move. Contents/MacOS. There will be a Unix executable. Take the Unix executable from the patch and dump that in replacing the original again. Poof. Done. Just don't play Jotunheim Utgard.

Chimpman
March 18th, 2004, 02:08 AM
Thanks Kristoffer, that did the trick. See below for more details though.

Etaoin: I read those threads and they were very helpful, but I think we are having slightly different problems. If I understand this right my ibook has a res of 800 600, and dom2 has a default res of something else (something incompatible). So when I tried to run on my ibook the sdl barfs.

I am seeing some funny things:
If I use this command line
dominions2.app/Contents/MacOS/dominions2 -w

the app starts up ok and I get the entry screen (after having already put in my key). However if I mouse over the "Create a new God" option, the "Quit" option highlights. If I mouse over "Create a new Game" then "Map Editor" highlights. It's like the x coordinates are flipped. I have to click "Quit" in order to "Create a new God"
I haven't actually gotten into the game yet, but all of the selection boxes are working like this (with the x-axis flipped in some way). This is very strange.

If anyone has seen this or has any idea of what's going on, please let me know. I can provide more information if needed.

Kristoffer O
March 18th, 2004, 02:56 AM
Start a terminal window and write something like this.

$ cd Desktop
$ dominions2.app/contents/MacOS/dom2 -w

This assumes you have put dominions2 on your desktop.

st.patrik
March 18th, 2004, 03:03 AM
Originally posted by Chimpman:
Thanks Kristoffer, that did the trick. See below for more details though.

Etaoin: I read those threads and they were very helpful, but I think we are having slightly different problems. If I understand this right my ibook has a res of 800 600, and dom2 has a default res of something else (something incompatible). So when I tried to run on my ibook the sdl barfs.

I am seeing some funny things:
If I use this command line
dominions2.app/Contents/MacOS/dominions2 -w

the app starts up ok and I get the entry screen (after having already put in my key). However if I mouse over the "Create a new God" option, the "Quit" option highlights. If I mouse over "Create a new Game" then "Map Editor" highlights. It's like the x coordinates are flipped. I have to click "Quit" in order to "Create a new God"
I haven't actually gotten into the game yet, but all of the selection boxes are working like this (with the x-axis flipped in some way). This is very strange.

If anyone has seen this or has any idea of what's going on, please let me know. I can provide more information if needed. <font size="2" face="sans-serif, arial, verdana">This happens in windowed mode for me (iMac user). But not in full screen. I did report the bug - it seems it is a bug since you also have experienced it.

Chimpman
March 18th, 2004, 04:10 AM
This happens in windowed mode for me (iMac user). But not in full screen. I did report the bug - it seems it is a bug since you also have experienced it. <font size="2" face="sans-serif, arial, verdana">That's unfortunate for me, since I can't seem to get this thing to run in full screen mode. Darn. It's a little frustrating.

Johan K
March 18th, 2004, 12:12 PM
That seems unfortunate. I believe it is a bug in SDL that is causing this. Maybe you could try to download and install the quite new SDL Version 1.2.7 for www.libsdl.org (http://www.libsdl.org) . The SDL on the Dominions CD is old.

Goad
March 18th, 2004, 06:46 PM
I use the SDL framework that comes with the demo, and can run in full-screen mode.

I also experience incorrect mouse position in windowed mode. It is not random, it is inverted (move the mouse up, and where the app thinks the pointer is moves down). But left-right is not inverted. An underlying byte-order issue? Perhaps.

I apparently have some Version of sdl on my machine somewhere as the app will start up without the SDL framework, and has correct mousing in windowed mode. But, it crashes when you get to "start game."

Chimpman
April 8th, 2004, 02:51 AM
Wow! Thanks Dom2 team! I'm totally stoked that you managed to get a fix for the mac osx bad mouse problem into the current patch. I tried it and it seems to work ok. There is still a minor x-axis problem -- I'd say that the mouse is still above its clickable location by about x+20pixels. Still minorly annoying, but totally playable. I'm heading off now to play a game.

Thanks guys. We the fans do appreciate it.

Chimpman
April 8th, 2004, 02:56 AM
oops. I noticed that if I set my res to 640 400 then the x-axis mouse position is perfect.

wombatsSAR
April 8th, 2004, 04:28 AM
Since this appears to be the OS X thread, can someone give me the proper instructions to the process of getting a mod to work ( (under OS X, just be absolutely clear)?

I've tried moving the hoburg alliance to the mods dir in the dominions 2 dir (hoburg.dm and the hoburgdata dir) but that doesn't seem to give me access to the mod. Just in case, I tried to put a copy of the HoburgAlliance dir in there as well, but that didn't give me access to the mod either. Am I just misreading something?

thanks

wombatsSAR - feel good about yourself, rescue a wombat.

wombatsSAR
April 9th, 2004, 06:29 PM
Umm, nevermind. I worked out my difficulty. However, am I allowed to whine that the modding.pdf file doesn't mention anything about going under the perferences menu and turning on the particular mods of interest?