Can't serialize Vector data type when targetting neko?

42 views
Skip to first unread message

Mike Lee

unread,
Sep 25, 2015, 11:19:54 PM9/25/15
to HaxeFlixel
when trying to serialize an openfl.Vector or a haxe.ds.Vector, like so:

var transforms = new Vector<Transform>(5);
var serializer = new Serializer();
serializer.serialize(transforms);

it throws an error:

Cannot serialize [null,null,null,null,null]

When the vector is properly populated with instances, neko still shows this error.

So far the error only happens when targetting neko. It works on windows c++, and flash (haven't tried other targets).

can someone replicate this prob? thanks a bunch,

SruloArt

unread,
Sep 26, 2015, 2:44:25 PM9/26/15
to HaxeFlixel
Yep, I just did. :)

Mike Lee

unread,
Sep 27, 2015, 6:28:48 AM9/27/15
to HaxeFlixel
welp, back to using arrays :/

Gama11

unread,
Sep 27, 2015, 7:25:42 AM9/27/15
to HaxeFlixel
You might want to report this on the OpenFL repo's issue tracker.

Mike Lee

unread,
Sep 29, 2015, 1:22:46 AM9/29/15
to HaxeFlixel
alright, might do it soon, been busy

Mike Lee

unread,
Oct 2, 2015, 8:15:51 PM10/2/15
to HaxeFlixel
Reply all
Reply to author
Forward
0 new messages