On Mon, Jun 21, 2010 at 4:29 PM, karanveer singh <[email protected]>wrote:

> On Tue, Jun 22, 2010 at 12:23 AM, claudio canepa <[email protected]>
> wrote:
> >
> >
> > On Mon, Jun 21, 2010 at 3:51 PM, claudio canepa <[email protected]>
> wrote:
> >>
> >>
> >>
> >> I think you can do:
> >> action = JumpBy(...) + CheckCollisionWithTile(...)
> >>
> >
> >
> > Sorry, must be
> > action = JumpBy(...) | CheckCollisionWithTile(...)
> > this way in each step the collision detection will be called
> > --
> > claudio
> >
> >
> Traceback (most recent call last):
>  File "test_action_non_interval.py", line 147, in <module>
>    director.run (main_scene)
>  File "../cocos/director.py", line 437, in run
>    event_loop.run()
>  File "/usr/lib/pymodules/python2.6/pyglet/app/xlib.py", line 94, in run
>    sleep_time = self.idle()
>  File "/usr/lib/pymodules/python2.6/pyglet/app/__init__.py", line 187, in
> idle
>    dt = clock.tick(True)
>  File "/usr/lib/pymodules/python2.6/pyglet/clock.py", line 696, in tick
>    return _default.tick(poll)
>  File "/usr/lib/pymodules/python2.6/pyglet/clock.py", line 303, in tick
>    item.func(ts - item.last_ts, *item.args, **item.kwargs)
>  File "test_action_non_interval.py", line 125, in spawn_bullet
>    chase_worker = bullet.do(Chase(self.green_obj, fastness_bullet))
>  File "../cocos/cocosnode.py", line 639, in do
>    a = copy.deepcopy( action )
>  File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
>    y = _reconstruct(x, rv, 1, memo)
>  File "/usr/lib/python2.6/copy.py", line 338, in _reconstruct
>    state = deepcopy(state, memo)
>  File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
>    y = copier(x, memo)
>  File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
>    y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
>    y = _reconstruct(x, rv, 1, memo)
>  File "/usr/lib/python2.6/copy.py", line 338, in _reconstruct
>    state = deepcopy(state, memo)
>  File "/usr/lib/python2.6/copy.py", line 162, in deepcopy
>    y = copier(x, memo)
>  File "/usr/lib/python2.6/copy.py", line 255, in _deepcopy_dict
>    y[deepcopy(key, memo)] = deepcopy(value, memo)
>  File "/usr/lib/python2.6/copy.py", line 189, in deepcopy
>    y = _reconstruct(x, rv, 1, memo)
>  File "/usr/lib/python2.6/copy.py", line 323, in _reconstruct
>    y = callable(*args)
>  File "/usr/lib/python2.6/copy_reg.py", line 93, in __newobj__
>    return cls.__new__(cls, *args)
> TypeError: __new__ expected at least 1 arguments, got 0
>
> Even after updating to r979, it still gave this error.
>
>
>

I was getting the same with r978, the sample works ok in my system with r979
(note that I changed test_action_non_interval.py in r979)
Just to be sure I have done a fresh checkout from the repo, and it runs ok.
Can it be that you are really running the old test ?
Strange things can happen if you svn update and have the file open in an
editor, and then save or close the editor window.

Just to be sure, you can do:
1) close any window using files from the cocos checkout
2) open a console and go to your svn checkout
3) type
svn info
it says Revision: 979 ?
type
svn diff test\test_action_non_interval.py
It shows no modifications ?

--
claudio

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en.

Reply via email to