hf.cfg?

Baiame

23-04-2007 22:46:02

Hello. I compiled the CVS version of PLSM2 and the mapsplitter. After getting everything set up (with some difficulty), I still can't run the PLSM2 demo (which does compile); I get the following error:
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hf.cfg in resource group PLSM2 or any other group. in ResourceGroupManager::openResource at C:\SoftwareDevelopment\C++\MinGW\ogrenew_HEAD_clean\OgreMain\src\OgreResourceGroupManager.cpp (line 603)
I have the Eihort SDK for MingW/GCC and the CVS PLSM2, and the file doesn't exist anywhere on my HD. What is hf.cfg? Why is it needed? Where can I find it? Thanks for any help.

clutch43

24-04-2007 01:27:57

did u download the "datasrcs" from tuan kuranes web site?
http://tuan.kuranes.free.fr/Ogre.html
hf.cfg refers to a 16 bit heightfield map. included in "datasrcs". :wink:

Baiame

24-04-2007 06:19:01

Thanks clutch43, but I already had datasrcs extracted in the proper directory, yet no hf.cfg exists. Also searched the contents of datasrcs itself, no hf.cfg. And the mapsplitter appears to have run correctly.

clutch43

24-04-2007 12:34:59

chk pagingllandscape2.cfg file in your debug/release folder....try changing default to Terrain_Scene_Manager_terrain instead and see if it works...looks like its a resource prob..mapsplitter produce the Folders in Terrain folder?., ie, alpes folder, hf129_3 folder, ps_height_1k folder.,

Have to run here..someone waiting on me,,,try get back here later today..chk.

Baiame

24-04-2007 18:03:16

Thanks again clutch43. I changed that line in the config, now I get this error:
OGRE EXCEPTION(1:InvalidStateException): Your map must at least have a width and height defined in the config file in PagingLandScapeOptions::loadMapOptions at C:\programs and utilities\CVS stuff\ogreaddons\paginglandscape\PlugIns\PagingLandScape2\src\OgrePagingLandScapeOptions.cpp (line 618)
The mapsplitter does indeed produce those folders. Some are populated with a bunch of .pngs.

Ruburne

24-04-2007 20:37:46

Hello. I compiled the CVS version of PLSM2 and the mapsplitter. After getting everything set up (with some difficulty), I still can't run the PLSM2 demo (which does compile); I get the following error:
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hf.cfg in resource group PLSM2 or any other group. in ResourceGroupManager::openResource at C:\SoftwareDevelopment\C++\MinGW\ogrenew_HEAD_clean\OgreMain\src\OgreResourceGroupManager.cpp (line 603)
I have the Eihort SDK for MingW/GCC and the CVS PLSM2, and the file doesn't exist anywhere on my HD. What is hf.cfg? Why is it needed? Where can I find it? Thanks for any help.


I had a simular problem recently. My resources_plsm2.cfg file wasn't pointing to the correct directories. I think it was missing a ../ in front of all the paths and the folders for the map image files was missing. I dunno if this is what's causing your problem, but it doesn't hurt to check.

Baiame

24-04-2007 21:18:52

Thanks Ruburne, that was a good call, resources_plsm2.cfg pointe to some wrong directories. However, when I revised it to point to Ogre directories (which is intended, right?) I got the same error. Then I added in all the directories under the PLSM2 header from resources.cfg into resources_plsm2.cfg. Now, when I try to run the demo application, it crashes out, and this message is visible in the .log:
OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource hf129_3.Base.0.0.png in resource group General or any other group. in ResourceGroupManager::openResource at C:\SoftwareDevelopment\C++\MinGW\ogrenew_HEAD_clean\OgreMain\src\OgreResourceGroupManager.cpp (line 603)
There's also complaints about other image files previous to that error. I have no idea why; the resource files definitely point to the right directories, and the "missing" files are present in those directories. Hmm...

clutch43

24-04-2007 21:53:07

Do you see hf129_3.Base.0.0 in the hf129_3 folder? There should be 12 files (png)....if not there..then mapsplitter didn't do its job., if they are there then looks like resource prob.

I just rebuilt from scratch to see if i would have same type problem.,no such luck., I was able to run PLSM2 with no problems using hf map.

Try running the mapslitter again if u made changes to your resource file ( resources_plsm2 ) ., i do believe mapsplitter uses it to produce proper files/location., so if u did make changes to it., run mapsplitter again.
Hope this helps., your close to firing it up.

Baiame

24-04-2007 23:19:16

