Here is a list of python errors that I found in Blender 2.49 RC1.
In the attached blend file, each error has it’s own scene and it’s own python script.
###############
BL_ActionActuator:
variable: continue
Throws syntax error (continue a reserved python command?)
############
KX_RadarSensor
variable: distance
Always returns 0.0
deprecated method: getConeHeight()
returns correct value
############
KX_RadarSensor (2nd)
variable: angle
Returns distance instead of angle
##########
KX_NetworkMessageSensor
variable: subject
using subject to set the subject doesn’t work
deprecated method: setSubjectFilterText(subject)
works correctly
############
SCA_MouseSensor
Method: getButtonStatus(button)
button type: integer
KX_MOUSE_BUT_LEFT = ???
KX_MOUSE_BUT_MIDDLE = ???
KX_MOUSE_BUT_RIGHT = ???
Tried 0 - 10 for button
Always returns
ValueError: sensor.getButtonStatus(int): MouseSensor, invalid button specified!
#############
KX_SceneActuator
deprecated methods: getUseRestart() and setUseRestart()
No replacement for them
##############
KX_SoundActuator
variable: filename
filename returns the name of the actuator
filename doesn’t change the sound file being played
deprecated methods: getFileName() and setFileName
have the same problems
#############
KX_VertexProxy
method: setUV2(uv)
Asks for a second argument (an integer)
#############
SCA_PropertySensor
variable: value
using value to change the value returns SystemError: error returns without exception set
Deprecate method: setValue(value)
2.49 same error message
2.48 works without problem
#############
Rasterizer Module
method: getGLSLMaterialSettings(setting)
returns 0 for True and 1 for False
method: setGLSLMaterialSettings(setting)
Uses 1 for True and 0 for False
##############
Rasterizer Module – 2
method: getMaterialMode()
returns 2 for both
KX_BLENDER_GLSL_MATERIALS
and
KX_BLENDER_MULTITEX_MATERIALS
Clark
Attachments
Blender249RC_PythonErrors.blend (261 KB)