I’m trying to come to terms with the changes in python in BGE 2.49.
I have reviewed and corrected all the code I have written.
All? Not exactly all.
The only piece of code that gives an error in the console is the following:
I think it’s practically the same either way, for one of my scripts I got both types of deprecation messages and doing it just one way makes it disappear.
I think the other one is there because you’ll have to do things like.
ob.position=(ob['locX'], ob['locY'], ob['locZ'])
In other words you do the same thing to all properties that aren’t reserved properties I think.
pos = camera.getScreenPosition(cube)
Has the same problem It must be a bug
unless I’m just not getting it. But right now I just check ignore depreciation warnings.
Would be great if someone could confirm if we are using a false syntax or if this is a bug…
Strange to me is that this waring did not come up in 2.49RC3 but now in the Final version.
Here a small .blend that worked in 2.49RC3 without error and now returns errors in 2.49 Final.
It has two scenes one that sends Messages and the other one that receives it.
The logic is in the Camera of each scene.
make sure your in scene receive when you start.
use 1-Key,2-key and 3-Key to send messages…