[Solved]Debugger problem

majc

08-08-2010 19:33:44

Ogrenewt debugger is crashing here is the code:

Initialization:

cOgreNewtFrameListener::cOgreNewtFrameListener(cPlayerCollisionHandler *entityCollision, cPlayer *player, /*cBulletGraphics* bulletGraph, cBullet *bullet, cEntityCollisionHandler *npc,*/ cPlayerGraphics *playerGraphs, bool bufferedKeys , bool bufferedMouse, bool bufferedJoy):cBasicFrameListener(true,true,false)
{
using namespace OIS;
mEntityCollision = entityCollision;
mPlayer = player;
//mBulletGraph = bulletGraph;
//mNPCcollision = npc;
mPlayerGraph = playerGraphs;
sensitivityX = (Ogre::Real)0.05;
sensitivityY = (Ogre::Real)0.05;
//mBullet = bullet;
FPSmode = true;
mKeyboard->setEventCallback(this);
mMouse->setEventCallback(this);
mMouse->setBuffered(false);
displayCameraDetails = true;
mRaySceneQuery = cGraphicalInterface::getSingleton().getSceneManager()->createRayQuery(Ray());
[b]cPhysicsInterface::getSingleton().getNewtWorld()->setSolverModel(OgreNewt::World::SM_FASTEST);
cPhysicsInterface::getSingleton().getNewtWorld()->setThreadCount(1);
cPhysicsInterface::getSingleton().getNewtWorld()->getDebugger().init(cGraphicalInterface::getSingleton().getSceneManager());
//cGUI::getSingleton().createCrosshair();
mDebugOverlay = OverlayManager::getSingleton().getByName("Core/DebugOverlay");[/b]
mCurrentObject = 0;
counter = 0;

// Set desired framerate and variables used for stepping the physics
desiredPhysicsFramerate = 120;
lastFPS = 0;
lastFrameDuration = 0;
physicsUpdateStep = 1.0f / static_cast<float>(desiredPhysicsFramerate);
physicsTimeAccumulator = 0.0f;

debuggerActive = false;
}


I call it here:

