my game is crashing - was Start Button?

yasoofxyasoofx Member Posts: 332
edited October 2013 in Working with GS (Mac)
So i am testing my game on adhoc and i press on Run and it just waits for 2 secs then takes me back to ipod home screen , Why?

Answers

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    @yasoofx

    What are your Rules in this Run button?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Your game is crashing because of something you've coded. There's not a single answer for why this might be happening, which is why @gyroscope asked for a screenshot or text of your rules.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • yasoofxyasoofx Member Posts: 332
    edited October 2013

    @yasoofx

    What are your Rules in this Run button?
    its simple, Just if touch is pressed change scene to Run Scene
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    edited October 2013

    @yasoofx

    What are your Rules in this Run button?
    is simple, Just if touch is pressed change scene to Run Scene
    so @yasoofx have you maybe thought its not the start button? what if its the scene after the start button the so called "run scene".
    what i suggest you do is create a blank scene, and when touch is pressed on your start button change scene to the "blank scene", then you can find out whether its the start button (which it most likely isnt) or its the scene that you,re transferring to

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598

    Another thing to try: sometimes the linkages are broken/corrupted especially if you've been making then deleting then making scenes again....

    So just delete your Rule and put in a fresh one, including the Change Scene behaviour, selecting the scene you want again.

    Also double-check you haven't two scenes with the same name...

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • yasoofxyasoofx Member Posts: 332

    Another thing to try: sometimes the linkages are broken/corrupted especially if you've been making then deleting then making scenes again....

    So just delete your Rule and put in a fresh one, including the Change Scene behaviour, selecting the scene you want again.

    Also double-check you haven't two scenes with the same name...
    Tried all that , still doesnt work
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078

    Another thing to try: sometimes the linkages are broken/corrupted especially if you've been making then deleting then making scenes again....

    So just delete your Rule and put in a fresh one, including the Change Scene behaviour, selecting the scene you want again.

    Also double-check you haven't two scenes with the same name...
    Tried all that , still doesnt work
    my option is still in the line haha try giving my suggestion ago, im sure it might sort out your problem.

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    OK, then I'm thinking something else is going on....

    Btw, I could have sworn you originally wrote that the game was crashing.... I wonder if you've edited your post with this major change to the question? [-X ;-)

    So now I'm thinking there's attribute(s)/Rule in this scene you're trying to get to after pressing the Run button, that's bringing you back.

    Anyhow, if you could confirm for a bit more clarification as to the situation now: You have a Home screen, which I guess has the Run button on, yes? You press this, which takes you to another scene, which you actually see for 2 seconds, but then it goes back to the home screen again; is all that correct?

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • yasoofxyasoofx Member Posts: 332

    OK, then I'm thinking something else is going on....

    Btw, I could have sworn you originally wrote that the game was crashing.... I wonder if you've edited your post with this major change to the question? [-X ;-)

    So now I'm thinking there's attribute(s)/Rule in this scene you're trying to get to after pressing the Run button, that's bringing you back.

    Anyhow, if you could confirm for a bit more clarification as to the situation now: You have a Home screen, which I guess has the Run button on, yes? You press this, which takes you to another scene, which you actually see for 2 seconds, but then it goes back to the home screen again; is all that correct?
    so i press the run button it closes the game. FULL close
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited October 2013

    My mistake, sorry; so it does crash then; OK got it. :-)

    Right then, some more questions first, to see if we can solve this for you: what version GSC are you using? What version iOS is on the iPod?

    If you do the following simple test, after pressing the new button, does it still crash?

    Make another fresh scene, call it Test Scene. Throw a white actor on it as a marker if you want.

    Now make a fresh actor as your Run button on your Menu scene. Put in its Rules:

    When touch is pressed
    Change Scene Test Scene

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    I edited the title.

    you have a bad rule in the scene you are switching to. I'm guessing you deleted an attribute that is being referenced in a rule. It works in the preview but fails on the device. You'll have to hunt that rule down.

    start with doing what gyroscope said, make a test scene and switch to that.
    then go through and remove actors one at a time until you find the bad actor, then go through rule by rule.

    you can also just open every single rule / otherwise statement until you find the bad attribute.
  • yasoofxyasoofx Member Posts: 332

    My mistake, sorry; so it does crash then; OK got it. :-)

    Right then, some more questions first, to see if we can solve this for you: what version GSC are you using? What version iOS is on the iPod?

    If you do the following simple test, after pressing the new button, does it still crash?

    Make another fresh scene, call it Test Scene. Throw a white actor on it as a marker if you want.

    Now make a fresh actor as your Run button on your Menu scene. Put in its Rules:

    When touch is pressed
    Change Scene Test Scene
    ok first im using 10.4a

    second: IOS:7.0.2

    Third: iv done everything u said but still seems the scene run wont open, unless if in the viewer down i click on the scene
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    My mistake, sorry; so it does crash then; OK got it. :-)

    Right then, some more questions first, to see if we can solve this for you: what version GSC are you using? What version iOS is on the iPod?

    If you do the following simple test, after pressing the new button, does it still crash?

    Make another fresh scene, call it Test Scene. Throw a white actor on it as a marker if you want.

    Now make a fresh actor as your Run button on your Menu scene. Put in its Rules:

    When touch is pressed
    Change Scene Test Scene
    ok first im using 10.4a

    second: IOS:7.0.2

    Third: iv done everything u said but still seems the scene run wont open, unless if in the viewer down i click on the scene
    you have a bad rule somewhere. i guarantee it
  • yasoofxyasoofx Member Posts: 332

    My mistake, sorry; so it does crash then; OK got it. :-)

    Right then, some more questions first, to see if we can solve this for you: what version GSC are you using? What version iOS is on the iPod?

    If you do the following simple test, after pressing the new button, does it still crash?

    Make another fresh scene, call it Test Scene. Throw a white actor on it as a marker if you want.

    Now make a fresh actor as your Run button on your Menu scene. Put in its Rules:

    When touch is pressed
    Change Scene Test Scene
    ok first im using 10.4a

    second: IOS:7.0.2

    Third: iv done everything u said but still seems the scene run wont open, unless if in the viewer down i click on the scene
    you have a bad rule somewhere. i guarantee it
    ill check
  • yasoofxyasoofx Member Posts: 332
    i found one actor that was doing all this. thanks!
Sign In or Register to comment.