Page 1 of 1

Two world files for one map - possible?

Posted: Mon Jul 16, 2007 11:39 am
by jangoisbaddest
I've been trying to get two different world files to be loaded depending on the gamemode, but so far my results have been less than stellar. One gamemode runs and has functioning CPs, but there is no terrain, sky, or any objects. The other mode doesn't even have CPs (obviously, the layers aren't loading correctly).

Perhaps this is not possible, but before I say that, I need to know more about how the game loads the world, terrain, sky file, etc. If it loads all of this from the layers (which I doubt), it should be working. If not, I would like to know how it loads all the aspects of the world.

What I've done so far:

*Saved a new world file, changing the lighting in one of them.
*Put the base layer on BOTH maps under the conquest gamemode.
*Updated the .reqs and .mrqs in the gamemode editing tool in ZE (in both)
*Saved the world file (in both)
*Refrenced TST_conquest and TSN_conquest in their respective CW and GCW Conquest LUAs (TST and TSN are the two different world file names).

Thanks in advance!

Posted: Mon Jul 16, 2007 12:02 pm
by Darth_Z13
It is possible. I did it by accident when I was making Kamino: Clone Command.

You need a world1 folder and a world2 folder. Put the TST files in one and the TSN files in the other. Put all your ODF/MSHs etc. in the proper folder. Then, in your LUA, find a line that looks like this:

Code: Select all

ReadDataFile("dc:ABC\\ABC.lvl", "ABC_conquest") 
In your game mode LUA, change the 'ABC.LVL' to 'TSN.LVL' and the 'ABC_conquest' to 'TSN_conquest'. (and change conquest to eli or whatever mode (also, change TSN to TST if thats what you need.)

That should work. I think. :P

Posted: Mon Jul 16, 2007 12:13 pm
by jangoisbaddest
Of course! I should have thought of that, considering the setup of the world folders in Battlefront I. Regardless, I owe you much thanks, Darth!

Posted: Mon Jul 16, 2007 12:24 pm
by Darth_Z13
No problem. ;)

Posted: Mon Jul 16, 2007 3:36 pm
by Ace_Azzameen_5
Is it possible to draw modes for one map entry from two world files?

For example, have CW from world1 and GCW from world2?

That way you could have the changing lighting/ sky for different modes.
(I tried making the skydome msh and targa a side, but failed. Still that might work too)

Posted: Mon Jul 16, 2007 4:05 pm
by Darth_Z13
Yes you can, same way as I told jango, you just need the world names to be different. ;)

Posted: Mon Jul 16, 2007 9:08 pm
by [RDH]Zerted
Some of the official maps have more than one world. Look at the /assets/worlds folder in the mod tools. I think TAT has more than one world.

Posted: Tue Jul 17, 2007 5:55 am
by The_Emperor
Hoth does for sure.