stunt playground - access violation

unclepauly

18-09-2006 22:43:52

i have just downloaded and played with stunt playground, top stuff.

then, i downloaded the source and compiled it in VS 7.1. i got it to build fine, but when i run it (from the IDE or from the .exe) i get an AV. Ogre.log shows nothing, but CEGUI.log shows this:


18/09/2006 22:36:22 (InfL2) ---- Begining resource loading for GUI scheme 'WindowsLook' ----
18/09/2006 22:36:22 (InfL1) Attempting to create an Imageset from the information specified in file '../../Media/GUI/imagesets/Jumps1.imageset'.
18/09/2006 22:36:22 (InfL2) Started creation of Imageset 'Jumps1' via XML file.
18/09/2006 22:36:22 (InfL2) Finished creation of Imageset 'Jumps1' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create an Imageset from the information specified in file '../../Media/GUI/imagesets/Props1.imageset'.
18/09/2006 22:36:22 (InfL2) Started creation of Imageset 'Props1' via XML file.
18/09/2006 22:36:22 (InfL2) Finished creation of Imageset 'Props1' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create an Imageset from the information specified in file '../../Media/GUI/imagesets/Props_Pack1.imageset'.
18/09/2006 22:36:22 (InfL2) Started creation of Imageset 'Props_Pack1' via XML file.
18/09/2006 22:36:22 (InfL2) Finished creation of Imageset 'Props_Pack1' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create an Imageset from the information specified in file '../../Media/GUI/imagesets/UI.imageset'.
18/09/2006 22:36:22 (InfL2) Started creation of Imageset 'UI' via XML file.
18/09/2006 22:36:22 (InfL2) Finished creation of Imageset 'UI' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create an Imageset from the information specified in file '../../Media/GUI/imagesets/logo.imageset'.
18/09/2006 22:36:22 (InfL2) Started creation of Imageset 'LOGO' via XML file.
18/09/2006 22:36:22 (InfL2) Finished creation of Imageset 'LOGO' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create an Imageset from the information specified in file '../../Media/GUI/imagesets/WindowsLook.imageset'.
18/09/2006 22:36:22 (InfL2) Started creation of Imageset 'WindowsLook' via XML file.
18/09/2006 22:36:22 (InfL2) Finished creation of Imageset 'WindowsLook' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create Font from the information specified in file '../../Media/GUI/fonts/Commonwealth-10.font'.
18/09/2006 22:36:22 (InfL2) Started creation of Font 'Commonwealth-10' via XML file.
18/09/2006 22:36:22 (InfL1) Attempting to create Imageset 'Commonwealth-10_auto_glyph_images' with texture only.
18/09/2006 22:36:22 (InfL2) Font 'Commonwealth-10' now has the following glyphs defined: ' !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~'.
18/09/2006 22:36:22 (InfL2) Finished creation of Font 'Commonwealth-10' via XML file.
18/09/2006 22:36:22 (Error) Exception: FactoryModule::FactoryModule - Failed to load module 'CEGUIWindowsLook': The specified module could not be found.



so the last thing it does is parse windowslook.scheme, which is this:




<?xml version="1.0" ?>
<GUIScheme Name="WindowsLook">
<Imageset Name="Jumps1" Filename="../../Media/GUI/imagesets/Jumps1.imageset" />
<Imageset Name="Props1" Filename="../../Media/GUI/imagesets/Props1.imageset" />
<Imageset Name="Props_Pack1" Filename="../../Media/GUI/imagesets/Props_Pack1.imageset" />
<Imageset Name="UI" Filename="../../Media/GUI/imagesets/UI.imageset" />
<Imageset Name="LOGO" Filename="../../Media/GUI/imagesets/logo.imageset" />
<Imageset Name="WindowsLook" Filename="../../Media/GUI/imagesets/WindowsLook.imageset" />

<Font Name="Commonwealth-10" Filename="../../Media/GUI/fonts/Commonwealth-10.font" />

