Removing objects

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

Moderators: Uros, OXO, GR, ASH33M

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

Removing objects

Postby GregHart1965 » Thu Jan 19, 2017 11: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: 123
Joined: Mon Nov 19, 2007 10:49 am
Location: Marseille - france

Re: Removing objects

Postby dgtfer » Fri Jan 20, 2017 1: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: 532
Joined: Mon Oct 31, 2011 2:17 am
Location: The Netherlands, Europe Continent, Earth Planet, Milky Way Galaxy, Virgo Super Cluster
Contact:

Re: Removing objects

Postby EDB » Sat Jan 21, 2017 12:17 am

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).
SKINS : Team the Netherlands 5.3 and Dutch Nationals 14.10

From the developers : Condor V2 is now in Alpha

In the 32-bit world, time won’t go beyond Tuesday 2038-01-19 03:14:07 (UTC). Instead it will return to Friday 1901-12-13 20:45:52 (UTC).

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

Re: Removing objects

Postby GregHart1965 » Sat Jan 21, 2017 6: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: 388
Joined: Sun Apr 12, 2015 7:21 am

Re: Removing objects

Postby GregHart1965 » Sat Jan 21, 2017 8: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


Return to “Scenery”

Who is online

Users browsing this forum: No registered users and 4 guests