Open mariomadproductions opened 9 years ago
Just to clarify, are the SM3D files "BYML" or "BYAML"? There may be a difference. The very start of the file should be "BY" for "BYAML" files; if this is not the case they may be unrelated.
SM3DW BYMLs begin with "BY". SM3DL BYMLs begin with "YB".
OK, sounds like they could be of the right format, I'll look into it if I get chance. If you or anyone else is able to perform any analysis, let me know what you find here.
I will. Thanks.
It's an indication of the Endianness, YB = Little, BY = Big.
I've added Endianness detection based on the YB or BY magic in commit 15e376f0f6203000ce423e13536d572eefeb287f. This also adds an attibute to the xmls - yamlconv:endianness. If this is set to "little" it will generate a little endian BYAML on conversion. This has not been tested with one of the files in question though, so please let me know if it doesn't work, and if possible, submit a pull request which fixes it.
How do I compile this commit?
@Chadderz121 The little endianess does not work due to specific bitwise operations that you do in the constructors for each node type, you can see them fixed in my fork. However, I was unable to get saving them to work, so if you can fix that as well, I can send you a sample file if you need one for testing, just contact me at supershibbo@gmail.com.
I can provide files, if you need them.