Hello,
In my game when I restart the scene (assigned to R-Key) blender crashes completely.
I know what is causing this. This only happens in scenes, where I’m using the water shader
from
Any ideas how to prevent this?
Hello,
In my game when I restart the scene (assigned to R-Key) blender crashes completely.
I know what is causing this. This only happens in scenes, where I’m using the water shader
from
Any ideas how to prevent this?
It also happens to me.I guess it is connected to blender and how it interprets martinsh shader on scene restart. But you can use restart game/load new game/ actuator instead. It works just fine.
iirc it happened because the scripts use: if not hasattr(bge.logic, “myTexture”): bge.logic.myTexture = texture.Texture(own, 0, 0) and bge.logic was not freed correctly. So better to attach the texture to a gameobject: if “myTexture” not in own: own[“myTexture”] = texture.Texture(own, 0, 0)… I think
Ok, that restart game actuator is a good workaround eventhough it takes ages for the game to restart. But better than crashing completely, thanks.
Sorry youle, I only have basic programming knowledge and don’t know what to do with that information…