Loading...
 

PogamutUT2004


Bot forced to stop after acquiring ONS Grenade Launcher

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.
Hi!

That's probably because of Weaponry class - could you see the logs and obtain a thrown exception?
I think it's due to some unusual name of the ONS Grenade Launcher ammo that is unknown to Pogamut.

I'm going to patch the Weaponry class so it won't throw exceptions in the future to prevent the bot
from stopping (due to detected failure in one of its components).

Best,
Jimmy
The problem is I guess we do not support onslaught weapons in Pogamut.

michal
> 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 = InfoMessageSelf | Id = WorldObjectIdDM-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 = WorldObjectIdDM-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@1148603: Can't update ammo amount for non-ammo item type ItemTypename = 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
Hi!

I'm still working on the commit :-( ... I'll try to finish it this Friday. I'm done with the implementation now (+ bug fixing) and currently working on test cases.

Stay tuned :-)

Cheers!
Jimmy

P.S.: I'm sorry I don't currently have time to write down all the identifier of the ONS weapons. But if you manage to export all ids of ONS weapons and ammos I will add them to the ItemType class so the Pogamut will recognize them.
 

News

News RSS RSS feed for News link



Pogamut

Quarterly RSS RSS feed for quarterly reports

Acknowledgement

This work is supported by GA UK 1053/2007/A-INF/MFF (2007-8), GA UK 351/2006/A-INF/MFF (2006-8), the Ministry of Education of the Czech Republic (grant MSM0021620838) (2008-9), by the Program "Information Society" under project 1ET100300517 (2006-9), and the project Integration of IT Tools into Education of Humanities (2006-8) and by the project CZ.2.17/3.1.00/31162, which are financed by the European Social Fund, the state budget of the Czech Republic, and by the budget of Municipal House Prague.