sorry for asking so many questions lately you guys :<
I'm making a data formatter for the game i'm making. here's how i'm going about it:
character/stages need 1 sprite sheet and 1 metadata JSON
- extract bitmapData from image and save into a variable
- load and encrypt JSON string using a combination of xor and base64 encryption (decrypts fine)
- make object and put them both into it -> { sheet: [bitmapData], meta: [cryptString] }
- write that all into a ByteArray and compress using byteArray.compress();
- write byteArray into a file and save it
it's fairly straightforward i think, but when i try to decompress one of those files (using byteArray.uncompress(); of course), i get this error in FlashDevelop:
[Fault] exception, information=Error: Error #2058: There was an error decompressing the data.
BUT, right before that, it traces the data correctly!
loaded ucd name: dummy
loaded ucd json: {"stats":{},"hitboxData":{},"animationData":{},"name":"dummy"}
is this a bug?? do i have to worry about it messing something up? if i end up doing expansion characters, i want to be able to make this data formatter a public tool so people can work on their own characters or stages, like MUGEN, but easier.
once again, i'd really appreciate any help you guys could give :>