[SOLVED] Problem parsing resource file

Vigsted

21-07-2006 15:37:38

I've downloaded and built PLSM2, however whenever I parse my paginglandscape2.cfg file (see below) I get a messed up result from the config.getSettingsIterator(). I've looked around but couldn't find anyone with similar problems.

This is the result of the mMapList.Inserts using config.getSettingIterator():

- mMapList
+ [0] ("agen_genrated","terragen16bits")
+ [1] ("et_sound","ps_height_1k")
+ [2] ("extureFormatDebug","no")
+ [3] ("ltMap","HorizonTestMap")
+ [4] ("nd_canyon","gcanyon_height_4k2k")
+ [5] ("onTestMap","hf_129_3")
+ [6] ("pean_Alpes","Alpes")
+ [7] ("rrainScene","TsmTerrain")
+ [8] ("upName","PLSM2")


My file contains the following:

DefaultMap=HorizonTestMap

TerrainScene=TsmTerrain
puget_sound=ps_height_1k
grand_canyon=gcanyon_height_4k2k
terragen_genrated=terragen16bits
European_Alpes=Alpes
HorizonTestMap=hf_129_3

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

# Try forbidden textureformat combinations
TextureFormatDebug=no


Any ideas?

Getting a new version out of CVS seemed to fix the issue.

tuan kuranes

24-07-2006 16:12:19

windows-linux line ending incompatibily problem.
( Might also comes from editing it using basic windows notepad. )