Finally getting somewhere!
Had enough time today to get in some good work, and I think I'm finally done wrangling with pymunk to make it give me a platformer. And I have a working time machine! Unfortunately it only seems to work inside the game, otherwise I'd go back a few days and do some more coding. Here's my first screenshot. Why is that alligator wearing a top hat? What's going to happen to that baby? How long has it been loitering by that sign?(log in to comment)
Comments
Sweet graphics, though I'd kinda like pointier alligator teeth.
andy@laptop:~/pyweek-entries/see_you_later$ python run_game.py
Loading chipmunk for Linux (64bit) [/home/andy/pyweek-entries/see_you_later/pymunk/libchipmunk64.so]
Traceback (most recent call last):
File "run_game.py", line 1, in <module>
from main import run_game
File "/home/andy/pyweek-entries/see_you_later/main.py", line 4, in <module>
from pymunk import Space, Body, inf, Segment, Poly, Vec2d
File "/home/andy/pyweek-entries/see_you_later/pymunk/__init__.py", line 48, in <module>
import pymunk._chipmunk as cp
File "/home/andy/pyweek-entries/see_you_later/pymunk/_chipmunk.py", line 74, in <module>
_cpveql = (function_pointer(cpBool, cpVect, cpVect)).in_dll(chipmunk_lib, '_cpveql')
ValueError: /home/andy/pyweek-entries/see_you_later/pymunk/libchipmunk64.so: undefined symbol: _cpveql
2mauve: most likely that's because your system pymunk is version 1.0.0, which requires an explicit init_pymunk() call, while version 1.1.0 bundled with this game, does not. Sadly, the game doesn't work with version 1.0.0.
It looks like maybe the included chipmunk dll for 64bit linux was compiled with the wrong version of chipmunk? The only linux I have to test with is 32bit and I'm not getting the same problems. I attempted to get it working with pymunk 1.0.0, but ran into a problem with climbing the ladder.
You might try downloading the 1.1.0 version of pymunk into the game directory, and rebuilding the chipmunk library with "python setup.py build_chipmunk" inside the pymunk source directory.
@kent_turbo: are you running 64bit linux too?
richard on 2011/04/09 03:21:
Oh, nice!