Changing cNode to cNodePath in calls to add_collider() in bvwdemo_12.py and in picker.py fixed the problem in bvwdemo_12.py and bvwdemo_13.py.
The program bvwdemo_14.py will start up, but when the Panda collides with the bamboo and tries to eat the program halts with: File "bvwdemo_14.py, line 168, in eat; pandaEat.start(); Attribute Error: ‘NoneType’ object has no attribute ‘start’. Any suggestions on this one?
The program bvwdemo_15.py starts, but immediately exits with: File bvwdemo_15.py, line 2, in ?; from direct.gui.DirectGHI import *; ImportError: No module named DirectGUI. I appreciate any suggestions on this one as well. Thanks.
from direct.gui.DirectGui import * # 2D GUI elements
Python seems to be case-sensitive. Even when looking for egg/bam files - it cares whether it is “Environment” or “environment” - while Windows doesn’t care.
Still, it’s been two days of Python and I can say I kinda understand it. What I don’t get is where all these globals (render, base, taskMgr) come from… ok I get they come from the imports, but it seems you can use them without any predeclaration (nice and also problematic at the same time).
I’m assuming that some of the globals are inherited, since class World extends DirectObject – class World(DirectObject):
Thanks for the tips on bvwdemo_14.py and bvwdemo_15. That works!
Are you able to get bvwlauncher.py to run? Mine is raising a SAXNotSupportedException. The traceback starts on line 317 in bvwlauncher.py, then goes to line 122 in init, then to line 148 in setFeature.
I’d recommend keeping that link to the bvw scripting tutorial out of the main manual until it gets updated to work with 1.1.0 (or at least noting its incompatible with the current version). The current bvw tutorials for panda are technically out of date (we made them at the beginning of the year, when 1.0.5 was being used)