void cOgreNewtFrameListener::input(const FrameEvent& evt)
{
if(mEntityCollision->getBody() == NULL)
return;



Ogre::Vector3 trans, strafe, vec, pos;
Quaternion orientation = Ogre::Quaternion::IDENTITY;

pos = cPhysicsInterface::getSingleton().getPosition(mEntityCollision->getBody());
orientation = cPhysicsInterface::getSingleton().getOrientation(mEntityCollision->getBody());

vec = Ogre::Vector3(0.0,0.0,-2);
trans = orientation * vec;

vec = Ogre::Vector3(2,0.0,0.0);
strafe = orientation * vec;

mKeyboard->capture();
mMouse->capture();

if (debuggerActive)
{
// Show the debug display if active (F1 to toggle)
[b]cPhysicsInterface::getSingleton().getNewtWorld()->getDebugger().showDebugInformation();[/b] //crashes here
}

if(mKeyboard->isKeyDown(KC_F1))
{
// Toggle debug display
if (debuggerActive)
{
debuggerActive = false;
cPhysicsInterface::getSingleton().getNewtWorld()->getDebugger().hideDebugInformation();
}
else
{
debuggerActive = true;
}
}

Ogre::WindowEventUtilities::messagePump();

// Get frame rendertime in milliseconds
unsigned long currentFrameTime = cGraphicalInterface::getSingleton().getRoot()->getTimer()->getMilliseconds();
lastFrameDuration = currentFrameTime - lastFrameTime;
lastFrameTime = currentFrameTime;

// Add last frame duration to accumulator that uses seconds
physicsTimeAccumulator += lastFrameDuration / 1000.0f;

// Check whether there is any reason to step the physics
if (physicsTimeAccumulator > physicsUpdateStep)
{
// Lets make maximum of 5 physics updates
if (physicsTimeAccumulator < physicsUpdateStep * 5)
{
while (physicsTimeAccumulator >= physicsUpdateStep)
{
// Update the physics world and substract from the accumulator
cPhysicsInterface::getSingleton().getNewtWorld()->update(physicsUpdateStep);
physicsTimeAccumulator -= physicsUpdateStep;
}
}
else
{
// Too many steps, just update once and clear accumulator to prevent total slowdown
cPhysicsInterface::getSingleton().getNewtWorld()->update(physicsTimeAccumulator);
physicsTimeAccumulator = 0.0f;
}
}

...



and here is the Ogre log:

14:14:37: Creating resource group General
14:14:37: Creating resource group Internal
14:14:37: Creating resource group Autodetect
14:14:37: SceneManagerFactory for type 'DefaultSceneManager' registered.
14:14:37: Registering ResourceManager for type Material
14:14:37: Registering ResourceManager for type Mesh
14:14:37: Registering ResourceManager for type Skeleton
14:14:37: MovableObjectFactory for type 'ParticleSystem' registered.
14:14:37: OverlayElementFactory for type Panel registered.
14:14:37: OverlayElementFactory for type BorderPanel registered.
14:14:37: OverlayElementFactory for type TextArea registered.
14:14:37: Registering ResourceManager for type Font
14:14:37: ArchiveFactory for archive type FileSystem registered.
14:14:37: ArchiveFactory for archive type Zip registered.
14:14:37: DDS codec registering
14:14:37: FreeImage version: 3.13.1
14:14:37: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
14:14:37: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
14:14:37: Registering ResourceManager for type HighLevelGpuProgram
14:14:37: Registering ResourceManager for type Compositor
14:14:37: MovableObjectFactory for type 'Entity' registered.
14:14:37: MovableObjectFactory for type 'Light' registered.
14:14:37: MovableObjectFactory for type 'BillboardSet' registered.
14:14:37: MovableObjectFactory for type 'ManualObject' registered.
14:14:37: MovableObjectFactory for type 'BillboardChain' registered.
14:14:37: MovableObjectFactory for type 'RibbonTrail' registered.
14:14:37: Loading library .\RenderSystem_Direct3D9_d
14:14:37: Installing plugin: D3D9 RenderSystem
14:14:37: D3D9 : Direct3D9 Rendering Subsystem created.
14:14:37: D3D9: Driver Detection Starts
14:14:37: D3D9: Driver Detection Ends
14:14:37: Plugin successfully installed
14:14:37: Loading library .\RenderSystem_GL_d
14:14:37: Installing plugin: GL RenderSystem
14:14:37: OpenGL Rendering Subsystem created.
14:14:37: Plugin successfully installed
14:14:37: Loading library .\Plugin_ParticleFX_d
14:14:37: Installing plugin: ParticleFX
14:14:37: Particle Emitter Type 'Point' registered
14:14:37: Particle Emitter Type 'Box' registered
14:14:37: Particle Emitter Type 'Ellipsoid' registered
14:14:37: Particle Emitter Type 'Cylinder' registered
14:14:37: Particle Emitter Type 'Ring' registered
14:14:37: Particle Emitter Type 'HollowEllipsoid' registered
14:14:37: Particle Affector Type 'LinearForce' registered
14:14:37: Particle Affector Type 'ColourFader' registered
14:14:37: Particle Affector Type 'ColourFader2' registered
14:14:37: Particle Affector Type 'ColourImage' registered
14:14:37: Particle Affector Type 'ColourInterpolator' registered
14:14:37: Particle Affector Type 'Scaler' registered
14:14:37: Particle Affector Type 'Rotator' registered
14:14:37: Particle Affector Type 'DirectionRandomiser' registered
14:14:37: Particle Affector Type 'DeflectorPlane' registered
14:14:37: Plugin successfully installed
14:14:37: Loading library .\Plugin_BSPSceneManager_d
14:14:37: Installing plugin: BSP Scene Manager
14:14:37: Plugin successfully installed
14:14:37: Loading library .\Plugin_OctreeSceneManager_d
14:14:37: Installing plugin: Octree & Terrain Scene Manager
14:14:37: Plugin successfully installed
14:14:37: Loading library .\Plugin_CgProgramManager_d
14:14:37: Installing plugin: Cg Program Manager
14:14:37: Plugin successfully installed
14:14:37: *-*-* OGRE Initialising
14:14:37: *-*-* Version 1.7.0 (Cthugha)
14:14:37: Creating resource group Bootstrap
14:14:37: Added resource location 'Media/packs/OgreCore.zip' of type 'Zip' to resource group 'Bootstrap'
14:14:37: Added resource location 'Media' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/fonts' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/materials/programs' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/materials/scripts' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/materials/textures' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/models' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/overlays' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/particle' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/gui' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/DeferredShadingMedia' of type 'FileSystem' to resource group 'General'
14:14:37: Added resource location 'Media/packs/cubemap.zip' of type 'Zip' to resource group 'General'
14:14:37: Added resource location 'Media/packs/cubemapsJS.zip' of type 'Zip' to resource group 'General'
14:14:37: Added resource location 'Media/packs/dragon.zip' of type 'Zip' to resource group 'General'
14:14:37: Added resource location 'Media/packs/fresneldemo.zip' of type 'Zip' to resource group 'General'
14:14:37: Added resource location 'Media/packs/ogretestmap.zip' of type 'Zip' to resource group 'General'
14:14:37: Added resource location 'Media/packs/skybox.zip' of type 'Zip' to resource group 'General'
14:14:37: D3D9 : RenderSystem Option: Full Screen = No
14:14:37: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
14:14:37: CPU Identifier & Features
14:14:37: -------------------------
14:14:37: * CPU ID: GenuineIntel: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz
14:14:37: * SSE: yes
14:14:37: * SSE2: yes
14:14:37: * SSE3: yes
14:14:37: * MMX: yes
14:14:37: * MMXEXT: yes
14:14:37: * 3DNOW: no
14:14:37: * 3DNOWEXT: no
14:14:37: * CMOV: yes
14:14:37: * TSC: yes
14:14:37: * FPU: yes
14:14:37: * PRO: yes
14:14:37: * HT: no
14:14:37: -------------------------
14:14:37: D3D9 : Subsystem Initialising
14:14:37: Registering ResourceManager for type Texture
14:14:37: Registering ResourceManager for type GpuProgram
14:14:37: D3D9RenderSystem::_createRenderWindow "Dark Future", 800x600 windowed miscParams: FSAA=0 FSAAHint= colourDepth=32 gamma=false monitorIndex=0 useNVPerfHUD=false vsync=true vsyncInterval=1
14:14:37: D3D9 : Created D3D9 Rendering Window 'Dark Future' : 800x600, 32bpp
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT16_R
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT32_R
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT16_GR
14:14:37: D3D9: Vertex texture format supported - PF_FLOAT32_GR
14:14:37: RenderSystem capabilities
14:14:37: -------------------------
14:14:37: RenderSystem Name: Direct3D9 Rendering Subsystem
14:14:37: GPU Vendor: nvidia
14:14:37: Device Name: Monitor-1-NVIDIA GeForce GT 330M
14:14:37: Driver Version: 8.17.11.9716
14:14:37: * Fixed function pipeline: yes
14:14:37: * Hardware generation of mipmaps: yes
14:14:37: * Texture blending: yes
14:14:37: * Anisotropic texture filtering: yes
14:14:37: * Dot product texture operation: yes
14:14:37: * Cube mapping: yes
14:14:37: * Hardware stencil buffer: yes
14:14:37: - Stencil depth: 8
14:14:37: - Two sided stencil support: yes
14:14:37: - Wrap stencil values: yes
14:14:37: * Hardware vertex / index buffers: yes
14:14:37: * Vertex programs: yes
14:14:37: * Number of floating-point constants for vertex programs: 256
14:14:37: * Number of integer constants for vertex programs: 16
14:14:37: * Number of boolean constants for vertex programs: 16
14:14:37: * Fragment programs: yes
14:14:37: * Number of floating-point constants for fragment programs: 224
14:14:37: * Number of integer constants for fragment programs: 16
14:14:37: * Number of boolean constants for fragment programs: 16
14:14:37: * Geometry programs: no
14:14:37: * Number of floating-point constants for geometry programs: 0
14:14:37: * Number of integer constants for geometry programs: 0
14:14:37: * Number of boolean constants for geometry programs: 0
14:14:37: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
14:14:37: * Texture Compression: yes
14:14:37: - DXT: yes
14:14:37: - VTC: no
14:14:37: - PVRTC: no
14:14:37: * Scissor Rectangle: yes
14:14:37: * Hardware Occlusion Query: yes
14:14:37: * User clip planes: yes
14:14:37: * VET_UBYTE4 vertex element type: yes
14:14:37: * Infinite far plane projection: yes
14:14:37: * Hardware render-to-texture: yes
14:14:37: * Floating point textures: yes
14:14:37: * Non-power-of-two textures: yes
14:14:37: * Volume textures: yes
14:14:37: * Multiple Render Targets: 4
14:14:37: - With different bit depths: yes
14:14:37: * Point Sprites: yes
14:14:37: * Extended point parameters: yes
14:14:37: * Max Point Size: 10
14:14:37: * Vertex texture fetch: yes
14:14:37: * Number of world matrices: 0
14:14:37: * Number of texture units: 8
14:14:37: * Stencil buffer depth: 8
14:14:37: * Number of vertex blend matrices: 0
14:14:37: - Max vertex textures: 4
14:14:37: - Vertex textures shared: no
14:14:37: * Render to Vertex Buffer : no
14:14:37: * DirectX per stage constants: yes
14:14:37: ***************************************
14:14:37: *** D3D9 : Subsystem Initialised OK ***
14:14:37: ***************************************
14:14:37: DefaultWorkQueue('Root') initialising on thread main.
14:14:37: Particle Renderer Type 'billboard' registered
14:14:37: SceneManagerFactory for type 'BspSceneManager' registered.
14:14:37: Registering ResourceManager for type BspLevel
14:14:37: SceneManagerFactory for type 'OctreeSceneManager' registered.
14:14:37: SceneManagerFactory for type 'TerrainSceneManager' registered.
14:14:37: TerrainSceneManager: Registered a new PageSource for type Heightmap
14:14:37: Parsing scripts for resource group Autodetect
14:14:37: Finished parsing scripts for resource group Autodetect
14:14:37: Parsing scripts for resource group Bootstrap
14:14:37: Parsing script OgreCore.material
14:14:37: Parsing script OgreProfiler.material
14:14:37: Parsing script Ogre.fontdef
14:14:37: Parsing script OgreDebugPanel.overlay
14:14:37: Texture: New_Ogre_Border_Center.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
14:14:37: Texture: New_Ogre_Border.png: Loading 1 faces(PF_A8R8G8B8,256x256x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x256x1.
14:14:37: Texture: New_Ogre_Border_Break.png: Loading 1 faces(PF_A8R8G8B8,32x32x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,32x32x1.
14:14:37: Font BlueHighwayusing texture size 512x512
14:14:37: Info: Freetype returned null for character 127 in font BlueHighway
14:14:37: Info: Freetype returned null for character 128 in font BlueHighway
14:14:37: Info: Freetype returned null for character 129 in font BlueHighway
14:14:37: Info: Freetype returned null for character 130 in font BlueHighway
14:14:37: Info: Freetype returned null for character 131 in font BlueHighway
14:14:37: Info: Freetype returned null for character 132 in font BlueHighway
14:14:37: Info: Freetype returned null for character 133 in font BlueHighway
14:14:37: Info: Freetype returned null for character 134 in font BlueHighway
14:14:37: Info: Freetype returned null for character 135 in font BlueHighway
14:14:37: Info: Freetype returned null for character 136 in font BlueHighway
14:14:37: Info: Freetype returned null for character 137 in font BlueHighway
14:14:37: Info: Freetype returned null for character 138 in font BlueHighway
14:14:37: Info: Freetype returned null for character 139 in font BlueHighway
14:14:37: Info: Freetype returned null for character 140 in font BlueHighway
14:14:37: Info: Freetype returned null for character 141 in font BlueHighway
14:14:37: Info: Freetype returned null for character 142 in font BlueHighway
14:14:37: Info: Freetype returned null for character 143 in font BlueHighway
14:14:37: Info: Freetype returned null for character 144 in font BlueHighway
14:14:37: Info: Freetype returned null for character 145 in font BlueHighway
14:14:37: Info: Freetype returned null for character 146 in font BlueHighway
14:14:37: Info: Freetype returned null for character 147 in font BlueHighway
14:14:37: Info: Freetype returned null for character 148 in font BlueHighway
14:14:37: Info: Freetype returned null for character 149 in font BlueHighway
14:14:37: Info: Freetype returned null for character 150 in font BlueHighway
14:14:37: Info: Freetype returned null for character 151 in font BlueHighway
14:14:37: Info: Freetype returned null for character 152 in font BlueHighway
14:14:37: Info: Freetype returned null for character 153 in font BlueHighway
14:14:37: Info: Freetype returned null for character 154 in font BlueHighway
14:14:37: Info: Freetype returned null for character 155 in font BlueHighway
14:14:37: Info: Freetype returned null for character 156 in font BlueHighway
14:14:37: Info: Freetype returned null for character 157 in font BlueHighway
14:14:37: Info: Freetype returned null for character 158 in font BlueHighway
14:14:37: Info: Freetype returned null for character 159 in font BlueHighway
14:14:37: Info: Freetype returned null for character 160 in font BlueHighway
14:14:37: Texture: BlueHighwayTexture: Loading 1 faces(PF_BYTE_LA,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_BYTE_LA,512x512x1.
14:14:37: Texture: ogretext.png: Loading 1 faces(PF_A8R8G8B8,256x128x1) with hardware generated mipmaps from Image. Internal format is PF_A8R8G8B8,256x128x1.
14:14:37: Parsing script OgreLoadingPanel.overlay
14:14:37: Finished parsing scripts for resource group Bootstrap
14:14:37: Parsing scripts for resource group General
14:14:37: Parsing script Examples.program
14:14:37: Parsing script StdQuad_vp.program
14:14:38: Parsing script deferred.glsl.program
14:14:38: Parsing script deferred.hlsl.program
14:14:38: Parsing script deferred_post_debug.glsl.program
14:14:38: Parsing script deferred_post_debug.hlsl.program
14:14:38: Parsing script deferred_post_minilight.glsl.program
14:14:38: Parsing script deferred_post_minilight.hlsl.program
14:14:38: OGRE EXCEPTION(2:InvalidParametersException): Parameter called lightSpecularColor does not exist. in GpuProgramParameters::_findNamedConstantDefinition at ..\..\OGRE 1-7\ogrenew\OgreMain\src\OgreGpuProgramParams.cpp (line 1433)
14:14:38: Compiler error: invalid parameters in deferred_post_minilight.hlsl.program(26): setting of constant failed
14:14:38: Parsing script deferred_post_multipass.glsl.program
14:14:38: Parsing script deferred_post_multipass.hlsl.program
14:14:38: Parsing script deferred_post_onepass.glsl.program
14:14:38: Parsing script deferred_post_onepass.hlsl.program
14:14:38: Parsing script BlackAndWhite.material
14:14:38: Parsing script Bloom.material
14:14:38: Parsing script DepthShadowmap.material
14:14:38: Parsing script DOF.material
14:14:38: Compiler error: object name expected in DOF.material(55)
14:14:38: Parsing script Embossed.material
14:14:38: Parsing script Example-DynTex.material
14:14:38: Parsing script Example-Water.material
14:14:38: Parsing script Example.material
14:14:38: Parsing script Examples-Advanced.material
14:14:39: Compiler error: number expected in Examples-Advanced.material(679): incorrect float constant declaration
14:14:39: Parsing script facial.material
14:14:39: Parsing script Glass.material
14:14:39: Parsing script hdr.material
14:14:39: Parsing script HeatVision.material
14:14:39: Parsing script Hurt.material
14:14:39: Parsing script instancing.material
14:14:40: Parsing script Invert.material
14:14:40: Parsing script Laplace.material
14:14:40: Parsing script MotionBlur.material
14:14:40: Parsing script Ocean.material
14:14:40: Parsing script OffsetMapping.material
14:14:40: Parsing script Ogre.material
14:14:40: Parsing script OldMovie.material
14:14:40: Parsing script OldTV.material
14:14:40: Parsing script Posterize.material
14:14:40: Parsing script RZR-002.material
14:14:40: Parsing script SharpenEdges.material
14:14:40: Parsing script smoke.material
14:14:40: Parsing script Tiling.material
14:14:40: Parsing script VarianceShadowmap.material
14:14:40: Parsing script girl.material
14:14:40: Parsing script Ground.material
14:14:40: Compiler error: unknown error in Ground.material(11): token "scale" is not recognized
14:14:40: Parsing script m4a1.material
14:14:40: Parsing script Ninja.material
14:14:40: Parsing script Robot.material
14:14:40: Parsing script tudorhouse.material
14:14:40: Parsing script deferred.material
14:14:40: Parsing script deferreddemo.material
14:14:40: Compiler error: unknown error in deferreddemo.material(22): base object named "DeferredShading/Material/TexturedPhong" not found in script definition
14:14:40: Compiler error: unknown error in deferreddemo.material(47): base object named "DeferredShading/Material/TexturedNormalMapped" not found in script definition
14:14:40: Compiler error: unknown error in deferreddemo.material(81): base object named "DeferredShading/Material/UntexturedNormalMapped" not found in script definition
14:14:40: Compiler error: unknown error in deferreddemo.material(114): base object named "DeferredShading/Material/TexturedPhong" not found in script definition
14:14:40: Compiler error: unknown error in deferreddemo.material(141): base object named "DeferredShading/Material/UntexturedPhong" not found in script definition
14:14:40: Compiler error: unknown error in deferreddemo.material(166): base object named "DeferredShading/Material/TexturedPhong" not found in script definition
14:14:40: Compiler error: unknown error in deferreddemo.material(197): base object named "DeferredShading/Material/TexturedPhong" not found in script definition
14:14:40: Compiler error: object name expected in deferreddemo.material(91)
14:14:40: Compiler error: object name expected in deferreddemo.material(105)
14:14:40: Compiler error: object name expected in deferreddemo.material(147)
14:14:40: Compiler error: object name expected in deferreddemo.material(158)
14:14:40: Compiler error: object name expected in deferreddemo.material(172)
14:14:40: Compiler error: object name expected in deferreddemo.material(186)
14:14:40: Compiler error: object name expected in deferreddemo.material(203)
14:14:40: Compiler error: object name expected in deferreddemo.material(217)
14:14:40: Parsing script deferred_post_debug.material
14:14:40: Parsing script deferred_post_minilight.material
14:14:40: Parsing script deferred_post_multipass.material
14:14:40: Parsing script deferred_post_onepass.material
14:14:40: Parsing script RomanBath.material
14:14:40: Parsing script Blood.particle
14:14:40: Parsing script emitted_emitter.particle
14:14:40: Parsing script Example-Water.particle
14:14:40: Parsing script Example.particle
14:14:40: Parsing script smoke.particle
14:14:40: Parsing script Examples.compositor
14:14:40: Parsing script sample.fontdef
14:14:40: Parsing script Compositor.overlay
14:14:40: Parsing script DP3.overlay
14:14:40: Parsing script Example-CubeMapping.overlay
14:14:40: Parsing script Example-DynTex.overlay
14:14:41: Parsing script Example-Water.overlay
14:14:41: Parsing script Shadows.overlay
14:14:41: Finished parsing scripts for resource group General
14:14:41: Parsing scripts for resource group Internal
14:14:41: Finished parsing scripts for resource group Internal
14:14:54: Mesh: Loading ninja.mesh.
14:14:54: Skeleton: Loading ninja.skeleton
14:14:54: WARNING: ninja.mesh is an older format ([MeshSerializer_v1.40]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
14:14:54: Texture: nskingr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:54: *** Initializing OIS ***
14:14:54: Texture: cloudy_noon_fr.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:54: Texture: cloudy_noon_bk.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:54: Texture: cloudy_noon_lf.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:54: Texture: cloudy_noon_rt.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:55: Texture: cloudy_noon_up.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:55: Texture: cloudy_noon_dn.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
14:14:55: Mesh: Loading Ground.mesh.
14:14:55: WARNING: Ground.mesh is an older format ([MeshSerializer_v1.40]); you should upgrade it as soon as possible using the OgreMeshUpgrade tool.
14:14:55: Texture: grass_1024.jpg: Loading 1 faces(PF_R8G8B8,1024x1024x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,1024x1024x1.
14:14:55: Texture: spot_shadow_fade.png: Loading 1 faces(PF_R8G8B8,128x128x1) with hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,128x128x1.


Thanks in advance!

SFCBias

09-08-2010 01:09:20

Debug it and post what it says on the crash. If it is a segfault ( Memory access violation on windows i beleive)

majc

09-08-2010 01:37:54

Here is the msg:

Unhandled exception at 0x6f58a661 (OgreNewt.dll) in Dark Future.exe: 0xC0000005: Access violation reading location 0x00000000.

SFCBias

09-08-2010 03:03:39

Yeah that most likely means *something* wasn't initialized properly. Can you run the minimalOgreNewt Application (It looks like thats where you got your code, I may be wrong) And use debbuging?

majc

09-08-2010 09:40:30

How can i see what is missing with the debug?

majc

09-08-2010 10:55:39

Ok problem solved, it was missing some files in the media folder needed for debug, i transferred all the missing files from MinimalOgreNewtApplication media folder to my game media folder.

Thanks SFCBias :)