jeremyfa / spine-hx

Spine runtime for Haxe automatically converted from the official Java/libgdx runtime
Other
56 stars 15 forks source link

Issues with HashLink target #12

Closed Beeblerox closed 5 years ago

Beeblerox commented 5 years ago

Unfortunately i've found that there is issue with HashLink target (i've tried it with HashLink 1.7 and 1.8 versions). I think that problem lies in HashLink itself, but current spine-hx library doesn't work at all. For some reason HashLink crashes when you import SkeletonJson class. After some investigation i've found that the crash is caused by JsonReader and JsonValue classes. I haven't isolated the root of this issue yet.

As a temporal workaround i had to rewrite SkeletonJson, so it doesn't use any these classes. If you interested in this solution, then you can look at it here: https://github.com/Beeblerox/spine-hx/commit/9f2a7d3d9151a4990907b00efc394d2a5f7de07b

I will report issue to HashLink repo as soon as i assemble simple projech which reproduces it. Will keep you informed. Hope that it will be fixed soon.