Hello I bought the Beginner’s Guide 1.6 Panda3D book and since this time I’m studying and doing the exercises everything was going well until I get to chapter 5, specifically in the Have a go Hero - Adding AI to the Cycle. I Did all the steps when viewing the sample files, but when I try to run my program outputs this message:
Traceback (most recent call last):
File "WorldClass_03.py", line 24, in <module>
w = World ()
File "WorldClass_03.py", line 15, in __init__
self.track = Track ()
File ".. \ Panda Projects \ BGP3D \ BGP3D \ Chapter05 \ TrackClass_01.py", line 8, in __init__
self.trackLanes TrackLanes = ()
File ".. \ Panda Projects \ BGP3D \ BGP3D \ Chapter05 \ TrackLanesClass.py", line 24, in __init__
markers = self.createMarkers (MarkerEgg)
File ".. \ Panda Projects \ BGP3D \ BGP3D \ Chapter05 \ TrackLanesClass.py", line 49, in createMarkers
vertexPool.getVertex vertex = (count)
AttributeError: 'NoneType' object has no attribute 'getVertex'
I think this can be any mistakes in TrackLanesClass.py class because when I try to run the sample files that were written by the author of the book the same error persists, I do not know how to solve this. Can the author of the book give me a help on this? Thanks.