deepnight / ldtk-haxe-api

LDtk level editor Haxe API (available on HaxeLib)
MIT License
93 stars 32 forks source link

Errors when running the HaxeFlixel sample project #32

Open QuinnStephens opened 11 months ago

QuinnStephens commented 11 months ago

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!

deepnight commented 10 months ago

This should be fixed in 1.5.3

QuinnStephens commented 10 months ago

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

ValorZard commented 4 months ago

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