Chadderz121 / yamlconv

Converts between BYAML and XML
GNU General Public License v2.0
10 stars 5 forks source link

Suggestion: Support for SM3DL and SM3DW BYMLs #1

Open mariomadproductions opened 9 years ago

mariomadproductions commented 9 years ago

I can provide files, if you need them.

Chadderz121 commented 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.

mariomadproductions commented 9 years ago

SM3DW BYMLs begin with "BY". SM3DL BYMLs begin with "YB".

Chadderz121 commented 9 years ago

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.

mariomadproductions commented 9 years ago

I will. Thanks.

Antidote commented 9 years ago

It's an indication of the Endianness, YB = Little, BY = Big.

Chadderz121 commented 9 years ago

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.

NightScript370 commented 7 years ago

How do I compile this commit?

shibbo commented 6 years ago

@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.