Hello again, running the script you posted on spaceship.cap from the demo page, gives me the following result:
test=capreader.capfile('spaceship.cap')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "capreader.py", line 130, in __init__
this.rw(cap)
File "capreader.py", line 199, in rw
rwArray(cap,this,'layouts','C',CLayout)
File "capreader.py", line 67, in rwArray
new.rw(cap)
File "capreader.py", line 236, in rw
rwArray(cap,this,'objects','iC0','uid',CObj,'obj')
File "capreader.py", line 80, in rwArray
new.rw(cap)
File "capreader.py", line 268, in rw
rwHeader(cap,'CObj', 3)
File "capreader.py", line 50, in rwHeader
assert name==newname, 'invalid header %s!=%s'%(name,newname)
AssertionError: invalid header CObj!=?C?C?BdB???~?>????Sprite??Sprite6
I will try to debug it over the next week (as Python is not my forte) but if the problem is trivial to anyone please feel free to enlighten me.
Thanks again for all the help.