I 've a problem with the edit object actuator.
I want to create a tile map game (like starcraft %| ), and I think the best (and fastest ) developpement solution consists in creating all model units in an inactive layer, and calling instances of them as much as needed during the game.
First, I did a simple test to see how it works. A script, linked to an empty object with an edit object actuator, is supposed to perform generations of some objects from an inactive layer.
I used the setObject method in my script. The problem is when I quit after object is created, Blender 2.34 crashes with an “abnormal program termination program”.
The console sys Exception exceptions.TypeError: ‘argument 1 must be KX_GameObject, not str’ in’garbage collection’ ignored
Here is my (simple %| ) code :
toto = GameLogic.getCUrrentController().getActuators()
#the edit object actuator
toto.setObject(‘Cylinder’)#a stuff in another layer
What’s going wrong?? ?