Page 1 of 1

Duplicating a Layer

Posted: Sat Oct 21, 2006 3:59 pm
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

Posted: Sun Oct 22, 2006 8:44 am
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

Posted: Sun Oct 22, 2006 9:59 am
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.

Posted: Sun Oct 22, 2006 10:11 am
by PvtParts
Alright thanks guys. I'll try to work more on it this afternoon, and get back to ya then.