[Pogamut-list] Bot forced to stop after acquiring ONS Grenade Launcher
RT@ICE
pogamut-forum at diana.ms.mff.cuni.cz
Mon Jul 12 14:19:49 CEST 2010
Re: Bot forced to stop after acquiring ONS Grenade Launcher
Author: RT at ICE
> Hello there from Japan,
>
> After acquiring ONS Grenade Launcher for a few seconds, our bot is forced to stop and leave the game. Could anybody give a hint on how to solve this? We are using Pogamut 3.0.11.
>
> Thanks in advance.
Hello again. There was an error when I tried to reply the response of Jimmy. So I post here.
The responding code of our bot is as follows.
------------------------
public void weaponUpdate(ItemType ammoType, int amount) {
if (ammoType.getCategory() != ItemType.Category.AMMO) {
throw new PogamutException("Can't update ammo amount for non-ammo item type " + ammoType, this);
}
ammo.put(ammoType, amount);
}
------------------------
The error message is as follows.
------------------------
FatalErrorEvent[
Component=UT2004SyncLockableWorldView
Message=Exception raising event WorldObjectUpdatedEvent[id = DM-GoatswoodPlay.ObservedRemoteBot1, object = InfoMessage[Self] | Id = WorldObjectId[DM-GoatswoodPlay.ObservedRemoteBot1] | Name = Stephan | Vehicle = false | Location = [-1212.84; -3620.00; 226.49] | Velocity = [529.71; -393.80; 52.21] | Rotation = [64013.00; 56809.00; 64838.00] | Team = 255 | Weapon = WorldObjectId[DM-GoatswoodPlay.ONSGrenadeLauncher] | Shooting = false | Health = 98 | PrimaryAmmo = 10 | SecondaryAmmo = 0 | Adrenaline = 0 | Armor = 0 | SmallArmor = 0 | AltFiring = false | Crouched = false | Walking = false | FloorLocation = [-1212.84; -3620.00; 168.11] | FloorNormal = [-0.10; 0.00; 0.99] | Combo = None | UDamageTime = 0.0 | Action = null | ]
Cause=PogamutException[cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$Ammunition at 1148603: Can't update ammo amount for non-ammo item type ItemType[name = Onslaught.ONSGrenadeAmmo, category = OTHER, group = OTHER]]
Cause stacktrace:
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$Ammunition.weaponUpdate(Weaponry.java:657)
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$SelfUpdateListener.notify(Weaponry.java:946)
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$SelfUpdateListener.notify(Weaponry.java:932)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView$ListenerNotifier.notify(AbstractWorldView.java:98)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView$ListenerNotifier.notify(AbstractWorldView.java:77)
cz.cuni.amis.utils.listener.Listeners.notify(Listeners.java:252)
cz.cuni.amis.utils.listener.ListenersMap.notify(ListenersMap.java:76)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView.notifyLevelCListeners(AbstractWorldView.java:660)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView.innerRaiseEvent(AbstractWorldView.java:705)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView.raiseEvent(AbstractWorldView.java:604)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.raiseEvent(EventDrivenWorldView.java:102)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.objectUpdated(EventDrivenWorldView.java:186)
cz.cuni.amis.pogamut.base3d.worldview.impl.VisionWorldView.objectUpdatedEvent(VisionWorldView.java:167)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.innerNotify(EventDrivenWorldView.java:123)
cz.cuni.amis.pogamut.base.communication.worldview.impl.EventDrivenWorldView.notify(EventDrivenWorldView.java:223)
cz.cuni.amis.pogamut.base3d.worldview.impl.BatchAwareWorldView.notify(BatchAwareWorldView.java:83)
cz.cuni.amis.pogamut.ut2004.communication.worldview.UT2004SyncLockableWorldView.notify(UT2004SyncLockableWorldView.java:248)
cz.cuni.amis.pogamut.base.communication.mediator.impl.Mediator$Worker.run(Mediator.java:315)
java.lang.Thread.run(Thread.java:619)
------------------------
Cheers,
Ruck
--
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=280&post_reply=1#form>
More information about the Pogamut-list
mailing list