Post-compo release

I've just uploaded a new release with a few tweaks:

(log in to comment)

Comments

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?
Ah, whoops. I've put up a fixed version that doesn't try to use shaders if you don't have 'em :)
richard: You forgot to add that this version has an additional dependency: the ctypes module. I had to install it before I could run the game.
Aargh. It shouldn't. Thanks for pointing that out. Fixed r3 uploaded.
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.
Thanks for being so patient with testing it. If you include the sys module, what's the error you get?

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:

"No shaders available: No module named ctypes"

Seems you added the ctypes dependency again in bouncy-r4. Once I installed the ctypes module I get this other message:

No shaders available: global name 'GL_INFO_LOG_LENGTH' is not defined

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).

Thanks for the update, Richard. It works really well now (without shaders)!
Am I the only one who doesn't want a White Dress?
Am I the only one who doesn't want a White Dress?