Two world files for one map - possible?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Two world files for one map - possible?

Post 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!
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post 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
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Post 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!
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

No problem. ;)
Ace_Azzameen_5
Jedi
Jedi
Posts: 1119
Joined: Sat Apr 23, 2005 8:52 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post 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)
Darth_Z13
Jedi High Council
Jedi High Council
Posts: 2275
Joined: Sat Jun 17, 2006 9:51 am
xbox live or psn: Xanthius Wylon
Location: Canada

Post by Darth_Z13 »

Yes you can, same way as I told jango, you just need the world names to be different. ;)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Post 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.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Post by The_Emperor »

Hoth does for sure.
Post Reply