Problem importing package on Windows

4 views
Skip to first unread message

Matt Schoen

unread,
Jul 22, 2013, 12:33:50 AM7/22/13
to brassmo...@googlegroups.com
Hey guys, 

Just to let you know, I get an error when importing the package on windows:

Assets/BrassMonkey/Demo Assets/dpadTest.js(25,45): BCE0019: 'GetDisplayObject' is not a member of 'Object'. 

Deleting the file resolves the issue, but this is obviously not ideal ;)

Andy Shaules

unread,
Jul 22, 2013, 12:39:29 AM7/22/13
to brassmo...@googlegroups.com
Thanks for the heads up!

Andy
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Brass Monkey SDK" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to brassmonkey-s...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Matt Schoen

unread,
Aug 12, 2013, 1:40:09 PM8/12/13
to brassmo...@googlegroups.com
A little further information: It seems that this only happens when the editor is in Android mode (not sure about iOS or other platforms).  It seems to work just fine in Standalone. Granted, using BM kind of implies that we're not making a mobile game, but in this case, we want to support both (make that everything!)

Chris Allen

unread,
Aug 12, 2013, 1:50:49 PM8/12/13
to brassmo...@googlegroups.com
Getting Brass Monkey to run as a host on iOS and Android is a priority this week. We know there's at least one threading bug on iOS at the moment that causes it not to work correctly. We will be addressing that and will keep you updated on that progress.

Thanks as always for all the help and feedback as you are going through implementing in your game Matt. You rock! 

-Chris

Zach Kamsler

unread,
Aug 12, 2013, 2:02:14 PM8/12/13
to brassmo...@googlegroups.com
This specific error seems to be a result of the lack of type annotations on the parameter of the UpdateLayout functions in the dpadTest.js. If it is added (becoming UpdateLayout(layout : BMControlLayout) ), it compiles properly in Android. I am not entirely why this only occurs on Android. I imagine that other platforms perform more sophisticated type inference or do some sort of runtime lookup. I largely try to avoid the use of pseudo-javascript in Unity for these sorts of reasons.

I will make sure the fix is in future releases of the sdk.

-Zach
brass monkey logo.png
twitter icon.png
Reply all
Reply to author
Forward
0 new messages