Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Paul Gene Thompson
    @PaulGene
    i cant do it ... I CANT DO IT ... blind panic
    codeservice
    @codeservice
    Try recreate stage after advertising. In nme I saw this trick for video. Dont remember this method name in objective c. Search by word “recreate”
    codeservice
    @codeservice
    Found it NMEStage::recreateNmeView() you need to do something similar. I think advertising breaking ogl context and attempt to restore it maybe not successful. Only way is to recreate whole stage like it works in nme for video component
    Paul Gene Thompson
    @PaulGene
    i dont know if legacy has that, and even if i did id still have no idea how to call it from haxe
    codeservice
    @codeservice
    Look for popup keyboard sample in objective c, this called from haxe and has simple code srructure, easy to find
    Paul Gene Thompson
    @PaulGene
    yeah thats exactly what ive been trying to trace to copy it
    but i cant even work out how you call that from haxe in the first place
    codeservice
    @codeservice
    i dont remember if legacy has video in objective c mm code, if it there mast be some kind of recreatete method
    Paul Gene Thompson
    @PaulGene
    I thought it would be something like openfl.display.Stage.PopupKeyboard();
    codeservice
    @codeservice
    video can break context and restoring stage method required
    Paul Gene Thompson
    @PaulGene
    but nope
    codeservice
    @codeservice
    yep drill down, search everywhere in objective c word “popup”
    you can understand how this called from haxe
    by reverse engeniring existing code :)
    Paul Gene Thompson
    @PaulGene
    this should be easy :)
    over 48 hours later...
    <---- idiot
    Paul Gene Thompson
    @PaulGene
    :(
    Hugh Sanderson
    @hughsando
    You should be about to call an objC file "the long way" by putting a c (callable) function at the bottom of the file, and having a single-instance pointer for the class stored in some static variable (should be ok for these classes). The c function can then call the objc member function using the static pointer. You can then call this c function by forward declaring it.

    haxe@:headerCode("void lime_view_recreate();")
    class ViewReset
    {
    @:native("lime_view_recreate")
    extern public static function recreate() : Void;
    }

    class Test
    {
    public static function main()
    {
    ViewReset.recreate();
    }
    }

    This gives "1 unresolved externals" - but this is so you can implement the lime_view_recreate somehow
    You might be able to do it more directly using objC++ ".mm" output files, but I'm not exactly show how to do this with lime
    Paul Gene Thompson
    @PaulGene
    hugh!
    unfortunately this is when you say things i don't understand
    this is way above my head :(
    Hugh Sanderson
    @hughsando
    Yes that looks exactly like what I was talking about. I'm not sure of the actual functions you need to call.
    So you can make the extern to "nme_app_set_active" and call it where you need to from the haxe code.
    Paul Gene Thompson
    @PaulGene
    Got it working
    And just had the iOS feature confirmed!
    codeservice
    @codeservice
    Cool! So how you restore context? Recreate view?
    Hugh Sanderson
    @hughsando
    :thumbsup:
    Thomas Uster
    @thomasuster
    @PaulGene Grats on the feature!
    Paul Gene Thompson
    @PaulGene
    Thanks guys
    After all that, the games still freezing. Too late to do anything about it now.
    The sooner i can get it working in NME the better
    Thomas Uster
    @thomasuster
    Word
    Thomas Uster
    @thomasuster
    Request for review haxenme/nme#656 [android] Make gradle the default android build tool #656
    Paul Gene Thompson
    @PaulGene
    Looks good, do it !
    Paul Gene Thompson
    @PaulGene
    Renegade Racing update
    Top 10 in about 40 countries, 1.8 million installs
    about to get another feature on iOS
    So everything looking great
    BUT
    its monetising like crap :(
    Which kinda makes all that worthless
    Its been a strange week
    Hugh Sanderson
    @hughsando
    They are great numbers - any better on the monetizing front?
    Paul Gene Thompson
    @PaulGene
    Well, It all depends where it levels off when the features end i guess
    its currently sitting at about $1k a day, id be more than happy if it stayed there