I can’t seem to understand why is my game crashing?
It seems there is a problem with the objects on the second layer in scene “Scene” because if I delete them (they are my actors) the game plays…withou actors of course.
When i leave the objects there, just as i press P, blender would crash
Homer, Selma, Patty, Monty Burns, Ned Flanders (mesh Cone.015 - Cone.018) all these objects has a broken shape key.
I didn’t found any way to remove the broken shape key.
You only can export, delete and reimport the objects.
It seems the problem from my view is that when I decided to start using them today, I find that they work at first when the game is playing before crashing eventually. But what happens after I save and open the file again is that now the object data is corrupted and the game engine crashes on startup.
I’m not sure how long this bug has existed or what commit introduced it, but right now I would say that shape keys are completely unusable in the game engine in the majority of cases.
Check the GE-bug tracker at projects.blender.org, some of the newer ones concern issues related to shape keys.
For one thing, I was hoping shape keys would work in an experiment I was doing to enhance the Endless mode in my marble game where objects would have shape keys and they would be created in a random position between two of the keys to get a bunch of different variations out of one piece (the random variation would’ve been done using the action actuator with a randomly set property). I was also hoping that I would be able to use reinstancePhysicsMesh() to make it usable in gameplay, but I can’t test if it would work with the shape keys crashes.
I have the code that I need to do this in place, but creating objects with shape keys in them results in the crashy behavior I mentioned above and I think is also mentioned in the tracker.
So would we only need to delete the objects with the shape keys to take care of it (as that stopped any crashing problems before) or does the fix only work in a file that hasn’t use shape keys yet?
The fix prevents the shapekeys from getting corrupted in the first place. So, any file that has already been broken will need to be fixed in some way or another.