Removing objects

Everything related to creation of new sceneries for Condor...

Moderators: Uros, OXO

Post Reply
GregHart1965
Posts: 649
Joined: Sun Apr 12, 2015 7:21 am

Removing objects

Post by GregHart1965 » Thu Jan 19, 2017 10:33 pm

Is there any fancy way to find objects in a landscape? I want to remove the references to objects that were placed but which Ive decided not to use. They are two aeroplanes probably placed in the middle of nowhere which I cant find. (Yes obviously I should keep a list of coordinates but neglected to do so).

If I leave the references in the object file but simply delete the old .cx's will that cause issues or is it ok?

User avatar
dgtfer
Posts: 521
Joined: Mon Nov 19, 2007 9:49 am
Location: Marseille - france

Re: Removing objects

Post by dgtfer » Fri Jan 20, 2017 12:50 pm

Objects position is located in YourScenery.obj:
Each object is coded on 152 bytes

Bytes 0 to 3 : PosX - binary 32 bits, signed floating-point, big endian
Bytes 4 to 7 : PosY - binary 32 bits, signed floating-point, big endian
Bytes 8 to 11 : PosZ - binary 32 bits, signed floating-point, big endian
Bytes 12 to 15 : Size (object zoom factor) - binary 32 bits, signed floating-point, big endian
Bytes 16 to 19 : orientation in radians - binary 32 bits, signed floating-point, big endian
Byte 20 : object name size - binary 8 bits, integer
Bytes 21 to ?? : Object Name - Ascii code
Bytes ?? to 151 : undetermined information

If you want to delete an object you have to delete all 152 corresponding bytes.
Image

User avatar
EDB
Posts: 1575
Joined: Mon Oct 31, 2011 1:17 am
Location: The Netherlands, Europe Continent, Earth Planet, Milky Way Galaxy, Virgo Super Cluster

Re: Removing objects

Post by EDB » Fri Jan 20, 2017 11:17 pm

If you give the object a colour in CST, you can find it/them easier... And when you have selected the object name, filter it...
Also turning off the textures helps.

Be careful when deleting the objects with the eraser in filtered view. You will also delete the objects that are unfiltered...

Or use the info from dgtfer and a HEX editor.

If that doesn't work I might be able to help you. Then you have to give me the trn and obj file and the name of the object(s).

GregHart1965
Posts: 649
Joined: Sun Apr 12, 2015 7:21 am

Re: Removing objects

Post by GregHart1965 » Sat Jan 21, 2017 5:02 pm

Thanks guys I eill try filtering with CST and see if thst works.

I wouldnt know anything about hex editing but I guess theres a first time for everything

GregHart1965
Posts: 649
Joined: Sun Apr 12, 2015 7:21 am

Re: Removing objects

Post by GregHart1965 » Sat Jan 21, 2017 7:04 pm

Ok colour and filtering helped. I hadnt used it before - very useful.

Only found one plane but then just filtered and selected the entire scenery and clicked delete. Doesn't seem to select other objects so I think that method is ok. Just don't use the eraser as you say.

References seem to have been removed according to Scenery Check - although Im feeling a bit headachey to read it properly right now.

Thanks again

Post Reply