New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
249: Copy the Blender 2.49 Dataref encoding and decoding scheme #352
Comments
Important places to start looking
|
|
A lot of this gets solved in XPlaneExport8_util, Known Ambiguous Datarefs
Multiple Bones
Custom Datarefs
tail:rest/of/dataref problems when tail is abbreviated
Imagine |
Use of Datarefs As Full And Short Names
Known Vs UnknownKnown means it came from DataRefs.txt (whether a user hand edited this file or not is another question). Being known has the privilege of being able to have bone names and prop keys (value and tail-to-head) that are longer than 31 characters. During load, XPlaneUtil creates a dictionary of datarefs that will match. Key-Tail-To-Head of a known dataref is used to remove ambiguity between known datarefs. Unknown datarefs cannot have a tail that gets compressed because there is no dictionary to put the key back into to get the full dataref, and without the full dataref, you can't relook up the associated bone name. |
Ignore the above, it represents a very limited set of knowledge. This is the summery of my work understanding this system |
With 6558d18, we can now say we've gotten to a point where bugs should say what is wrong with our completed system, not that we have a system to discover and complete! Closed! |
The 2.49 exporter appears to compress the dataref into the GameProperty and decompress the dataref and write it into the OBJ.
When opening a 2.49 file in 2.78, all we get is the short name. We'll have to reverse engineer decompression algorithm to get the short name back to it's full potential.
Questions?
See also: #348
The text was updated successfully, but these errors were encountered: