Quantcast
Viewing all articles
Browse latest Browse all 103

How to read a custom binary file made with Adobe air into Unity 3D & C#

I have a custom data file from a project that was authored in actionscript some years ago by another developer. I am porting parts of the project over to Unity 3D. I don’t have any documentation for the original project (I hope to speak to the original developers at some point but I cannot wait for that).

The file is a special bitmap that represents the positions of objects on a grid. The custom file is created using an editor created in Adobe air. I believe (not knowing any better) that the source code I have for the file decoder is the same source from the editor. I don’t have the editor source code.

Where I am getting into trouble is the binary file. From what I can tell at the moment, the file is a compressed byte array on the Adobe air side of things. I don’t believe I can just load the compressed file with Unity3D as a resource object. I would like to decompress the file and use it as an asset in Unity.

I am trying to figure how to decompress the binary file. I have tried viewing the file contents in a hex editor to establish what the compression format is with no joy; I have not done anything specifically like this before


Viewing all articles
Browse latest Browse all 103

Trending Articles