Pogamut 2 Platform for fast development of cognitive agents inside 3D environment AIN / INV messages refined, pitfalls Bot skill GunTestBot Faculty of mathematics and physics Charles University at Prague 16 th April
AIN / INV messages There was a bug… GameBots wasn’t sending AIN (AddItem) message for every item bot picked up. AIN (AddItem with int ID == 0) bot has a new item in the invetory INV (AddItem with int ID != 0) Bot picked up something You will get two AddItem messages for the first pickup of weapon / ammo.
ADD_ITEM listener is screwed… If you want to listen for a pickup, listen on those messages: ADD_AMMO, ADD_ARMOR, ADD_EXTRA, ADD_HEALTH, ADD_WEAPON !!! Do not just listen on ADD_ITEM!!!
Bot Skill and other INIT stuff INIT message Send to create a bot’s body inside UT2004 Many parameters body.initializer Used to construct INIT message Configure inside postPrepareAgent() body.initializer.setBotSkill(int)
GunTest bot Bot + map… GunTestBot must be run on the GunTest map. Upload DM-GunTest.ut2 into UT2004/maps, restart UT2004. GunTest bot will collect all the weapons and then it will show how to shoot with them (basic stuff).
UnrealEd basics