MegaGlest Forum

Archives (read only) => Vanilla Glest => Linux and other ports => Topic started by: KaSek on 13 February 2008, 13:36:21

Title: Glest 3.0 package on Mac OS X
Post by: KaSek on 13 February 2008, 13:36:21
As asked, I create this new topic.

I ported Glest 3.0 to Mac OS X and packed it for easy installation.
Please see:

http://ciderhouse.ivory.ne.jp/wp/english/glest (http://ciderhouse.ivory.ne.jp/wp/english/glest)

Enjoy !
Title:
Post by: daniel.santos on 13 February 2008, 15:51:54
That's awesome!  Did you have to make any modifications?  Good job!
Title:
Post by: martiño on 13 February 2008, 19:36:42
thanks!
Title:
Post by: markroedel on 13 February 2008, 19:43:06
Doesn't run on my Macbook (with Leopard 10.5.2).

Error message is

Quote
Exception: Your system supports OpenGL version "1.2 APPLE-1.5.24"
Glest needs at least version 1.3 to work
You may solve this problem by installing your latest video card drivers


(The old Glest 2.01 port did run OK.  Graphics drivers are, to the best of my knowledge, fully up to date.)
Title:
Post by: KaSek on 14 February 2008, 15:20:45
Quote from: "markroedel"
Doesn't run on my Macbook (with Leopard 10.5.2).

Error message is

Quote
Exception: Your system supports OpenGL version "1.2 APPLE-1.5.24"
Glest needs at least version 1.3 to work
You may solve this problem by installing your latest video card drivers

(The old Glest 2.01 port did run OK.  Graphics drivers are, to the best of my knowledge, fully up to date.)


While Glest 2.0 for Mac never checked the version of OpenGL, my 3.0 does. I'm not sure Glest 3.0 really depends on OpenGL 1.3.
Anyway, please try "CheckGlCaps=0" in glest.ini. With this setting, Glest won't check the version of OpenGL.

Good luck.
Title:
Post by: markroedel on 14 February 2008, 19:28:24
Quote from: "KaSek"
While Glest 2.0 for Mac never checked the version of OpenGL, my 3.0 does. I'm not sure Glest 3.0 really depends on OpenGL 1.3.
Anyway, please try "CheckGlCaps=0" in glest.ini. With this setting, Glest won't check the version of OpenGL.

Good luck.


Yep...that change gets me in.  Thanks!
Title: Source code avairalbe
Post by: KaSek on 16 February 2008, 13:22:26
FYI.

I posted new Glest3App.dmg and source code on above page.
You don't need to download Glest3App again if Glest already works on your Mac.

BTW,
I found a serious problem in Glest 3.x and write a report in:

http://www.glest.org/glest_board/viewto ... 3620#13620 (http://www.glest.org/glest_board/viewtopic.php?p=13620#13620)

This is the reason why we can't connect to other platform (Linux/Windows).

Mac users don't need to care about this. I already fixed it in my Mac version.
Title:
Post by: martiño on 16 February 2008, 19:20:17
Hi Kasek,

I've read that you have ported Glest to Mac, does it mean that you have made a lot of changes to the source code? We could incorporate those into the official port if it is possible to make it easier for future releases. We could also host the binaries in the sourceforge website if that would be of any help.

Regads.

Martiño.
Title:
Post by: Auria on 18 February 2008, 21:38:30
Hey great job!

I take it it will only run on intel macs? (maybe should be specified)
Title:
Post by: AF on 19 February 2008, 17:17:02
Running on non intel macs would entail endian issues, that's assuming endianness wasn't addressed in the mac port.
Title:
Post by: Auria on 20 February 2008, 02:40:44
Hmm on the webpage it says it runs on PPC  :o not sure how he did it. Though he offers the code so maybe a diff could reveal changes
Title:
Post by: KaSek on 21 February 2008, 12:39:26
Quote from: "martiño"
Hi Kasek,

I've read that you have ported Glest to Mac, does it mean that you have made a lot of changes to the source code? We could incorporate those into the official port if it is possible to make it easier for future releases. We could also host the binaries in the sourceforge website if that would be of any help.

