Buildbox 3.0.0.3044 Rc2

Discussion in 'Official Announcements' started by NikRudenko, Mar 22, 2019.

Thread Status:
Not open for further replies.
  1. AppTout

    AppTout Boxer

    Joined:
    Jan 22, 2016
    Messages:
    39
    Likes Received:
    36
    @particles
    @weboha
    I was dealing with this as well and fixed it myself. On export, in AppDelegate.m, add the following:
    Code:
    //at the top of the file
    #include "PTPSettingsController.h"
    
    //include in WillTerminate like this
    - (void)applicationWillTerminate:(UIApplication *)application {
        PTPSettingsController obj;
        obj.save();
    }
    
    //end
    
    You can also add to the two lines of code above to on screenOnEnter so every time a specific UI loads it saves.
     
    steve, Ninbox, itzonator and 2 others like this.
  2. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    @AppTout Thankyou. It's one of the most wanted issues that I need to fix it.

    Yes. I am looking to save the Settings at method screenOnEnter. I don't know this method is available.

    I have just added this on GameOver UI, able to continue from my last level after a crash.
    Code:
    
    - (void)screenOnEnter:(const char *)name {
    NSString* n = [NSString stringWithUTF8String:name];
    if ([n isEqualToString:@"GameOverUI"]) {
            PTPSettingsController obj;
            obj.save();
      }
    }
    
     
    Last edited: May 5, 2019
    Ninbox and AppTout like this.
  3. AppTout

    AppTout Boxer

    Joined:
    Jan 22, 2016
    Messages:
    39
    Likes Received:
    36
    Your code will need this line below for the screenOnEnter for that name to work:

    Code:
    NSString* n = [NSString stringWithUTF8String:name];
     
    particles likes this.
  4. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Yes. It's already there. I forgot to mention, will update it.
     
    AppTout likes this.
  5. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    @particles @AppTout so this function you have in here with screenOnEnter saves game data so player does not have to play from the beginning even if the game crash? Does this solves the BB3 problem with lost data when player comes back to the game?
     
  6. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Yes. I am using Settings to save Levels. I think same is applicable for points and coins. Just add and see.
     
    Tom King and itzonator like this.
  7. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    @particles and @AppTout

    Your code below in AppDelegate.mm does not work if I quit the game willingly and start the game from the level I left off.
    So I double tap Home button on iPhone device and terminate the game by scrolling up. When start back the game, level is not saved. So I start playing at the beginning. Am I missing something? Before quitting my game on iPhone device, I was on a higher level. When start the game, it's playing from the beginning. Levels not saved.

    Code:
    - (void)screenOnEnter:(const char*) name{
    
        NSString* n = [NSString stringWithUTF8String:name];
        if ([n isEqualToString:@"GameOverUI"]) {
            PTPSettingsController obj;
            obj.save();
        }
    
    }
    
    - (void)applicationWillTerminate:(UIApplication *)application {
    
        PTPSettingsController obj;
    
        obj.save();
    
    }
    
    
     
  8. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    Simply try with below code
    Code:
    - (void)screenOnEnter:(const char*) name{           
       PTPSettingsController obj;      
      obj.save();  
      }
    
     
    steve likes this.
  9. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    Nope, does not save with this either. Probably depends on the games. Not sure. Haven't tested with crash if saves levels, since crashes do not occur often with RC2 :p

    For some reason does not save data for me. Probably had to add something into the game from Buildbox in order to do so?

    Thank you @particles

     
    particles likes this.
  10. itzonator

    itzonator Serious Boxer

    Joined:
    Dec 18, 2017
    Messages:
    595
    Likes Received:
    230
    is it just me, or BB3 RC 2 does not have proper Android exports for Android Studio? Game crash on app load? I experienced this with multiple projects, not just 1. But with BB3 RC1, I had and still have Android exports without issues.

    So there must be something off with BB3 RC2 Android exports.
     
    landofgreendev likes this.
  11. landofgreendev

    landofgreendev Boxer

    Joined:
    Nov 9, 2018
    Messages:
    85
    Likes Received:
    18
    I've been having the same issue!
     
  12. SpoonCrysis

    SpoonCrysis Avid Boxer

    Joined:
    Aug 10, 2018
    Messages:
    175
    Likes Received:
    26
    Anyone downloaded the final release yet of Buildbox 3? doesn't seem to be an update to buildbox 2 its appears to be stand alone still.
     
  13. jacksimonton

    jacksimonton Boxer

    Joined:
    May 28, 2019
    Messages:
    16
    Likes Received:
    3
    Hey Nik, nice update I think it should be successful what you feel about the BB3 version.
    Thanks
     
  14. jacksimonton

    jacksimonton Boxer

    Joined:
    May 28, 2019
    Messages:
    16
    Likes Received:
    3
    No don't download yet but still waiting for it.
     
  15. jacksimonton

    jacksimonton Boxer

    Joined:
    May 28, 2019
    Messages:
    16
    Likes Received:
    3
    Yes, you are right. I add it and see.
     
Thread Status:
Not open for further replies.

Share This Page