hypersurge / awe6

awe6, the inverted game framework (Haxe)
http://awe6.org
MIT License
79 stars 11 forks source link

The default project template on flashdevelop doesnt compiles #24

Closed rishavs closed 8 years ago

rishavs commented 8 years ago

I created a new awe6 project in flashdevelop using "awe6 openFl" profile.

Compilation fails for it. The following error is received:

Building New Project Running Pre-Build Command Line... cmd: "C:\HaxeToolkit\haxe/haxelib" run lime build "New Project.xml" neko -debug -Dfdb C:/HaxeToolkit/haxe/lib/awe6/2,5,732/awe6/extras/gui/Text.hx:155: characters 3-36 : Float should be Null C:/HaxeToolkit/haxe/lib/awe6/2,5,732/awe6/extras/gui/Text.hx:155: characters 3-36 : Float should be Int Build halted with errors. Done(1)

hypersurge commented 8 years ago

hi, yep, this is a duplicate of issue #23 with a breaking change coming upstream from OpenFL.

To immediately resolve, patch your copy of awe6.extras.gui.Text line 155 to:

_textFormat.size = Math.round( textStyle.size );

rishavs commented 8 years ago

Thanks. i didnt see any open bug for this and so opened a new one.

hypersurge commented 8 years ago

Totally, from here on we won't close an issue until the fix has been released to Haxelib. I will close this one and reopen #23 as that contains more information. Thanks.