Regads.

Martiño.


Not so much, I think. I done it with adhoc way. You can do that more sophiscated way.

As for binary hosting, anytime you can do that. I think it's better for people outside Japan.

Thank you.
Title:
Post by: KaSek on 21 February 2008, 12:46:10
Auria, AF:

It works on my PowerBook. The spec. is:

PowerPC G4 1.33GHz
RAM: 768MB
GPU: nVidia GeForce FX Go5200 with 64MB VRAM
OS: 10.4.9

If you find an error message in glest.log or system's console log, please let me know.
Title:
Post by: Tael_ on 21 February 2008, 14:12:25
When launching it on my MacBook, I got the following error :
Quote
Exception: OpenGL extension not supported: GL_ARB_texture_env_crossbar, required for Glest


Any solution ?

Thanks.
Title:
Post by: greenmoss on 6 March 2008, 02:31:57
Definitely a good start for us Mac users!  :D



Can the package included some kind of notice instructing the user what to do after the app has downloaded? After a bit of fumbling, I read the notice on the site that says to download the data files, etc. Can the package offer to download these for the user and place them appropriately?



So I've got the data files, now I apparently need some kind of setting for the glest.ini file. I found a sample one for Linux, but the fonts don't work. Running the app using OS X "open" (eg "open /Applications/Glest/Glest.app/Contents/MacOS") shows me an error message:

void Shared::Platform::Window::setStyle(Shared::Platform::WindowStyle) not implemented.
2008-03-05 21:15:16.893 Glest[21477:10b] font is nil
2008-03-05 21:15:16.894 Glest[21477:10b] Didn't make display list
2008-03-05 21:15:16.895 Glest[21477:10b] font is nil
2008-03-05 21:15:16.895 Glest[21477:10b] Didn't make display list
2008-03-05 21:15:16.896 Glest[21477:10b] font is nil
2008-03-05 21:15:16.896 Glest[21477:10b] Didn't make display list
2008-03-05 21:15:16.897 Glest[21477:10b] font is nil
2008-03-05 21:15:16.897 Glest[21477:10b] Didn't make display list
2008-03-05 21:15:16.897 Glest[21477:10b] font is nil
2008-03-05 21:15:16.898 Glest[21477:10b] Didn't make display list
2008-03-05 21:15:16.898 Glest[21477:10b] font is nil
2008-03-05 21:15:16.899 Glest[21477:10b] Didn't make display list

Whereupon no fonts on the screen are readable.

I've tried various font settings in the  ~/Library/GlestGame/glest.ini file, eg

FontConsole=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontDisplay=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontMenu=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*

replacing "utopia" with "arial", "*", "none", etc. None work. Guess I'll hit IRC.



Can you include a sample glest.ini with the package? Or even install a default in the user home directory?



For the record, here is the contents of my glest.ini:

AiLog=0
AiRedir=0
CameraFps=100
ChangeDisplay=1
CheckGlCaps=1
ColorBits=32
ConsoleMaxLines=10
ConsoleTimeout=1
DayTime=1000
DebugMode=0
DepthBits=16
FactoryGraphics=OpenGL
FactorySound=OpenAL
FastSpeedLoops=2
Filter=Bilinear
FilterMaxAnisotropy=1
FirstTime=0
FocusArrows=1
FogOfWar=1
FogOfWarSmoothing=1
FogOfWarSmoothingFrameSkip=3
FontConsole=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontDisplay=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
FontMenu=-*-utopia-*-*-*-*-12-*-*-*-*-*-*-*
Lang=english.lng
MaxLights=1
PathFindLevelsMax=250
PathFindRefresh=10
PhotoMode=0
RefreshFrequency=75
ScreenHeight=600
ScreenWidth=800
ShadowAlpha=0.1
ShadowFrameSkip=2
ShadowTextureSize=256
Shadows=Projected
SoundStaticBuffers=16
SoundStreamingBuffers=4
SoundVolumeAmbient=80
SoundVolumeFx=80
SoundVolumeMusic=90
StencilBits=0
Textures3D=1
UpdateFps=40
Windowed=1
Title: 3.0.0r3 released
Post by: KaSek on 9 March 2008, 13:10:38
I released 3.0.0r3. Changes are:

