vutle / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

Cpp Demo "loading failed" on Mac #117

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build the Cpp Demo 
2. Run the App
3. Look in AppCppDemo.log

What is the expected output? What do you see instead?
To play the demo :) The App exits immediately and gives me this error
"GameLevel: Blend 'Momo.blend' loading failed"

What version of the product are you using? On what operating system?
Mac Intel OSX 10.6.5

Please provide any additional information below.
By looking though the code of some the other Samples I was able to get the 
files loading by adding
gkUtils::getFile

to this file 
CppDemo/ gkGameLevel.cpp

I changed
Here
 gkBlendFile* playerData = gkBlendLoader::getSingleton().loadFile(GK_RESOURCE_PLAYER);

And here
gkBlendFile* mapData = gkBlendLoader::getSingleton().loadFile(GK_RESOURCE_MAPS, 
"Pickup");

To
gkBlendFile* playerData = 
gkBlendLoader::getSingleton().loadFile(gkUtils::getFile(GK_RESOURCE_PLAYER));

And
gkBlendFile* mapData = 
gkBlendLoader::getSingleton().loadFile(gkUtils::getFile(GK_RESOURCE_MAPS));

I had to take out the "Pickup" from (GK_RESOURCE_MAPS, "Pickup"); or it would 
throw me an error! I don't know if that's important but it seems to work 
without it?

Thanks again for gamekit! Hope this is helpful.
Ike

Original issue reported on code.google.com by somedolp...@gmail.com on 17 Nov 2010 at 3:20

GoogleCodeExporter commented 9 years ago
Thanks for reporting. The patch is applied to r785.

gkBlendFile* mapData = 
gkBlendLoader::getSingleton().loadFile(gkUtils::getFile(GK_RESOURCE_MAPS), 
"Pickup");

It is working for me, does it still throw exception?

"Pickup" scene is set to active scene in the blend file, so it's not necessary 
in this case.

Original comment by harkon...@gmail.com on 18 Nov 2010 at 6:36

GoogleCodeExporter commented 9 years ago
Yes thanks it's all good now! Thanks again.
ike

Original comment by somedolp...@gmail.com on 18 Nov 2010 at 11:45