BlueHighway error

stoneCold.net

30-07-2006 11:45:29

Yesterday I have downloaded plsm2, compiled it and everything was fine ... except the map editor. It compiles well but when I try to run it, it crashes because of this error...
12:20:47: Parsing script DebugOverlay.overlay
12:20:47: An exception has been thrown!

-----------------------------------
Details:
-----------------------------------
Error #: 7
Function: TextAreaOverlayElement::setFontName
Description: Could not find font BlueHighway.
File: ..\src\OgreTextAreaOverlayElement.cpp
Line: 337
Stack unwinding: <<beginning of stack>>
12:20:51: Unregistering ResourceManager for type BspLevel
12:20:51: *-*-* OGRE Shutdown

I've already searched the forum for a solution and found some similar problems but never a clear solution.
What could be causing this and how can I solve it.

many thanks

Yellow

30-07-2006 19:20:08

I think you needed to add bluehighway.font to your media/resources dir. It should be included with either plsm2 or ogre.

HexiDave

30-07-2006 20:00:48

I just moved the ZIP file under the [Bootstrap] header in resource.cfg down to the PLSM2 section near the bottom. This inherantly botches the other applications, but you just have to shift it back and forth if you're pointing to resource.cfg. The PLSM2 scene manager overrides the resource loader at some level and causes this problem - dunno why.

goldenhyl1

31-07-2006 08:48:52

I meet the same trouble, but I can understand the solution:
I use the resource.cfg not plsm_resource.cfg,
my resource.cfg is:



[Bootstrap]
Zip=../../../Media/packs/OgreCore.zip

[General]
FileSystem=../../../Media
FileSystem=../../../Media/fonts
FileSystem=../../../Media/materials/programs
FileSystem=../../../Media/materials/scripts
FileSystem=../../../Media/materials/textures
FileSystem=../../../Media/models
FileSystem=../../../Media/overlays
FileSystem=../../../Media/particle
FileSystem=../../../Media/gui
FileSystem=../../../Media/DeferredShadingMedia
Zip=../../../Media/packs/cubemap.zip
Zip=../../../Media/packs/cubemapsJS.zip
Zip=../../../Media/packs/dragon.zip
Zip=../../../Media/packs/fresneldemo.zip
Zip=../../../Media/packs/ogretestmap.zip
Zip=../../../Media/packs/skybox.zip

[PLSM2]
FileSystem=../../../Media/paginglandscape2

FileSystem=../../../Media/paginglandscape2/gui
FileSystem=../../../Media/paginglandscape2/models
FileSystem=../../../Media/paginglandscape2/overlays
FileSystem=../../../Media/paginglandscape2/materials
FileSystem=../../../Media/paginglandscape2/materials/scripts
FileSystem=../../../Media/paginglandscape2/materials/textures
FileSystem=../../../Media/paginglandscape2/materials/programs

FileSystem=../../../Media/paginglandscape2/datasrcs
FileSystem=../../../Media/paginglandscape2/terrains


what I can do?

tuan kuranes

31-07-2006 13:00:42

mapeditor is not supposed to work, only mapsplitter and demo_paginglandscape.

BlueHigway font is part of ogre SDK, CVS so it should be accessible, no ?

I don't get what is the problem ? How can I reproduce it ?
SDK, CVS ? win32 or linux ?

The PLSM2 scene manager overrides the resource loader at some level and causes this problem - dunno why.
what do you mean by that ?
Demo does use special resources.cfg named plsm_resource.cfg just to avoid overriding original user resources.cfg.

HexiDave

31-07-2006 16:10:41

I dunno why it does it, but the moment you switch to PLSM2 for the SceneManager, it does this. I could have sworn the SetWorldGeometry() code has the issue - I tried tracking it down before - but I'm not too sure, nor am I able to check at the moment.

tuan kuranes

31-07-2006 16:26:47

Reproducable step would indeed help a lot.

HexiDave

31-07-2006 17:36:58

As far as I know, all you'd need to do would be take the ExampleApplication framework and change the SceneManager to your PLSM2 plugin as usual and point SetWorldGeometry() to your CFG file. With the default resource.cfg, it throws the error. It seems to be from order of loading (it skips the Bootstrap header and goes right to PLSM2 or General -> PLSM2.)

tuan kuranes

31-07-2006 18:22:40

With the default resource.cfg, it throws the error
Where do you put the [plsm2] group in the original resources.cfg

ahmedismaiel

01-08-2006 00:38:51

i also had this problem today
but i think i understand what is the problem

in the folder
../../../Media/paginglandscape2/overlays

there is files that produce this bug with the current version of dagon
when i comment them it pass this step and goes to other error
in loading windows look which i think those files are not compatable with CEGUI .4 because they give memory exceptions when parsing them (happen to me once before dagon when upgrading ogre to cegui.4 without using the new files)

I changed the code to use Tahreez look as all ogre samples use ,but the problem is now in loading the layout file which they all reference to controls in the windowslook skin .

do i have to change all the files to use tahreezlook ?
tuan ,do u use older version of ogre than i use?
why mapeditor is not supposed to work??!!

could u please tell me what i do wrong
thanks

tuan kuranes

01-08-2006 15:56:39

in the folder
../../../Media/paginglandscape2/overlays
there is files that produce this bug with the current version of dagon

Here they are dagon compliant and not at all related to CEGUI.

Some in ../../../Media/paginglandscape2/gui are indeed outdated and now no more loaded automatically from demo.
mapeditor is not any more maintained, that was a contribution, but didn't end in a long time contribution.

But it is outperformed by Falagard map editor in GOOF, and you should use this one instead.

ahmedismaiel

02-08-2006 06:57:48

yea ,i downloaded and compilef GOOF and your plugin really looks very nice :wink:

i'm interested to know how is the design of 2 things drawing the cirle or the brush and how is the texture painting is done.
i'll look at the code but if you have some pointer where is what i'm looking for i sould appretiate it very much
thanks for your help

tuan kuranes

02-08-2006 09:34:09

circle are just lines drawed in circle each line summit being checked against terrain height.

painting is done mainly in paginglandscapetexture class. it's a complex and non-easy thing, as it handle color and alph painting.