Now GlestConf (configuration tool for Glest with Cocoa GUI) bundled.
Smaller fonts on game screen.
Precise calculation of font metrics.

You can get it from the same link above.
Title:
Post by: KaSek on 9 March 2008, 13:20:03
To greenmoss:

Glest3Data.pkg on my site includes modified glest.ini for Mac. The default fonts are Helvetica.  I suppose the users are using my data package.

And now you can use GlestConf to change the settings using the new version, 3.0.0r3.
Title:
Post by: Happy on 10 March 2008, 14:14:43
Just installed it on my MacBook Pro (OS X 10.4.11).
It works fine until I click "New Game" in the main menu.
After that it just quits silently. The Console says something like that.

Quote
void Shared::Platform::Window::setStyle(Shared::Platform::WindowStyle) not implemented.
/bin/sh: line 3:
awk: command not found
Couldn't process event: Error getting host by name (Error: Invalid argument)
/Users/kseki/Develop/glest-source-3.0.0/Xcode/../glest_game/network/network_manager.cpp:32: failed assertion `networkInterface==NULL'


 :)
Title:
Post by: KaSek on 10 March 2008, 15:45:32
To Happy:

The following message is always shown when you use Windowed mode:

void Shared::Platform::Window::setStyle(Shared::Platform::WindowStyle) not implemented.

What's the following log? Did you use shell script?

/bin/sh: line 3:
awk: command not found
Title:
Post by: markroedel on 10 March 2008, 16:06:57
Quote from: "Tael_"
When launching it on my MacBook, I got the following error :
Quote
Exception: OpenGL extension not supported: GL_ARB_texture_env_crossbar, required for Glest

Any solution ?

Thanks.


I get this as well on my MacBook...I hope we're not just out of luck until Apple releases updated OpenGL drivers for the integrated graphics card!
Title:
Post by: Happy on 11 March 2008, 11:39:05
Quote from: "KaSek"
To Happy:

The following message is always shown when you use Windowed mode:

void Shared::Platform::Window::setStyle(Shared::Platform::WindowStyle) not implemented.
After my first (unsuccessful) try I played with the GlestConf.app.
It says this if I use the "default settings".
Quote
Couldn't process event: Error getting host by name (Error: Invalid argument)
/Users/kseki/Develop/glest-source-3.0.0/Xcode/../glest_game/network/network_manager.cpp:32: failed assertion `networkInterface==NULL'

Quote from: "KaSek"
What's the following log? Did you use shell script?

/bin/sh: line 3:
awk: command not found

My fault ^^
This has nothing to do with Glest. It's probably one of my faulty scripts I used with "GeekTool".
 :-[
Title:
Post by: KaSek on 12 March 2008, 13:48:12
>Couldn't process event: Error getting host by name (Error: Invalid argument)

Don't you set the host name? What's happen when you run the following command in Terminal?

uname -a
Title:
Post by: Happy on 14 March 2008, 08:45:38
It says this:
Darwin andreas 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386 i386

:)
Title:
Post by: KaSek on 14 March 2008, 15:08:58
Happy:

I don't know why '.local' is not added to your host name. If you set the name using System Preference's Sharing, '.local' should be always shown like 'iMac.local'.

I'm not sure this has someting to do with the issue, but maybe it's not the problem of Glest.
Title:
Post by: Happy on 14 March 2008, 15:39:59
Ok. Thx. :)
Title: Caution to Leopard users
Post by: KaSek on 16 March 2008, 13:36:45
I experienced the following problem. I think  Leopard users should pay attention.

Symptom:
In gaming, suddenly the game speed turned to be extremely faster. The 'p' (pause) key worked but '-' (decreasing speed) key was of no use. The blinking of button was also faster. When I terminated the game, everything turned to be normal state.

