From: SourceForge.net <no...@so...> - 2006-12-13 15:58:21
|
Bugs item #1614268, was opened at 2006-12-12 20:57 Message generated for change (Comment added) made by nhnb You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1614268&group_id=1111 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Code Group: None >Status: Closed Resolution: None Priority: 9 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Hendrik (nhnb) Summary: Deathmatch is not allways able to remove creatures Initial Comment: Deathmatch is not allways able to remove creatures: The following exception is logged and the creatures disapears from the zone. It is not transmitted to the client. But for some strange reason they stay in game and can poison or kill players. 20609994 [RPServerManager] ERROR games.stendhal.server.maps.ados.Deathmatch - marauroa.common.game.RPObjectNotFoundException: RP Object [RPObject.ID [id=6212 zoneid=0_ados_wall_n]] not found marauroa.common.game.RPObjectNotFoundException: RP Object [RPObject.ID [id=6212 zoneid=0_ados_wall_n]] not found at marauroa.server.game.MarauroaRPZone.remove(MarauroaRPZone.java:116) at games.stendhal.server.StendhalRPZone.remove(StendhalRPZone.java:664) at games.stendhal.server.StendhalRPZone.remove(StendhalRPZone.java:689) at games.stendhal.server.maps.ados.Deathmatch$ScriptAction.action(Deathmatch.java:132) at games.stendhal.server.maps.ados.Deathmatch$ScriptAction.onTurnReached(Deathmatch.java:82) at games.stendhal.server.events.TurnNotifier.logic(TurnNotifier.java:97) at games.stendhal.server.StendhalRPRuleProcessor.endTurn(StendhalRPRuleProcessor.java:477) at marauroa.server.game.RPServerManager.run(RPServerManager.java:493) (Note: This execptions is mostlikly not the cause of the problem but only a symptom. ---------------------------------------------------------------------- >Comment By: Hendrik (nhnb) Date: 2006-12-13 15:58 Message: Logged In: YES user_id=990499 Originator: NO fixed (both issues) --> closing ---------------------------------------------------------------------- Comment By: Hendrik (nhnb) Date: 2006-12-13 15:43 Message: Logged In: YES user_id=990499 Originator: NO I found the deathmatch bug: I rewrote "game.remove(creature);" into "zone.remove(creature)" because i had a look at "game.remove(RPObject object)" instead of "game.remove(NPC npc)". But the second methods removes the entity from the NPCList as well. As they Creatures stayed in this list, their logic()-method was invoked and they were able to move and cause damage. The exception is totally unrelated and happend in the old groovy deathmatch as well. It is caused by the try to removed dead creatures which have already been removed at the time they died. This is harmless. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101111&aid=1614268&group_id=1111 |