Bug#478105: funguloids: crashes on startup

Mika Halttunen mika.halttunen at gmail.com
Fri May 2 07:50:58 UTC 2008


Hi,

> funguloids crashes for me using ogre-1.4.7. This started since ogre-1.4.6 
> actually but I haven't noticed it until now. I've attached a log showing the 
> error. 
> 
> Parsing scripts for resource group Bootstrap
Parsing script OgreCore.material
Error at line 1 of OgreCore.material: Unrecognised command: m
Parsing script Vera.fontdef
Parsing script OgreDebugPanel.overlay
Finished parsing scripts for resource group Bootstrap
Parsing scripts for resource group General
Parsing script Examples.program
Error at line 1 of Examples.program: Unrecognised command: /
Parsing script StdQuad_vp.program
Error at line 1 of StdQuad_vp.program: Unrecognised command: v
Parsing script BlackAndWhite.material
Error at line 1 of BlackAndWhite.material: Unrecognised command: f
Parsing script Bloom.material
Error at line 1 of Bloom.material: Unrecognised command: /
Parsing script display.material
Error at line 1 of display.material: Unrecognised command: m
Parsing script effect.material
Error at line 1 of effect.material: Unrecognised command: /
Parsing script materials.material
Error at line 1 of materials.material: Unrecognised command: m
Parsing script particles.material
Error at line 1 of particles.material: Unrecognised command: m
Parsing script blackandwhite.compositor
*** ERROR *** : in Compositor Script Source: blackandwhite.compositor
Unknown token found on line 1
Found: >>>/aterial ParticleGlo<<<

Parsing script bloom.compositor
*** ERROR *** : in Compositor Script Source: bloom.compositor
Unknown token found on line 1
Found: >>>/TS�0TS���K��K�

Hmm.. those errors indicate that funguloids.mpk and bootstrap.mpk files 
are either corrupted, or don't get loaded correctly. I suspect the 
latter. And actually it must be that, since the MPK files have a CRC32 
in them that is checked. Perhaps some Ogre changes prevent the custom 
MPakArchive from working properly.

First thing you could try, is check these lines in mpakogre.cpp: (lines 
140-143)

// Construct and return stream
DataStreamPtr mpak(new MPakDataStream(filename, 
fil,(size_t)mPakFile->current_file_size,(size_t)mPakFile->current_file_offset));
return DataStreamPtr(new MemoryDataStream(filename, mpak));

//return DataStreamPtr(new MPakDataStream(filename, 
fil,(size_t)mPakFile->current_file_size,(size_t)mPakFile->current_file_offset));

I remember having some issues with the commented line, which should work 
as it is, IMHO. I found out that creating a MemoryDataStream of the 
MPakDataStream would work, but perhaps something has been done to that. 
Try commenting the active lines and uncommenting the last line there.

Other than that, I have no idea at the moment. I'll probably investigate 
this further once I have some time.. :) Thanks for reporting this, 
though - and do drop me a note if you get it working.

--
Mika





More information about the Pkg-games-devel mailing list