NME 3.4.3 and Waxe: ManagedStage creation problem

47 views
Skip to first unread message

Cambiata

unread,
Nov 25, 2012, 3:16:14 AM11/25/12
to haxe...@googlegroups.com
Hi Hugh, Mockey and others!

Just upgraded NME to 3.4.3, and after this I get an error when compiling Waxe solutions with NME:

...
Called from neash/display/ManagedStage.hx line 43
Uncaught exception - Invalid call
Build halted with errors.


This seems to be caused by a change in neash/display/ManageStage constructor:

NME 3.4.2 - neash/display/ManageStage:
    public function new(inWidth:Int, inHeight:Int)
   
{    
       
super(nme_managed_stage_create(inWidth, inHeight), inWidth, inHeight);    
   
}

NME 3.4.3 - neash/display/ManageStage:
    public function new(inWidth:Int, inHeight:Int, inFlags:Int = 0)
   
{    
       
super(nme_managed_stage_create(inWidth, inHeight, inFlags), inWidth, inHeight);    
   
}

Just hacking so that 3.4.3 calls the nme_managed_stage_create without the inFlags solves my problems for now.

Is Waxe somehow superimposing the nme_managed_stage_create call, so that it needs to be be updated on the Waxe side?

/ Jonas


   
 

Andreas Mokros

unread,
Nov 25, 2012, 4:34:08 AM11/25/12
to haxe...@googlegroups.com
Hi.

On Sun, 25 Nov 2012 00:16:14 -0800 (PST)
Cambiata <jona...@gmail.com> wrote:
> Is Waxe somehow superimposing the nme_managed_stage_create call, so
> that it needs to be be updated on the Waxe side?

Well, the added inFlags should be added to NMEStage, but this has to be
fixed in nme first:
in project/common/ExternalInterface.cpp, line 1301:
DEFINE_PRIM(nme_managed_stage_create,3);

in neash/display/ManagedStage.hx, line 110:
private static var nme_managed_stage_create =
Loader.load("nme_managed_stage_create", 3);

The change in the cpp file needs a recompile of the ndll of course.
BTW: If you manage to compile the nme.ndll, I can send you my sound
patch...:-)

--
Mockey

Cambiata

unread,
Nov 25, 2012, 5:06:19 AM11/25/12
to haxe...@googlegroups.com
Thanks Mockey!

I've filed an issue on https://haxenme.atlassian.net/


BTW: If you manage to compile the nme.ndll, I can send you my sound
patch...:-)
 
Fighting hard to resist that temptation... :-)

Andreas Mokros

unread,
Nov 25, 2012, 8:05:32 AM11/25/12
to haxe...@googlegroups.com
Hi.

On Sun, 25 Nov 2012 02:06:19 -0800 (PST)
Cambiata <jona...@gmail.com> wrote:
> I've filed an issue on https://haxenme.atlassian.net/

Ah, this is the official nme bugtracker? Good to know.

> >BTW: If you manage to compile the nme.ndll
> Fighting hard to resist that temptation... :-)

Well, if you manage to compile waxe, this shouldn't be so difficult.
Makes you more flexible...

--
Mockey
Reply all
Reply to author
Forward
0 new messages