Frictional Games Forum (read-only)
Compiled on Mac; Game crashes on start! - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html)
+--- Forum: Overture (https://www.frictionalgames.com/forum/forum-29.html)
+--- Thread: Compiled on Mac; Game crashes on start! (/thread-17269.html)



Compiled on Mac; Game crashes on start! - Limit8 - 07-26-2012

Hi,

After one day of work i successfully compiled Penumbra Overture. I already had to copy the newer AL-Files from the OAL-Wrapper to the dependencies.

The game compiles now but it crashes on run. Theres no log and i actually have no idea why it doesn't work. Was there a similar case when the game didn't start?

Thanks for the help in advance ;D


RE: Compiled on Mac; Game crashes on start! - Urkle - 07-26-2012

Have you tried running it in the debugger to see where it crashes??? That is the best way to determine what is going on.


RE: Compiled on Mac; Game crashes on start! - Limit8 - 07-26-2012

(07-26-2012, 02:55 AM)Urkle Wrote: Have you tried running it in the debugger to see where it crashes??? That is the best way to determine what is going on.
That's very strange. No SIGABRT's. Nothing. The screen switches its resolution and then the program closes itself. I also added breakpoints for all exceptions but nothing. No messages, no exceptions. I don't know what is going on there Big Grin

Edit:

I'm able to run the SimpleTest program of the OALWrapper but the PhysicsTest of the HPLEngine crashes too.

Edit 2:

It stops working at this line:

Code:
mpGraphics->Init(aVars.GetInt("ScreenWidth",1280),
            aVars.GetInt("ScreenHeight",800),
            aVars.GetInt("ScreenBpp",32),
            aVars.GetBool("Fullscreen",true),
            aVars.GetInt("Multisampling",0),
            aVars.GetString("WindowCaption"),
            mpResources);


In the engine in the file "Game.cpp"


RE: Compiled on Mac; Game crashes on start! - Urkle - 07-26-2012

Now are you just compiling and running it FROM xcode? As that won't work as the game doesn't have any of the data files..

So the game is most likely NOT crashing but rather quitting because it can not find it's data files. You have to have a purchased copy of penumbra overture and run the binary with those data files in order to run it "as-is". To create your own custom game you'd need to create your own data files.


RE: Compiled on Mac; Game crashes on start! - Limit8 - 07-26-2012

(07-26-2012, 01:51 PM)Urkle Wrote: Now are you just compiling and running it FROM xcode? As that won't work as the game doesn't have any of the data files..

So the game is most likely NOT crashing but rather quitting because it can not find it's data files. You have to have a purchased copy of penumbra overture and run the binary with those data files in order to run it "as-is". To create your own custom game you'd need to create your own data files.
I don't know where to put the file because i took the files from a copy of my friend.
So i just put them to the binary file in ???.app/Contents/MacOS

Is the upper second edit helpful?

Edit:

I moved the resources to the directory where the ???.app is also in and now it can initialize ever<ything and it shows a loading screen but then it crashs.

Edit 2:

I fetched an error while starting before the app crashs. It occurs while initializing the 3 last shaders:

Code:
The compile returned an error.


Could it be that the game is incompatible to the (bad bad) GMA 950?

Edit 3:

The file that fails to load 3 times: 'core/programs/Diffuse_Color_fp.cg'

Edit 4:

I changed this line in CheckSupport :
Code:
if (pTestVtxProg->CreateFromFile("core/programs/Fallback01_Diffuse_Light_p1_vp.cg","main") == false

to this line:
Code:
if (pTestVtxProg->CreateFromFile("core/programs/Diffuse_Color_fp.cg","main") == false)

now it falls back to MaterialQuality_VeryLow and stops loading any shaders but it still crashs.

Edit 5:

Now it crashs in the Player.cpp initialize

Edit 6:

I had to comment the crosshair code out and now it runs but only the mainmenu and the game's intro. After the intro the game doesn't crash it doesn't respond anymore. Also half of the screen is yellow while i was using the mainmenu and watching the intro. Then when it didn't respond the screen was completely yellow.

Edit 7:

I downloaded the demo. The demo works perfectly.