Loading...
 

PogamutUT2004


Getting List of Player Weapons

Hi there, I'm currently making use of Pogamut for my honours project and I'm wondering if you could help me. I've created a Behaviour Tree framework in Java and I have used it and Pogamut to create a deathmatch bot. I am trying to make a sort of simple 'Guide' bot now to prove the flexibility of my Pogamut framework. The bot should be able to look at the players current ammo and health and -if needed- suggest to the player to walk over and pick it up.

My question is, can you get a list of a player's weapons? There seems to be no getter within the Player object?

Chris
Hi Chris!

Which connection are you using? If you are using BotConnection (port 3000) than you cannot get list of weapons for OTHER players (that would be considered as cheating,
you as a player does not have that information as well), list of weapons for YOUR bot can be obtain through "weaponry" field of bot's controller.

I don't think this is also possible with ServerConnection (port 3001), but you could try to adapt Weaponry class to work with UT2004Observer (ObserverConnection port 3002).

Another possibility is to hack GameBots2004 unreal script code directly, but that would require broader expertise with Pogamut code base, which is not design
to be modularly extensible (e.g. it is hard to write plugin on the GameBots protocol level of code).

Last thing that I can come up with is to execute all your bots within the same JVM and have your Guide bot to look through other's bots "weaponry" instance to see which
weapons they truly have. It depends on the way how you want to model your GuideBot (if you're creating proof-of-concept then I would consider this kind of "cheating"
as perfectly OK).

Cheers!
Jakub
 

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.