Getting To 99% Loading And Crashing

Discussion in 'Technical Discussion' started by eyal, Nov 15, 2016.

  1. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    I did everything that I could.
    I have optimised the scenes, deleted unused objects, atlases - everything and this is what I get in xcode -
    Terminated due to memory issue

    The strange thing that it is based on another game that I already have. Different artwork.
    The other game is much more complicated. more artwork.
    The only difference is that in this one I have 10 worlds and in the first game I has 1.
    What to do ?
     
  2. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    This is an atlass issue. How many of them have you? Search the forum how to optimize them.
     
    eyal and playsgames6666 like this.
  3. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Only thing i can think of, is atlas issue as Christoph has said,
    One thing it could be is if one old image has been deleted from left panel, but has not been deleted in the scenes first, then the game is still looking for that one image which is not in the atlases and will cause it to crash.
    Not 100% sure, but i have done that before.
     
  4. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    How do you delete a specific image from the Atlas ?
     
  5. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    I have in the original game 31 Atlases - Works amazing on every machine
    The new game have the same amount of Atlases. Same artwork with the an addition of actions. I removed the actions. didn't change a thing.
    Both games load the atlases at the same place (41%) but one loads and one says that there is a memory issue - same headset

    any clue ?
     
  6. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    it has to be something with how you changed the images. Not 100% sure.
    If it worked fine before, now not, and all you have done is changed graphics, then there has to be something with that.
     
  7. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    My god 31 atlases is a lot.
     
    eyal and Christoph like this.
  8. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    I doubt that a game with 31 atlases loads on all devices.
     
    eyal likes this.
  9. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    you can doubt :)
    Bottom line on my device - one loads one crashes - same code
     
  10. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    a lot of artwork. any way I can control the number of atlases ?
     
  11. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    only way is to make sure your images are small in size.
     
  12. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    but again - SAME CODE, SAME GAME, SAME ART - works great
    The only thing I have added are coins in the actions and coins in the objects.
    So I was thinking that maybe this is the issue - I deleted them all - nothing
     
  13. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    I get what your saying, but it must be something to do with the changing of graphics.
    Are you just dropping in the graphics over the top of the old ones, or are you clicking the x in the image placeholder and then dropping them in.
    Best thing i read somewhere, is to delete images from the right panel place holder then optimise atlases, then drop in the new images.
    See how that goes.
     
  14. playsgames6666

    playsgames6666 Miniboss Boxer

    Joined:
    Nov 13, 2015
    Messages:
    1,168
    Likes Received:
    745
    Also once i had this problem, i deleted a object from the left panel but i missed deleting the object from one scene, i didn't notice it there. my game kept crashing on 99%, then someone pointed out my problem, after searching through 75 scenes i found one little yellow placeholder on a scene. removed that and then it worked LOL
     
    eyal likes this.
  15. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    Thank you but nothing there
     
  16. eyal

    eyal Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    642
    Likes Received:
    121
    There is no reason to delete anything - the only thing we did is adding coins as actions. but no matter what I do - even deleting them out of the game and our of the atlases - nothing helps
     

Share This Page