ldtk-haxe-api icon indicating copy to clipboard operation
ldtk-haxe-api copied to clipboard

Errors when running the HaxeFlixel sample project

Open QuinnStephens opened this issue 1 year ago • 3 comments

I'm having some trouble getting the HaxeFlixel sample to run. At first I ran into this issue but was able to add the dependency to Project.xml to fix the error: https://github.com/deepnight/ldtk-haxe-api/issues/12

However, when I attempt to run lime test I get the following errors now:

src/PlayState.hx:17: characters 25-35 : LdtkProject has no field all_worlds
src/PlayState.hx:17: characters 17-50 : You can't iterate on a Dynamic value, please specify Iterator or Iterable

I note there's an all_levels field on LdtkProject but if I try to iterate over that, I get:

{ West : LdtkProject_Level, Treasure_room : LdtkProject_Level, Pit : LdtkProject_Level, East : LdtkProject_Level } has no field iterator

I haven't used Haxe in a while and there are unfortunately very few Google results for that error, so I'm not sure what exactly is wrong here. Any help would be appreciated. Thanks!

QuinnStephens avatar Jan 08 '24 03:01 QuinnStephens

This should be fixed in 1.5.3

deepnight avatar Jan 15 '24 14:01 deepnight

Unfortunately, I'm still getting this error in 1.5.3.

QuinnStephens avatar Jan 16 '24 18:01 QuinnStephens

I get a similar issue: PS C:\Github\ldtk-haxe-api\samples> haxe buildAll.hxml C:\HaxeToolkit\haxe\lib\heaps/git/h3d/prim/ModelDatabase.hx:98: characters 30-37 : hxd.fs.LocalFileSystem has no field convert

ValorZard avatar Jul 22 '24 23:07 ValorZard