Closed eyecreate closed 11 years ago
Remove 'assets/font/04B_03__.ttf.hash' every time after you compiled to html5.
It should solve your problem (but Matt should really fix this bug)
I haven't been able to figure out why the hash file get's created every time. Is it just due to the fact that the build fails?
Also, this code has worked with Jeash for several months and didn't break until nme decided to included it. I'll have to dig around and see if I can find the bug.
HTML5 should now compile with NME 3.3.3 but there is still an issue with the hash file. I noticed it is part of NME's command line compiler but the file is never cleaned up.
NME seems to have fixed this issue when compiling. I'm going to close this issue.
When trying to output the haxepunk template to html5, it fails first with this error: Called from ? line 1 Called from be/haxer/hxswfml/Main.hx line 242 Called from be/haxer/hxswfml/FontWriter.hx line 164 Called from format/ttf/Reader.hx line 27 Called from format/ttf/Reader.hx line 89 Called from C:\Motion-Twin\haxe/std/haxe/io/Input.hx line 237 Called from C:\Motion-Twin\haxe/std/haxe/io/BytesInput.hx line 61 Uncaught exception - Eof
and when you remove font assets from the nmml, it errors with this: haxelib/HaxePunk/1,6,5/com/haxepunk/debug/Console.hx:361: characters 2-63 : Invalid arguments haxelib/HaxePunk/1,6,5/com/haxepunk/debug/Console.hx:361: characters 2-63 : Function 'draw' requires arguments : source, ?matrix, ?colorTransform, ?blendMode, ?clipRect, ?smoothing
It's really important to me to have a working html5 exporter.