Page 1 of 1
Multiple Worlds, One Mod
Posted: Fri Dec 12, 2008 11:41 pm
by Tygr
I noticed that several shipped maps (Tatooine, for example) have multiple worlds, world1 and world2. Is it possible to do this in a mod map, as well? Because I am using a custom side file to contain special units and vehicles, and I wanted to have my maps share it. It would also be handy if this would allow object sharing. The would cut down on file size.
If it's possible, how can I do it?
Re: Multiple Worlds, One Mod
Posted: Sun Dec 14, 2008 10:25 am
by Master_Ben
As far as I know, you couldn't share objects, but sides, I think, yes.
Name your custom side something that isn't a shipped side (i.e. rep2 for this example) and create an installer for your map (tutorial for that below and in the FAQ). Now, instead of installing it to the addon directory, make it install to the shipped side folder, like this: Star Wars Battlefront 2/Gamedata/_LVL_PC/SIDE. If you have the convo pack, you'll notice there are a bunch of custom sides in there for just the same reason. Now, once you've done that, change the LUA to not read a custom file, if that makes any sense. Basically, putting the file there makes it readable by any level as long as you point it to the right directory, so don't put a dc: in front of it. THere you go, you're done!
From what I understand, the world1 and world2 thing can be used for having different terrains, objects, ect. So I don't think you need it.
Installer link:
http://www.gametoast.com/forums/viewtop ... =27&t=8997
Re: Multiple Worlds, One Mod
Posted: Sun Dec 14, 2008 5:00 pm
by Frisbeetarian
You can load a layer, and thus the objects (like vehicle spawns), regions, etc., from any map into any other map you create with
Code: Select all
ReadDataFile("dc:ABC\\ABC.lvl", "ABC_conquest")
where conquest is the layer name in zeroeditor and ABC is the three letter world designation.
Re: Multiple Worlds, One Mod
Posted: Thu Dec 18, 2008 7:58 pm
by Tygr
What I wanted to do was make a series of related maps without having to have multiple add-ons, but instead have multiple worlds in one add-on.
I'm working on a Correllia map, but I want to do several locations on the planet (Spaceport/city, Rural town with forest, maybe an orbital facility) that would be in separate maps. With them separate I would have to update several versions of my Correllian custom side (Vehicles and locals) to fix issues.
So is there a way to do the world1, world2, etc?
Re: Multiple Worlds, One Mod
Posted: Thu Dec 18, 2008 8:22 pm
by Frisbeetarian
I think you misunderstand the importance of the having two worlds in a map name. The only ways that this is different from having two separate maps are the cosmetic changes inside the directory structure (causing you to be able to have more mod maps (though not more scripts)) and because of that, a different path referenced in the Lua. Basically, in terms of how the game works while playing and modding the game, two separate maps works the same as two worlds under the same map name. This is accomplished by manipulating the ReadDataFile line.
Re: Multiple Worlds, One Mod
Posted: Thu Dec 18, 2008 8:46 pm
by Tygr
Hmm, so could I load one mod map from another's LUA?
BTW, I got a second world to load, but none of the CPs show up, so I can't spawn. Still working on that, though.