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?
Removing objects
Re: Removing objects
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.
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.
- 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
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).
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).
-
- Posts: 649
- Joined: Sun Apr 12, 2015 7:21 am
Re: Removing objects
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
I wouldnt know anything about hex editing but I guess theres a first time for everything
-
- Posts: 649
- Joined: Sun Apr 12, 2015 7:21 am
Re: Removing objects
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
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