NOTICE: This channel is no longer actively logged.
[00:13:10] *** filt3rek has joined #nme[00:13:33] *** filt3rek is now known as Guest54060[00:15:59] *** filt3rek|2 has quit IRC[01:39:31] *** lordkryss has quit IRC[02:00:18] *** mourlamstudios has quit IRC[02:14:42] *** Jan_Flanders has quit IRC[02:15:17] *** Triplefox has quit IRC[02:16:10] *** Triplefox has joined #nme[02:16:41] *** Jan_Flanders has joined #nme[02:18:41] *** swax has joined #nme[02:21:57] <swax> does anyone know of a good introduction/overview of the flash api?[02:36:00] <Jan_Flanders> how about the api itself?[02:36:18] <Jan_Flanders> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html[02:37:19] <Jan_Flanders> Almost every class/method/variable in there comes with an example swax[02:38:33] <Jan_Flanders> http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3e.html[02:38:42] <Jan_Flanders> http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3c.html[02:38:51] <Jan_Flanders> http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3d.html[03:09:35] *** Guest54060 has quit IRC[04:25:45] *** mourlamstudios has joined #nme[04:27:56] *** mourlamstudios has quit IRC[04:38:58] *** [ProG4mr] has quit IRC[05:27:41] *** todd_ has joined #nme[05:29:20] <todd_> when compiling a simple haxepunk project with an embedded font with nme / html5 target -- it looks like the font gets listed twice in the nme installer/assets.hx --- so it fails to compile - does this sound like a familiar issue to anybody?[05:31:20] *** mourlamstudios has joined #nme[05:31:49] *** todd_ has left #nme[05:32:08] *** todd_ has joined #nme[05:39:01] <Jan_Flanders> todd_: I think someone recently said it was completely missing :s[05:39:18] <Jan_Flanders> Seems like they did a double good job on it now :)[05:39:29] <todd_> lol[05:40:02] <Jan_Flanders> But why does that make it fail to compile?[05:41:28] <todd_> bin/html5/web/haxe/nme/installer/Assets.hx:72: characters 8-27 : Duplicate constant in switch[05:41:29] <todd_> bin/html5/web/haxe/nme/installer/Assets.hx:58: characters 8-27 : Duplicate constant in switch[05:41:36] <todd_> public static function getFont (id:String):Font {[05:41:37] <todd_> switch (id) {[05:41:39] <todd_> case "font/04B_03__.ttf": var font = cast (new NME_font_04b_03___ttf (), Font); return font;[05:41:40] <todd_> case "font/04B_03__.ttf": var font = cast (new NME_font_5 (), Font); return font;[05:41:41] <todd_> }[05:41:42] <todd_> return null;[05:41:43] <todd_> }[05:41:55] <todd_> basically the font in my assets folder gets included twice[05:42:35] <Jan_Flanders> Hmm, and where does that font_5 come from? :s[05:42:48] <todd_> that's the mystery for me at the moment[05:43:10] <todd_> this is the code from line 72[05:43:31] <todd_> 58 is in getBytes[05:43:32] <todd_> case "font/04B_03__.ttf": return cast (ApplicationMain.urlLoaders.get ("font/04B_03__.ttf").data, ByteArray);[05:43:33] <todd_> case "font/04B_03__.ttf": return cast (ApplicationMain.urlLoaders.get ("font/04B_03__.ttf").data, ByteArray);[05:44:18] <todd_> bin/html5/web/haxe/ApplicationMain.hx: class NME_font_04b_03___ttf extends nme.text.Font { }[05:44:19] <todd_> bin/html5/web/haxe/ApplicationMain.hx: class NME_font_5 extends nme.text.Font { }[05:45:06] <Jan_Flanders> Beats me :s[05:45:38] <Jan_Flanders> I only wrote the ttf parser/converter, not the Assets class[05:46:32] <Jan_Flanders> Are you using NME 3.4.3 ?[05:46:52] <todd_> i'll dig deeper - i haven't dug into the code-gen stuff before -[05:46:53] <todd_> yes[05:46:56] <todd_> 3.4.3[05:47:19] <Jan_Flanders> I have. I found it quite hard to follow. Lots of stuff going on there[05:47:59] <Jan_Flanders> I'll do a quick test myself[05:53:02] <todd_> looks like a .hash version is being created when build html5 -- wonder if the enumeration of fonts is picking up both by accident[05:53:54] <Jan_Flanders> When I put 1 ttf in my assets folder, it seems to work just fine[05:56:31] <Jan_Flanders> All ok here, also with multiple ttf files[05:57:11] <todd_> interesting[05:57:19] <Jan_Flanders> Yes, the data in the ttf gets converted to lineTo, curveTo commands which are then executed/drawn onto the canvas[05:57:20] <todd_> you on mac ?[05:57:38] <Jan_Flanders> windows and linux[05:57:53] <Jan_Flanders> Only tried on windows now[05:58:38] <todd_> will try to narrow down a little more[05:58:59] <Jan_Flanders> How many fonts do you have in your assets folder?[05:59:10] <todd_> in the project - just one[06:01:29] <Jan_Flanders> http://www.haxer.be/guests/todd/nmml-jeash-font.zip[06:01:40] <Jan_Flanders> run from terminal: haxe build.hxml[06:06:25] <Jan_Flanders> todd_:[06:06:27] <todd_> heh - seems to work[06:06:37] <Jan_Flanders> so what's different in your project? :s[06:06:48] <todd_> scanning[06:06:52] <Jan_Flanders> ok :)[06:11:44] <todd_> maybe nmml assets in folders is the difference[06:12:13] <todd_> haxepunk generates assets/font and includes <assets path="assets/font" rename="font" type="font" include="*.ttf" />[06:12:25] <todd_> trying variations[06:13:02] <Jan_Flanders> yes, that sounds like it could be the reason[06:13:15] <Jan_Flanders> I have seen duplicates before[06:13:22] <Jan_Flanders> when renaming[06:14:25] <Jan_Flanders> I mean in combination with a sub folder like that[06:16:53] <todd_> it's interesting that if i move the ttf into the asset folder and use a wildcard to include it --- i see[06:16:54] <todd_> case "font/04B_03__.ttf": return cast (ApplicationMain.urlLoaders.get ("font/04B_03__.ttf").data, ByteArray);[06:16:54] <todd_> case "assets/04B_03__.ttf": return cast (ApplicationMain.urlLoaders.get ("assets/04B_03__.ttf").data, ByteArray);[06:16:58] <todd_> in the assets.hx[06:17:39] <todd_> so maybe the problem is that the asset loader is categorizing[06:18:04] <todd_> assets? and the problem is due to a name collision between the folder name and the asset type?[06:19:43] <todd_> if i modify <assets path="assets/font" rename="font" type="font" include="*.ttf" />[06:19:48] <Jan_Flanders> it does categorize[06:19:50] <todd_> to <assets path="assets/fonts" rename="fonts" type="font" include="*.ttf" />[06:20:00] <todd_> the problem also seems to be resolved[06:20:41] <Jan_Flanders> So it was just trying to be too smart?[06:21:03] <todd_> i think so -- probably a bug here[06:22:01] <Jan_Flanders> http://code.google.com/p/nekonme/source/browse/trunk/tools/command-line-old/spec.nmml#178[06:27:31] <Jan_Flanders> I can't reproduce :s[06:29:09] <todd_> i suspect it's something specific with haxepunk?[06:29:16] <todd_> i just found that the hxml has this[06:29:42] <Jan_Flanders> That's another way of embedding assets[06:29:50] <Jan_Flanders> using haxe.Resource class[06:30:10] <Jan_Flanders> entirely unrelated to NME[06:30:46] <todd_> oh - i thought that nmml just generated hxml eventually - and then compiled[06:31:37] <Jan_Flanders> It does[06:31:58] <Jan_Flanders> And you're right, for html5 it actually does use the haxe.Resource class apparently[06:32:25] <Jan_Flanders> You can check your bin folder[06:32:48] <Jan_Flanders> nmml-jeash-font\bin\html5\web\haxe\release.hxml[06:33:15] <Jan_Flanders> has: -resource C:\nmml-jeash-font\assets\fonts\chopin.ttf.hash@NME_fonts_chopin_ttf[06:33:54] <todd_> ah - so maybe this is the problem[06:34:46] <todd_> haxepunk generates it's boilerplate project with /Users/todd/projects/haxe/space/Tut01/assets/fonts/04B_03__.ttf and the haxepunk library also includes it from /usr/lib path[06:35:47] <Jan_Flanders> I see it only does that for the html5 target[06:36:00] <Jan_Flanders> using -resource, that is[06:36:48] <todd_> yup - if i just delete the ttf from my punk generated project - the ttf still exists in the emitted JS[06:37:53] <todd_> so this is just an unfortunate haxepunk issue that only shows up in html5 -- i really appreciate your help - especially since it wasn't NME's issue[06:38:12] <Jan_Flanders> :)[06:38:49] <todd_> g'nite[06:39:34] *** todd_ has quit IRC[07:01:45] *** Triplefox has quit IRC[07:16:10] *** Jan_Flanders has quit IRC[07:43:53] *** mourlamstudios has quit IRC[08:00:36] *** Triplefox has joined #nme[08:12:42] *** photex_ has quit IRC[08:13:04] *** photex has joined #nme[08:18:39] <photex> Hi folks, whats the most reliable way to use a text input? barring the ability to open a file dialog I just wanted to create a sort of model input box[08:18:59] <photex> so I could provide a path to a resource[09:47:48] *** Guest54060 has joined #nme[09:50:40] *** Guest54060 is now known as filt3rek[11:41:23] *** _Muffin_ has joined #nme[11:45:06] *** Robipo has joined #nme[12:05:50] *** Triplefox has quit IRC[12:56:52] *** _Muffin_ has quit IRC[13:06:49] *** _Muffin_ has joined #nme[13:10:26] *** _Muffin_ has quit IRC[13:49:12] *** lordkryss has joined #nme[14:28:18] *** Jan_Flanders has joined #nme[15:28:05] *** filt3rek has quit IRC[15:28:46] *** Caribou| has joined #nme[15:30:53] *** missilemike has joined #nme[16:47:51] *** mourlamstudios has joined #nme[16:54:21] *** filt3rek has joined #nme[16:54:34] *** Robipo has quit IRC[16:54:44] *** filt3rek is now known as Guest97902[17:00:58] *** Robipo has joined #nme[17:18:15] *** mourlamstudios has quit IRC[18:21:52] *** Caribou| has quit IRC[18:22:14] *** Caribou| has joined #nme[18:30:16] *** lordkryss has quit IRC[18:59:10] *** lordkryss has joined #nme[19:41:14] *** [ProG4mr] has joined #nme[20:38:52] *** Caribou| has quit IRC[20:39:16] *** Caribou| has joined #nme[20:48:04] *** mourlamstudios has joined #nme[20:52:14] *** lordkryss|2 has joined #nme[20:55:05] *** lordkryss has quit IRC[21:16:45] *** lordkryss|2 has quit IRC[21:17:13] *** lordkryss|2 has joined #nme[21:19:37] *** lordkryss has joined #nme[21:22:39] *** lordkryss|2 has joined #nme[21:25:47] *** lordkryss has quit IRC[22:37:55] *** Robipo has quit IRC[22:41:01] *** Caribou_ has joined #nme[22:43:55] *** Caribou| has quit IRC[22:45:05] *** mourlamstudios has quit IRC[22:55:04] *** mourlamstudios has joined #nme[22:55:43] *** lordkryss|2 has quit IRC[22:57:10] *** _Muffin_ has joined #nme[23:13:24] *** mourlamstudios has quit IRC[23:27:43] *** lordkryss|2 has joined #nme[23:35:54] *** mourlamstudios has joined #nme[23:56:13] *** mourlamstudios has quit IRC