HaxePunk / tiled

Tiled TMX import for HaxePunk
50 stars 18 forks source link

Type not found : com.haxepunk.tmx.TmxEntity #34

Closed DaVince closed 9 years ago

DaVince commented 9 years ago

I realize that this is not a forum and I'm probably doing something dumb, but I couldn't figure out why I can't use the library, and Google isn't much help. Whenever I include the library and then do lime test <target>, lime always complains with:

Type not found : com.haxepunk.tmx.TmxEntity

(Note: I'm currently compiling to the html5 target, but it also complained about flash and neko.)

haxelib list properly lists HaxePunkTmx: [1.0.3] and the files seem to be properly located in /usr/lib/haxe/lib/HaxePunkTmx/1,0,3/com/haxepunk/tmx/, so I have no clue what's up...

ibilon commented 9 years ago

By include did you mean you added <haxelib name="HaxePunkTmx" /> to your project.xml?

If so then it should work, if haxepunk and openfl are found (no other not found errors?) then it's unlikely to be coming from the tools.

DaVince commented 9 years ago

I didn't, and now it does compile and run. Thanks for helping out someone who's still terribly new at this!

ibilon commented 9 years ago

Don't worry ;) I added this to the README here.

DaVince commented 9 years ago

Thanks! I also found that you also need to add

<haxelib name="format" />

when exporting to the html5 target, but lime will properly warn you about this so I dunno if that needs to be added to the instructions too.

ibilon commented 9 years ago

I added an include.xml that will automatically add format when using the html5 target.