Page 1 of 1

loading objects from the same odf and msh folders

Posted: Sun Jul 05, 2009 5:06 pm
by YaNkFaN
While making Khimera i came up with a dilemma that I was pretty sure could be fixed but I had absolutely no clue how to do it. In SWBF2 many of the worlds have a world1 and world2 folder even world3 in the case of Tat. These constitute 3 different maps. However each map draws from the same odf and msh folder for objects. Is this possible to do with modding (I assume it is) and how would one do this? I have a feeling the answer is in tean's loading multiple maps from one addon but the link for the tut is broken. Also looking through the stock maps that do this there are just 2 level files which i believe constitute for the 2 maps so yea any ideas or has anyone done this because it would save a lot of space for making large mappacks like khimera in the future

Re: loading objects from the same odf and msh folders

Posted: Sun Jul 05, 2009 5:13 pm
by Maveritchell
WorldX is fairly arbitrary, they all draw from the same assets because they are all tucked in the same data_MODID/Worlds folder. The end .lvl files come from their respective .reqs contained in the worldX folder. I believe the numbering is unnecessary and you could get the same result just having them all in one world folder (actually you can really probably just lump all your files together in one folder, I am not sure, as I've never tested it, but I think that the folder structure is really just organizational in nature).

Re: loading objects from the same odf and msh folders

Posted: Sun Jul 05, 2009 5:16 pm
by YaNkFaN
but would the game recognize the 2 or more different .lvls in the 3 letter addon folder as separate maps? or would it choose one randomly

Re: loading objects from the same odf and msh folders

Posted: Sun Jul 05, 2009 5:18 pm
by Maveritchell
Why wouldn't it? You choose what .lvl files you call in a .lua.

Re: loading objects from the same odf and msh folders

Posted: Sun Jul 05, 2009 5:20 pm
by YaNkFaN
good point...lol guess i got the answer i need thanks as always