ok… So here is my tentative to update the method.
I’m getting the following warnings inside the terminal with Clark’s (Cthames) version:
Blender Game Engine Started
Method getOwner() is deprecated, please use the owner property instead.
Blue:8
Method enableViewport(bool) is deprecated, please use the useViewport property instead.
Blue:20
Blender Game Engine Finished
So I’m trying to fix the script like this
# get owner
own = cont.getOwner()
Should be:
# get owner
own = cont.owner
and
# set viewport
own.setViewport(width * 1/2, height * 0, width, height * 1)
Should be:
# set viewport
own.useViewport(width * 0, height * 0, width * 1/2, height * 1)
Is it right? Is it supposed to work just inside 2.5? Because with this substitution I’m getting the following error inside 249.2:
Blender Game Engine Started
Python script error from controller “cont#CONTR#1”:
Traceback (most recent call last):
File “Blue”, line 17, in ?
TypeError: ‘bool’ object is not callable
Python script error from controller “cont#CONTR#1”:
Traceback (most recent call last):
File “Yellow”, line 17, in ?
TypeError: ‘bool’ object is not callable
Blender Game Engine Finished
Thank you!
Yours,
Ortiz.
PS: latest .blend file (error message one):
Attachments
BrokenVerticalSplitScreen_FixedB.blend (143 KB)