Ton of new bugs with Gamesalad's behaviors, layers, music, etc.
TheMenOfHonor
Member Posts: 147
Afternoon, everyone.
Ever since I updated to 0.9.6 I've had a massive amount of game-breaking bugs appearing during development and testing. I'd really appreciate someone helping me with some of these:
- In certain scenes, behaviors don't work. Animations don't appear, spawners don't work, and movement behaviors simply stop. I put the exact same actors in other scenes and they work as directed with no problems. I've restarted gamesalad and my Mac many times without success in remedying these issues.
- When I send an image to the back, it doesn't go to the back layer. When I send a certain actor to the front, it stays in the back.
- When testing on the iPhone or iPod Touch, music stops after moving out of the menu. Any tests on the Mac or viewer the music continues as normal. Only when it is published does it not start.
To sum it all up . . . it's gamebreaking, all of it. I'm rather desperate for help, because if these can't be fixed, I can't continue development. I would really appreciate some insight into why the actors are now simply ignoring behaviors. I've worked with gamesalad plenty before, and I've never seen ANY of these problems before . . .
Ever since I updated to 0.9.6 I've had a massive amount of game-breaking bugs appearing during development and testing. I'd really appreciate someone helping me with some of these:
- In certain scenes, behaviors don't work. Animations don't appear, spawners don't work, and movement behaviors simply stop. I put the exact same actors in other scenes and they work as directed with no problems. I've restarted gamesalad and my Mac many times without success in remedying these issues.
- When I send an image to the back, it doesn't go to the back layer. When I send a certain actor to the front, it stays in the back.
- When testing on the iPhone or iPod Touch, music stops after moving out of the menu. Any tests on the Mac or viewer the music continues as normal. Only when it is published does it not start.
To sum it all up . . . it's gamebreaking, all of it. I'm rather desperate for help, because if these can't be fixed, I can't continue development. I would really appreciate some insight into why the actors are now simply ignoring behaviors. I've worked with gamesalad plenty before, and I've never seen ANY of these problems before . . .
Comments
Use the layers window if It helps.
Also it sounds like your actors work in new scenes, could you recreate your scene in a new one easily enough? Keep checking it works as you build it as it might be a rogue actor causing the problems.
I've haven't had much luck working with the scene problem, though I've got it "fixed" for now. I deleted every actor from the scene where behaviors no longer worked, and I put just a few animating actors in. Even those failed, so I deleted the now-empty scene. This scene had been working perfectly before today. Nothing I can remember had been added.
I created an entirely new scene and placed every single actor back in, and it's currently working fine. I'm not quite sure what on earth caused the problems in some scenes (the problems appeared to have arose without cause), but at least for now, behaviors have returned to normal. I still wish to avoid this same situation arising in the future, when the project is further along in development, so I'll keep looking into it . . .
Thanks to everyone who's offered advice so far!
It's very odd, but I found another thing. If I put the other actors down before another, they work . . . even if I put the actor in later. But vice versa, and the whole thing implodes. Just . . . odd, really, but at least I can continue this way.
Does anyone have a fix for my actors not spawning anymore? I'd hate to 'fix' it since nothing is wrong with my code, but I don't want to wait for another update either.
Thanks very much for any help.
I submitted a bug report, and got an email sent asking for my project file. I sent it, but no reply just yet. Though it's to be expected--some of the bugs were pretty bad. I'd imagine a new update is coming very soon.
http://gamesalad.com/forums/topic.php?id=28572
I may try re-creating one of my scenes from scratch to see if the problem goes away. Thanks for bringing this up and keep us abreast of your progress working around.
The culprit was a problem in my code. I've found two instances where this happened.
1) I used random(100) instead of random(1,100) in a calculation. This caused several later behaviors to not always fire. Once I fixed it, the problem went away
2) I got pissed because something I should have been able to copy-and-paste wouldn't work. I could copy the code into a text editor, and copy it back, but just trying to copy from one place in GameSalad to another didn't work. I used to text editor as an intermediary and copied the text anyway. The problem is that the pasted text had game variables names in it, but because it was pasted from an outside source, GameSalad wasn't recognizing it as the proper variable.
To clarify, if you create an expression by choosing Game.myVariable from the chooser box, it creates a variable object that work. If, however, you type exactly the same text "Game.myVariable" into the box, it will *not* work. There is an additional, somewhat hidden linking going on inside somewhere. I believe you can see the blue box around the correct variable, but not around the incorrectly pasted one. At any rate, once I found this and re-created it by painstakingly re-building the entire expression from scratch by choosing each variable from the box, it fixed the problem.
These kind of bugs aren't flagged in any way by GameSalad, but they cause you're actors behaviors to not work correctly. You can usually narrow down where in the actor the problem is by seeing which behaviors don't fire when an actor is present. The bug is usually right before those behaviors.