RETON icon indicating copy to clipboard operation
RETON copied to clipboard

WRONG RTON number header hex 0x49

Open SMFDrummer opened this issue 10 months ago • 2 comments

Please change it to 0x45 instead in CHUNK_TYPE 0x49 is deprecated

SMFDrummer avatar Mar 26 '24 13:03 SMFDrummer

Agreed, 0x49 would be varuint64_t (a signed unsigned int64), which doesn't make sense:

Bytecode Type Limitations
0x24 uvarint32_t  0-2147483647
0x25 varint32_t  -2147483648-2147483647
0x28 uvaruint32_t  0-4294967295
0x44 uvarint64_t  0-9223372036854775807
0x45 varint64_t  -9223372036854775808-9223372036854775807
0x48 uvaruint64_t  0-18446744073709551615

nineteendo avatar Mar 26 '24 16:03 nineteendo

I am trying to rewrite the RETON project using Kotlin, but besides 0x49, I have also encountered some decoding issues with rton2json. For example, I am unable to correctly transcode and shape data because there are too many types of data. I can provide the source code of the semi-finished Kotlin project. Can you give me some improvement suggestions?

SMFDrummer avatar Mar 26 '24 17:03 SMFDrummer