Code: Select all
mGUIRenderer = new CEGUI::OgreCEGUIRenderer(mWindow, Ogre::RENDER_QUEUE_OVERLAY, false, 3000, mSceneMgr);
mCEGUILua = new CEGUI::LuaScriptModule();
mGUISystem = new CEGUI::System(mGUIRenderer);
CEGUI::System::getSingleton().setScriptingModule(mCEGUILua);
CEGUI::Logger::getSingleton().setLoggingLevel(CEGUI::Informative);
CEGUI::SchemeManager::getSingleton().loadScheme((CEGUI::utf8*)"WindowsLook.scheme");
mGUISystem->getSingleton().executeScriptFile("LuaInit.lua");
Upon running this line:
Code: Select all
mGUISystem->getSingleton().executeScriptFile("LuaInit.lua");
I get this:
Exception: System::executeScriptFile - An exception was thrown during the execution of the script file.
It should be noted that LuaInit.lua is an empty file
It also of course crashes when the file is not empty, but rather filled with simple lua instructions.
Why would this happen?