I have been coding for a quite while now, and I have begun creating a game engine using ogre. I decided to start by using the tutorial for Ogre 1.9. Here is the issue:
I've installed Ogre 1.9 SDK, I have created the visual studio project, and I have loaded up the tutorial code, only renaming a few things as to integrate it with the rest of my code. Other than name changes, I have not changed any of the code for the tutorial framework. I can compile the code without errors, however when I run it, nothing happens. I added my game engines logs into the functions and see that I am crashing in the "setupResources" portion of the Ogre code. I ran the debugger and found that it happens in this for loop:
Code: Select all
for (i = settings->begin(); i != settings->end(); ++i)
{
typeName = i->first;
archName = i->second;
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
// OS X does not set the working directory relative to the app.
// In order to make things portable on OS X we need to provide
// the loading with it's own bundle path location.
if (!Ogre::StringUtil::startsWith(archName, "/", false)) // only adjust relative directories
archName = Ogre::String(Ogre::macBundlePath() + "/" + archName);
#endif
Ogre::ResourceGroupManager::getSingleton().addResourceLocation(
archName, typeName, secName);
}
Thanks,
WWJD