Load map directly from the maps cfg?

Sarev0k

05-02-2006 23:10:44

Would it be possible to modify the PLSM to allow for indevidual maps to be loaded directly from their cfg file?

Right now the current system requires maps to be first loaded from an intermediary file like the following


DefaultMap=European_Alpes

#puget_sound=ps_height_1k
#grand_canyon=gcanyon_height_4k2k
#terragen_generated=terragen16bits
European_Alpes=Alpes
#Terrain_Scene_Manager_Terrain=TsmTerrain
#def=Default

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

# Try forbidden textureformat combinations
TextureFormatDebug=no


Which points to the actual map cfg file that contains information of how the heightmap should be loaded.

What I would like to be able to do is skip the intermediary file step and jump directly to loading the map I want to load.

Is this possible with current implementations of the PLSM and if not, is there the posibility for this functionality to be added?

Thanks

tuan kuranes

06-02-2006 08:12:00

you can make a paginglandscape2.cfg with one map pointing to a empty (but existing) map file, being the default map and set BatchMode to yes.
then Load map using "InsertNewMap" and "CurrentMap" SetOption mechanism to load those.

If needed perhaps I can make a new option in paginglandscape2.cfg disabling it ?

OvermindDL1

07-02-2006 00:50:44

That would be nice. Ahead of time in a game you probobly will not know what maps are available if they can be user made.

tuan kuranes

07-02-2006 09:31:36

Ok I'll add that.


DefaultMap=None



Is that Ok ?

OvermindDL1

08-02-2006 04:38:13

That'd be perfect; that one configuration line would save a bit more hassle in setting up an empty landscape.

tuan kuranes

09-02-2006 10:22:14

added in CVS.