Cause:
I found ntpd program adjusted -0.5 sec. at the same time when I got the trouble. I confirmed the same symptom occurred if I set the system time backward a few seconds while the game was going on.

Avoidance:
The problem may occur if you turn on “Set date & time automatically” in System Preferences. So turning it off avoids the problem. I'm not sure it occurs in all Leopard Mac. As of OS X 10.5.2, I guess Leopard's ntpd has a bug. Its behavior looks odd.
Title:
Post by: altazimuth on 15 April 2008, 05:14:21
Quote from: "markroedel"
Quote from: "Tael_"
When launching it on my MacBook, I got the following error :
Quote
Exception: OpenGL extension not supported: GL_ARB_texture_env_crossbar, required for Glest

Any solution ?

Thanks.

I get this as well on my MacBook...I hope we're not just out of luck until Apple releases updated OpenGL drivers for the integrated graphics card!


Me too! This is unfortunate.

To be more specific, I go to the HD, then to Applications, then to Glest. The problem occurs when I click on the Glest application icon, which results in the screen going dark as if something is going to happen, and me getting my hopes up. Then the screen returns to normal. In investigating this, I ctrl+clicked the Glest icon, whereupon I got the message in terminal from the original quote in this post.

Help?
Title:
Post by: laxaholic on 15 April 2008, 21:30:19
I can't even get on the link.It says I don't have permission.
Title:
Post by: altazimuth on 16 April 2008, 03:13:11
Quote from: "laxaholic"
I can't even get on the link.It says I don't have permission.


it did that to me too, I just wandered around that cider site for a bit until I found something that let me in. Sorry that I can't be more specific, I don't remember it.
Title:
Post by: KaSek on 16 April 2008, 12:59:10
As for error message:
Exception: OpenGL extension not supported: GL_ARB_texture_env_crossbar, required for Glest

This means Glest won't work on your Mac. Earlier MacBooks and Mac mini don't support OpenGL which Glest gets to work.

* Please mention OS version and Mac model before saying "Don't work. Why? Help!" It helps not only me but other Mac users, I think.
Title:
Post by: KaSek on 16 April 2008, 13:13:56
As for link to CiderHouse:

You can access the link if you don't access the files directly.
In other case, I deny the access from some domains which spammer used. Unfortunately if you use the domain, I can't help. Sorry for that. If you can use another domain, please try it.

P.S.
I changed the subdomain from ivory to opal. Glest page is now:

http://ciderhouse.opal.ne.jp/wp/english/glest (http://ciderhouse.opal.ne.jp/wp/english/glest)

But you can access the site using "ivory" subdomain as well.
Title:
Post by: Mr Wibble on 16 April 2008, 17:10:54
This game looks great. I'm trying to get it for my mac, but something's wrong with the download page:
"
Forbidden

You don't have permission to access /archives/Glest3AppR3.dmg on this server.
"

Help? I'm able to download the second file :/
Title:
Post by: altazimuth on 16 April 2008, 20:01:59
Macbook, OS X 10.5.2

and does that mean that it will never work for my mac? the fact that I don't have the GL_ARB_texture_env_crossbar thing.
Title:
Post by: KaSek on 17 April 2008, 14:05:34
Quote from: "altazimuth"
Macbook, OS X 10.5.2

and does that mean that it will never work for my mac? the fact that I don't have the GL_ARB_texture_env_crossbar thing.


Maybe no chance. But I don't have the right answer. Apple only knows.
Apple often updates graphic driver with major update of OS X. But yours is the latest version (I liked to confirm that). And the functions of OpenGL looks it depends on graphic hardware. Probably your Mac is not enough to support newer OpenGL features.
Title:
Post by: KaSek on 17 April 2008, 14:10:17
Quote from: "Mr Wibble"
This game looks great. I'm trying to get it for my mac, but something's wrong with the download page:
"
Forbidden

You don't have permission to access /archives/Glest3AppR3.dmg on this server.
"

Help? I'm able to download the second file :/


You can't access the files on my site using /archives/Glest3AppR3.dmg or such.
Please download it from the page on my site.