Forum: PogamutUT2004

Re: Weapons in pogamut3

I have another promblem now. When I change weapon ( weaponry.changeWeapon(ItemType.FLAK_CANNON); ), it change weapon to flak cannon, but it fails with error:

(GoalBot1) SEVERE 12:54:52.685 Fatal error in WorldView113: Exception raising event InfoMessageWeaponUpdate | Id = DM-Trainingday.AssaultRifle | PrimaryAmmo = 100 | SecondaryAmmo = 4 |
(GoalBot1) SEVERE 12:54:52.687 Fatal error happenned - component bus is stopping.
FatalErrorEvent[
Component=UT2004SyncLockableWorldView
Message=Exception raising event InfoMessageWeaponUpdate | Id = DM-Trainingday.AssaultRifle | PrimaryAmmo = 100 | SecondaryAmmo = 4 |
Cause=java.lang.NullPointerException
Cause stacktrace:
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$WeaponUpdateListener.notify(Weaponry.java:839)
cz.cuni.amis.pogamut.ut2004.agent.module.sensomotoric.Weaponry$WeaponUpdateListener.notify(Weaponry.java:834)
cz.cuni.amis.pogamut.base.communication.worldview.impl.AbstractWorldView$ListenerNotifier.notify(AbstractWorldView.java:98)
...


Thanks a lot for helping me.
Tomas
Hi Martin!

Unfortunately even EmptyBot example now using modules that are preinstantiated in UT2004BotModuleController (hope you don't reinstantiate them :-)).

Anyway that bug should not appear in 3.0.8 that is true. Have you tried to change the map?

Best,
Jimmy