[Pogamut-list] AgentInfo and AgentStats problems

FrankGlavin pogamut-forum at diana.ms.mff.cuni.cz
Thu Oct 25 17:27:47 CEST 2012


AgentInfo and AgentStats problems

Author: FrankGlavin

Hello,

I've recently run into problems accessing kills, scores etc by using the parent classes (UT2004BotModuleController) methods. In this class the following objects are created: 

game        = new Game(bot);
info        = new AgentInfo(bot, game);
players     = new Players(bot);
descriptors = new ItemDescriptors(bot);
items       = new Items(bot, info);
.........
stats       = new AgentStats(bot);
weaponPrefs = new WeaponPrefs(weaponry, bot);


When I try to use the getInfo() method in my bot class I get the following values all the time: Score: -2147483648 Suicides: 0 Kills: 0 Deaths: -2147483648.

I'm pretty sure the problem is with the Unreal ID. The check that it is doing before it returns the values (for instance, when my bot kills) is:

Killer ID: DM-TrainingDay.ObservedRemoteBot1
My Bots recorded ID: SELF_DM-TrainingDay.ObservedRemoteBot1

These are the same except for the SELF_ at the beginning of the recorded ID.

I used to be able to use getInfo() for accessing all types of information that are used in the logic of my bot. None of this works any more and AgentStats returns the default initial values also. I'm wondering if I'm doing something differently or if I need to follow a different procedure for accessing this information when the bot is running. I've been trying to fix this for weeks and I've run out of ideas.

Is there any reason why the objects created in UT2004BotModuleController wouldn't be returning updated values? All I can think of is that it's something to do with the Bot ID.

Please help!!

Thanks.

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_parentId=1061#form>




More information about the Pogamut-list mailing list