The previous version worked fine for me, but now I just get this trackback when I run the game:
Traceback (most recent call last):
File "game.py", line 18, in ?
from map import *
File "/data/david/Software/Games/PyWeek 3/bouncy-post-r1/map.py", line 7, in ?
import euclid, collide, objects, pyglyph, fonts, shaders
File "/data/david/Software/Games/PyWeek 3/bouncy-post-r1/objects.py", line 2, in ?
import euclid, objloader, collide, shaders
File "/data/david/Software/Games/PyWeek 3/bouncy-post-r1/shaders.py", line 26, in ?
glCreateShaderObjectARB = gl.glCreateShaderObjectARB
File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 233, in __getattr__
func = self._CdeclFuncPtr(name, self)
AttributeError: /usr/lib/python2.4/site-packages/_ctypes.so: undefined symbol: glCreateShaderObjectARB
It's strange because there doesn't appear to be any problem with this symbol in the previous version, and I'm running both versions with the same Python setup.
Do you have any ideas about which change might have caused this?
I tried to enable the toon rendering, but it didn't work in my machine. However, it doesn't print anything because you forgot to include the sys module. You may also want to correct the reference in the README, since the toon initialization seems to be now in objects.py.
Yes, the shaders do need ctypes - commenting out that little block should remove any dependency on ctypes.
Hurm, that error seems to imply that the shader compilation is failing but we can't view the error because of a bug ('GL_INFO_LOG_LENGTH' is not defined).
I've also added a note about the requirements for the shaders in the README.
Richard: These are the messages I get when I run the game with the toon code enabled.
First, I got this:
Seems you added the ctypes dependency again in bouncy-r4. Once I installed the ctypes module I get this other message:
Hurm, that error seems to imply that the shader compilation is failing but we can't view the error because of a bug ('GL_INFO_LOG_LENGTH' is not defined).