Thanks clutch43. I re-ran the mapsplitter, and (as before) those 12 files are present in the hf129_3 folder. However, I now get this error (not that this is using Terrain_Scene_Manager_terrain instead of DefaultMap, as the latter produces the hf.cfg error):
OGRE EXCEPTION(1:InvalidStateException): Your map must at least have a width and height defined in the config file in PagingLandScapeOptions::loadMapOptions at C:\programs and utilities\CVS stuff\ogreaddons\paginglandscape\PlugIns\PagingLandScape2\src\OgrePagingLandScapeOptions.cpp (line 618)
Should there be a file called "hf.cfg"? Like I said before, no such file exists on my entire hard drive.

clutch43

25-04-2007 01:58:45

you should have a "hf_129_3.cfg and the hf_129_3.gen.cfg file in terrain folder.
hf_129_3.cfg

this is my hf_129_3.cfg
GroupName=PLSM2

Width=1
Height=1

TextureStretchFactor=4

LandScapeFileName=hf129_3
FileSystem=LandScapeFileName

NumTextureFormatSupported=14

TextureFormatSupported0=Base
TextureFormatSupported1=Base2
TextureFormatSupported2=InstantBase
TextureFormatSupported3=Splatting
TextureFormatSupported4=Splatting2
TextureFormatSupported5=Splatting4
TextureFormatSupported6=Splatting6
TextureFormatSupported7=Splatting7
TextureFormatSupported8=Base
TextureFormatSupported9=Base2
TextureFormatSupported10=Splatting3
TextureFormatSupported11=Splatting5
TextureFormatSupported12=SplattingShader
TextureFormatSupported13=InstantBaseShadowed

TextureFormat=InstantBase

PageSize=129

MaxRenderLevel=5
MaxPixelError=0

ScaleX=15000
ScaleY=3000
ScaleZ=15000

VisibleRenderables=256
CameraThreshold=5

Deformable=yes
VertexCompression=yes
VertexProgramMorph=yes
VertexNormals=yes

MaterialHeight1=5
MaterialHeight2=95

NumMatHeightSplat=4

AvgColorsExists=yes

#Sand
MaterialColor0=1.0f 1.0f 0.0f 1.0f
#Grass
MaterialColor1=0.13f 0.545f 0.13f 1.0f
#Rock
MaterialColor2=0.411764f 0.411764f 0.411764f 1.0f
#Snow
MaterialColor3=1.0f 0.98f 0.98f 1.0f


# where to put camera on load.
BaseCameraViewpoint.x=-4098.0f
BaseCameraViewpoint.y=30644.0f
BaseCameraViewpoint.z=293.0f

Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f


and my paginglandscape2.cfg
DefaultMap=hf
European_Alpes=Alpes
Terrain_Scene_Manager_Terrain=TsmTerrain
hf=hf_129_3

# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
puget_sound=ps_height_1k
grand_canyon=gcanyon_height_4k2k
terragen_genrated=terragen16bits


# resource group name where to find map definition
GroupName=PLSM2

# Try forbidden textureformat combinations
TextureFormatDebug=no

Baiame

25-04-2007 02:59:39

Thanks clutch43. I had both hf_129_3.cfg and hf_129_3.gen.cfg, just not hf.cfg. My hf_129_3.cfg matches yours, as does my paginglandscape2.cfg (with the exception of the replacement of DefaultMap, which still reults in the "hf.cfg" error).

Is there a chance that the version I got through CVS (somewhat over a week ago IIRC) is just broken?

spooky_paul

25-04-2007 09:34:03

i have the same problem. i am also missing a hl.cfg file

edit:

after messing around with paginglandscape2.cfg and resources_plsm2.cfg i got them to this state

paginglandscape2.cfg:

DefaultMap=hf_129_3 #modified line
European_Alpes=Alpes
Terrain_Scene_Manager_Terrain=TsmTerrain
hf=hf_129_3

NewWorld2=NewWorld2

# need to download datasrc.zip from http://tuan.kuranes.free.fr/ogre.html for those
puget_sound=ps_height_1k
grand_canyon=gcanyon_height_4k2k
terragen_genrated=terragen16bits


# resource group name where to find map definition
GroupName=PLSM2

# Try forbidden textureformat combinations
TextureFormatDebug=no


resources_plsm2.cfg:


# Resource locations to be added to the 'boostrap' path
# This also contains the minimum you need to use the Ogre example framework
[Bootstrap]
Zip=../../media/packs/OgreCore.zip

