glab
02-11-2008 14:54:42
Hi guys, this is my first post here and am a newbie in MOGRE and OGRE and VS. Am having an error when i am trying to debug the "Mogre Basic Tutorial1" from the ogre wiki. The error is :
"An Ogre exception has occured
OGRE EXCEPTION(6:FileNotFoundException):'resources.cfg' files not found! in ConfigFile::load at
d:\cubicalminds\mogreworld\mogre\ogrenew\ogremain\src\ogreconfigfile.cpp(line84)"
I dunno why its is searching in that path even that i don't have any folder called cubicalminds in my D drive. MOGRE and OGRE and VS2008 are all in drive C.
The code that i have pasted inside VS in the program.cs is:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using MogreFramework;
using Mogre;
namespace Tutorial01
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
try
{
OgreWindow win = new OgreWindow();
new SceneCreator(win);
win.Go();
}
catch (System.Runtime.InteropServices.SEHException)
{
if (OgreException.IsThrown)
MessageBox.Show(OgreException.LastException.FullDescription, "An Ogre exception has occurred!");
else
throw;
}
}
}
class SceneCreator
{
public SceneCreator(OgreWindow win)
{
win.SceneCreating += new OgreWindow.SceneEventHandler(SceneCreating);
}
void SceneCreating(OgreWindow win)
{
}
}
}
I have already added the references Mogre.dll and MogreFrameWork.dll.
I need help please. Thanks in advance
"An Ogre exception has occured
OGRE EXCEPTION(6:FileNotFoundException):'resources.cfg' files not found! in ConfigFile::load at
d:\cubicalminds\mogreworld\mogre\ogrenew\ogremain\src\ogreconfigfile.cpp(line84)"
I dunno why its is searching in that path even that i don't have any folder called cubicalminds in my D drive. MOGRE and OGRE and VS2008 are all in drive C.
The code that i have pasted inside VS in the program.cs is:
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using MogreFramework;
using Mogre;
namespace Tutorial01
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
try
{
OgreWindow win = new OgreWindow();
new SceneCreator(win);
win.Go();
}
catch (System.Runtime.InteropServices.SEHException)
{
if (OgreException.IsThrown)
MessageBox.Show(OgreException.LastException.FullDescription, "An Ogre exception has occurred!");
else
throw;
}
}
}
class SceneCreator
{
public SceneCreator(OgreWindow win)
{
win.SceneCreating += new OgreWindow.SceneEventHandler(SceneCreating);
}
void SceneCreating(OgreWindow win)
{
}
}
}
I have already added the references Mogre.dll and MogreFrameWork.dll.
I need help please. Thanks in advance