MapSplitter and maptool.cfg

SuperMegaMau

02-12-2006 19:56:30

hi,

I'm trying to use the MapSplitter tool in order to create default pages based on the demo files. I didn't change any of the default cfg files or gen.cfg, just added some resources to my resources.cfg file.

The problem is that I can't run MapSplitter tool without getting a Segmentation Fault. I put some couts in MapUtil.cpp and found that the crash is at this point:
mOptions->load(String("maptool.cfg"));

my maptool.cfg
DefaultMap=European_Alpes

European_Alpes=Alpes.gen
TSMTerrain=TsmTerrain.gen
hf_129_3=hf_129_3.gen

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

# resource group name
GroupName=PLSM2

#do you want to run it on all maps listed here
BatchMode=no


I believe all resources are correctly defines in resources.cfg, so what could be the problem?

tuan kuranes

06-12-2006 14:06:29

Unless mOptions is not allocated, bug cannot be here... strange thing

CVS or SDK ?
did you check mapsplitter.log ?

SuperMegaMau

06-12-2006 14:50:39

Its CVS version, and I cout the pointer, and it is not null, apparently is well allocated.

tuan kuranes

06-12-2006 16:53:03

It's a Bug in current CVS. I'll fix that asap.

tuan kuranes

06-12-2006 17:01:22

Fixed in CVS.

SuperMegaMau

06-12-2006 22:32:12

Hummm... same problem with the new version...

tuan kuranes

07-12-2006 17:32:30

maybe a bad commit. I remade a new One.
Please check.

SuperMegaMau

07-12-2006 18:46:17

maybe a bad commit. I remade a new One.
Please check.


well... not working yet... where can I find the sdk version, and is it linux compatible?

tuan kuranes

09-12-2006 12:58:06

It really should now. are you sure you got latest modifications ?

SDK is on the link on plsm2 wiki. SDK has makefiles in it for linux.

SuperMegaMau

09-12-2006 16:21:18

With the SDK version all works right, I just had to change some files because some problem with namespaces, but no segfault anymore.

About the CVS version, I allways checkout the whole version instead of update it, so, what I get is what is there...

tuan kuranes

14-12-2006 14:07:52

Sorry, didn't reproduced really the bug before. Was coming from a different setup (.cfg in exe directory, whereas I'm using .cfg in resource directories). Now it's Fixed, really.