<WindowSet Filename="CEGUIWindowsLook">
<WindowFactory Name="WindowsLook/Button" />
<WindowFactory Name="WindowsLook/Checkbox" />
<WindowFactory Name="WindowsLook/CloseButton" />
<WindowFactory Name="WindowsLook/Combobox" />
<WindowFactory Name="WindowsLook/ComboDropList" />
<WindowFactory Name="WindowsLook/Editbox" />
<WindowFactory Name="WindowsLook/FrameWindow" />
<WindowFactory Name="WindowsLook/HorizontalScrollbar" />
<WindowFactory Name="WindowsLook/HorizontalScrollbarThumb" />
<WindowFactory Name="WindowsLook/Listbox" />
<WindowFactory Name="WindowsLook/ListHeader" />
<WindowFactory Name="WindowsLook/ListHeaderSegment" />
<WindowFactory Name="WindowsLook/MultiColumnList" />
<WindowFactory Name="WindowsLook/MultiLineEditbox" />
<WindowFactory Name="WindowsLook/ProgressBar" />
<WindowFactory Name="WindowsLook/RadioButton" />
<WindowFactory Name="WindowsLook/Slider" />
<WindowFactory Name="WindowsLook/SliderThumb" />
<WindowFactory Name="WindowsLook/StaticImage" />
<WindowFactory Name="WindowsLook/StaticText" />
<WindowFactory Name="WindowsLook/TabButton" />
<WindowFactory Name="WindowsLook/TabControl" />
<WindowFactory Name="WindowsLook/TabPane" />
<WindowFactory Name="WindowsLook/Titlebar" />
<WindowFactory Name="WindowsLook/VerticalScrollbar" />
<WindowFactory Name="WindowsLook/VerticalScrollbarThumb" />
</WindowSet>
</GUIScheme>



The error is therefore is that is does not know what <WindowSet Filename="CEGUIWindowsLook"> is.

So i have deduced the problem, i am just not sure what the solution is! and there are no forum topics about this. i have even copied the media folder from the Stunt Playground directory (ie the actual game that works) into my working directory, but still the same problem.

anyone know?

unclepauly

18-09-2006 23:36:18

more info
----------

if i run from the IDE in debug mode the app AVs in StuntPlaygroundApplication.cpp here:


/////////////////////////////////////////////
// load high scores.
mScores.load( "../../Media/high.scores" );
mGUI_JP_DISTt->setCaption( Ogre::StringConverter::toString( mScores.mDist ) ); ========= HERE ==========
mGUI_JP_TIMEt->setCaption( Ogre::StringConverter::toString( mScores.mTime ) );
mGUI_JP_FLIPSt->setCaption( Ogre::StringConverter::toString( mScores.mFlips ) );
mGUI_JP_2WHt->setCaption( Ogre::StringConverter::toString( mScores.m2WH ) );


So all fingers pointing to a GUI issue, but again not sure what exactly. I have added mSceneMgr as the last argument to the mGUIRenderer constructor as stated in one forum thread.

unclepauly

19-09-2006 00:29:39

ok, can someone at least tell me what version of CEGUI stunt playground is suposed to use? because there is one with the OgreSDK, and also the downloadable CEGUI SDK...maybe the problem is due to the fact that the app is pointing to multiple versions of the same lib file? like CEGUIBase.lib etc

walaber

19-09-2006 04:31:07

do you have CEGUIWindowsLook.dll in the application directory?

unclepauly

19-09-2006 17:37:25

hi,

yes i do.

here is what i have done:
I am using Ogre 1.2 (Dagon).
I am using OgreNewt from the Ogre CVS.
I am NOT using CEGUI SDK because Dagon comes with CEGUI headers/libs/dlls.
Downloaded source code for stunt playground.
Changed getSceneManager to createSceneManager in walaberApplication.h (because i am using Dagon).
Changed mDirtParticles and mSparkParticles to mSceneMgr->createParticleSystem("SparkParticles", "WalaberSparkTest") in StuntPlaygroundApplication.cpp, as shown in a forum thread (the sticky one).
Added mSceneMgr as the last argument to mGUIRenderer constructor.

Build it, no problems. Run it, it AVs. Note, it does actually display the Black Window for a few secs before it AVs.

what i will do is delete all the CEGUI stuff from Ogre SDK and use the CEGUI SDK instead. i will post results in a little while.

unclepauly

19-09-2006 23:14:02

agghhhhhh!

i get the same AV after building from source!

thats is, i rebuilt everything from source. StuntPlayground requires CEGUI, CEGUI requires FMOD, Xerces, FreeType and Irlicht, and Irlicht requires Glut.lib...i have just spent the last million hours compiling everything from source, and still i get the same AV. not sure what else to do now.

the only thing i have not built from source is Ogre and Newton, they are SDKs on my machine. looks like i will have to try using source instead, but i wouldnt have thought that would cause an AV.

OvermindDL1

20-09-2006 23:36:59

Er... for note, those other libraries for CEGUI are not necessary unless you are building the demo's as well...

Build the game in debug (or release with debug symbols) and give us the details about the av such as the location, the stack trace, etc... etc...