Duplicating a Layer

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
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Duplicating a Layer

Post by PvtParts »

I want to have both a campaign, and a conquest for the map im working on right now. Sadly, when I first made this map, I didnt do any campaign layer or anything.

So, in order to get a campaign mode up and running, one of the first things i'd have to do is re-place every object (because they are all needed in campaign) from conquest into campaign. This, quite obviously, would be a very large pain in the rear.

So, I'm hoping someone knows how I would go about simply duplicating the conquest layer, and then modding the duplicate to act as the campaign layer.

And thats about it for know. If anyone's got any ideas, lemme know.

Thanks,

Parts
DarkHelmet

Post by DarkHelmet »

All the objects are defined in SWBF2_ModTools\data_XXX\Worlds\XXX\world\XXX_<i>gametype</i>.lyr

Open this file using wordpad or an ascii-editor (do not use notepad).
In this file you can find the objects, their names, positions, teamnumber and in which layer the are placed.

What you do:
- MAKE A BACKUP FIRST
- place an object in the correct layer and close ZE.
- open the *.lyr and search for the object you just placed.
- each layer has a number. Use this number for the other objects wgich need to be moved.
- check in ZE if it worked.

my layer file 003_GCW-Ships.lyr (mod id= 003 and it's a gcw spacemap)
Version(3);
SaveType(0);

Camera("camera")
{
Rotation(0.994, 0.082, -0.079, 0.006);
Position(2258.650, -783.315, -235.443);
FieldOfView(55.400);
NearPlane(1.000);
FarPlane(5000.000);
ZoomFactor(1.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(0.000, 0.000, 0.000, 1.000, 0.000, 0.000, 0.000);
Bookmark(10.705, 417.369, 2075.177, -0.009, 0.000, -0.999, 0.054);
}
LightName("003_GCW-Ships.LGT");
ControllerManager("StandardCtrlMgr");

WorldExtents()
{
Min(0.000000, 0.000000, 0.000000);
Max(0.000000, 0.000000, 0.000000);
}

NextSequence(-1083866);

Object("imp_cap_stardestroyer_engine0", "imp_cap_stardestroyer_engine", 77595046)
{
ChildRotation(0.368, 0.000, -0.930, 0.000);
ChildPosition(2339.347, -824.733, -201.487);
SeqNo(77595046);
Team(0);
NetworkId(-1);
Layer(2); <- change this value
}

Object("all_prop_console30", "all_prop_console", 81414641)
{
ChildRotation(0.998, 0.000, 0.069, 0.000);
ChildPosition(524.618, 13.615, -928.906);
SeqNo(81414641);
Team(0);
NetworkId(-1);
Layer(2);
}
Note: i haven't tested this so make sure you have a backup in case everything gets screwed up!
Also i'm not sure if an object can be defined in more than 1 layer. So just in case do not copy.

DH
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 »

That last number appears to uniquely identify each object placed. However it automatically gives a new one to dupes. You'll just have to hit yes or ok a bunch of times.

But please do a full backup first. I don't want to be responsible for WNA'in your map up.
PvtParts
Jedi
Jedi
Posts: 1001
Joined: Mon Apr 03, 2006 9:12 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: plundering yer booty

Post by PvtParts »

Alright thanks guys. I'll try to work more on it this afternoon, and get back to ya then.
Post Reply