On Thu, 13 Jul 2006 20:48:04 +0200
souvarine <[EMAIL PROTECTED]> wrote:

> I'm trying to modify the tofudemo tutorial to allow the character to
> throw fireballs.
> 
> I created a Fireball class witch is a subclass of Mobile. When the
> player hit a key my programm create an instance of Fireball and add it
> to the level.
> 
> if action and (action.action == ACTION_FIRE):
>       fireball = Fireball()
>       self.level.add_mobile(fireball)
> 
> This work perfectly in tofu single mode but in client-server mode, when
> self.level.add_mobile(fireball) is called the client quit whith the
> folowing error
> exceptions.AssertionError: Level sent with non-level unique !
> * Tofu * Connection lost: Level sent with non-level unique !
> 
> What does that mean ?

Hum, it means that (for an unknown reason), fireball.level has been dupplicated 
and transfered "by value", and not by reference.

The exact cause of that is absolutely unknown to me :-(

Well, Tofu is clearly not as stable or mature than Soya...

Jiba

_______________________________________________
Soya-user mailing list
Soya-user@gna.org
https://mail.gna.org/listinfo/soya-user

Reply via email to