(May 16, 2014, 06:46 AM)FlightToAtlantis Wrote: I tried looking this one up on the internet but only got links to applications to edit hex code. What I’d like to know is:
- How is it that RCT3 manages to assign the same hexadecimal number to a scenery object each time that object is in use in the game. Is it possible, whether by error or by flaw in game design, to assign duplicate hex numbers and if so would two objects using the same hex number cause the game to crash?
- When a custom object is opened in the game, the hexadecimal number it is assigned, is that assigned by the CS artist or by the game engine?
- Are the hex numbers assigned to in-game items the same across different installs on different platforms?
I know this is a tall order but hopefully someone could provide some information.
I was curious and found this page...not an expert at this at all, but I like learning new things. You may or may not have come across this already. Here is a link:
http://www.scasm.de/doc/sca_objl.htm (or
http://www.cfgse.calebflerk.com/SCASMLanguage.htm)
"How to generate and use object libraries"
"Important! Please read this document carefully because there are some significant changes in the instruction format from version 2.22 to 2.32. There is a table of the changes at the end of this document.
There are also some changes in the handling of the object ID number in SCASM 2.36.
About BGL libraries
Library objects are defined in the Object Library Section of BGL files. This section is traditionally called section 10 by 3rd party scenery developers. Library objects are very memory efficient if you need to display a number of equal objects at the same time in your scenery. The disadvantage is that it is not easy to modify them. BGL libraries appeared first in FS98 for the dynamic objects. Later we found lib objects also in CFS. CFS uses library objects also for often used aircraft parts such as propellers and bombs. Unfortunately the binary format of the FS98 and CFS/FS2K libs are not compatible.
If you have found out some interesting facts which are not mentioned in this document, please don't hesitate to send a small message to me (plain ASCII text).
Please note that SCLINK cannot handle object library data. If needed I will create an LibManager for this job. If you want to see a list of the names in an CFS/FS2K lib please use my CatGen program. (Most FS2K libs needs to be uncompressed by BGLZIP from MS)
Howto start If you do not only want to use objects from one of FS/CFS standard libraries, you have to create your own lib. It is recommended not to mix library object definitions with other BGL sections (use different source files for lib objects and your scenery). You also should not mix FS98 style objects and CFS/FS2K objects in the same library..."