# Resource locations to be added to the default path
[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
FileSystem=../../media/paginglandscape2/terrains #modified line
FileSystem=../../media/paginglandscape2/materials/textures #modified line
FileSystem=../../media/paginglandscape2/materials/programs #modified line
FileSystem=../../media/paginglandscape2/materials/scripts #modified line
FileSystem=../../media/paginglandscape2/models #modified line
FileSystem=../../media/paginglandscape2/overlays #modified line
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


i don`t have anymore mising cfgs errors, but it crashes because of missing images like: hf129_3.Base.0.0.png and hf129_3.Light.0.0.png

any ideea on how to fix this?

spooky_paul

25-04-2007 10:55:06

after a new edit and creation of a map via the terrain generator i (using hf129_3.png and ps_texture_1k.png) do not get errors anymore but it looks like this




and all the numbers flicker with an unreadable speed

clutch43

25-04-2007 12:14:17

paginglandscape2.cfg delete NewWorld2=NewWorld2 ( not used)
seems to me that is an older cfg file..You got latest cvs?

there is no hf.cfg, ie hf=hf_129_3.cfg
try using hf_129_3=hf_129_3 in paginglandscape2.cfg

as soon as map is displayed hit the "M" key...this will make cam not move at light speed....also u can change the starting point of camera...in map.cfg file..ie; hf_129_3.cfg

# where to put camera on load.
BaseCameraViewpoint.x=-4098.0f
BaseCameraViewpoint.y=30644.0f
BaseCameraViewpoint.z=293.0f


change y to =1500 or so.
also add the terrain folder to resources...ie

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

FileSystem=../../../Media/paginglandscape2/gui
FileSystem=../../../Media/paginglandscape2/fonts
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
#######
FileSystem=../../../Media/paginglandscape2/terrains/hf129_3
#######

see if that helps...if not, i would try getting from CVS again,,start from scratch....something not right in your installs...hard to say from here.,as i not sure of ur directory structures.

clutch43

25-04-2007 12:23:53

if u wish i can later today package up my plsm2 and supply a link to it..let me know ok guys.

spooky_paul

25-04-2007 12:26:26

the best thing for me now would be a working demo of it, so i can examine the directory tree and cfg files. if u can supply this i will build u a statue ;)

clutch43

25-04-2007 13:23:29

ok. i will package up something. will be stripped down of all/most media stuff to make it smaller. I will enclose a readme file let u know where to put everything. I use VC8 express ( sp1). possibly u can build it from my sln file with no probs..or just study it...k will try get a link here prob later today..have to run out for few hrs. :wink:

there maybe a limit on size of file i can upload to my briefcase, but ill do my best,,possibly might have to email you the file..let u know later ok. possibly 6 megs or so. ( stripped),,but it will give u an idea anyway. k later.

spooky_paul

25-04-2007 13:25:29

thanks man! can`t wait to get my hands on it

clutch43

25-04-2007 15:57:24

http://ca.briefcase.yahoo.com/bc/glenfa ... bc&.view=l

sorry for the poor man's web site..hehe..works for now.

so when u get it...place it in your root "DEV" do an "extract here" u should have PLSM2 folder,,,and read the readme.

hope it sheds some light. let me know.

spooky_paul

25-04-2007 16:04:21

thanks m8! i`ll look into it tonight. i`ll post soon how it goes

spooky_paul

25-04-2007 17:28:15

i managed to fire it up, thanks m8! i ow ya one




but it doesn`t render right



this starts as soon as i move the mouse

clutch43

25-04-2007 18:55:19

never seen that before.. :o
what is your hardware?
release or debug?

as soon as the map appears press " M " key...use spacebar+ w key move in. same?..even when your at ground level?

what about other maps., same?

spooky_paul

25-04-2007 19:37:09

pretty old hardware, nvidia`s fx5200

release mode.

i have made a new map.

this one renders normal



thanks for the help clutch43

Baiame

25-04-2007 21:20:14

there is no hf.cfg, ie hf=hf_129_3.cfg
try using hf_129_3=hf_129_3 in paginglandscape2.cfg

as soon as map is displayed hit the "M" key...this will make cam not move at light speed....also u can change the starting point of camera...in map.cfg file..ie; hf_129_3.cfg

Aha! That's it. Just loaded the alpes map, and it worked. I wonder why the config was set up in such a way that it produced an error, hmm. I guess you're supposed to change the hf references in paginglandscape2.cfg?

Anyway, thanks alot for your help, clutch43.

clutch43

25-04-2007 22:29:15

Good stuff. Glad i was able to help. :wink:

I find not much works " out of the box",,usually have to fiddle with something.

Baiame

25-04-2007 22:52:44

^ Yeah, too right.