How to: "Hack" out objects for ZE worlds (*.wld)

Started by RepComm, November 15, 2012, 06:57:20 PM

Previous topic - Next topic
November 15, 2012, 06:57:20 PM Last Edit: November 15, 2012, 06:59:18 PM by -RepublicCommando-
Well, I've had this problem before, and I've heard of a few others as well. So I found a fix!
THE PROB:
Okay so, sometimes, you cannot get objects in ZE to delete, even if you tell the whole Data(modid) folder to be un-read only.    So you get stuck with a world full of junk that you don't want.
THE FIX:
If you go inside your Data(modid) folder, and into Worlds folder, then (name of map) folder, then either World1, or World2 folder (depending on what you are editing),
then find the (mapname)_Buildings.LYR file.
Open it with NotePad, or some sort of text editor.
Scroll down to where you have this type of a first line:
Object("", "bes2_bldg_base", 1963669)
{
ChildRotation(1.000, 0.000, 0.000, 0.000);
ChildPosition(-179.000, -50.000, -132.000);
SeqNo(1963669);
Team(0);
NetworkId(-1);
Layer(2);
}


and if you want ALL the objects in that world DELETED FOR GOOD, select that first line, all the way to the bottum of the text/file. and Hit BackSpace or Delete.
Save the file (SAVE, not save AS, and make sure the file is not READ ONLY)

NOW, you are done, open the *.Wld file in ZERO EDITOR, and check it out. NO OBJECTS :D

I wouldn't call text editing "hacking" but this is a useful trick I use for various maps.