Loading...
 

PogamutUT2004


Use of Translocator

Hi everyone,

First of all, I would like to say what an amasing job you guys from Pogamut are doing, really impressed with the idea and the way this project is carried out. I am currently doing my dissertation and since two weeks I have been vigorously :-) coding my experimental research using your platform. So far your examples and tuts been a great help. However after few attempts I cannot get few things working.

One of them is using translocator. Using other weapons with changeWeapon works just fine but when I am calling the same code for translocator I get this nasty exception. One of the variants I've tried is

1. ItemType translocator = ItemType.TRANSLOCATOR;
2. action.getBot().getAct().act(new ChangeWeapon().setId(weaponry.getWeaponInventoryId(translocator).getStringId()));

and the error is caused by weaponUpdate method, ""Can't update ammo amount for non-ammo item type....". (see Weaponry line 656)

Is there something I can do to fix this or some workaround?

Second issue is connected with setting rotation when initialising a bot. Setting location works fine whereas the set rotation method does not respond at all? I have found rather hard-coded solution to this but I thought I will check with you.
Hi! Welcome to the forum :-) and thanks for encouraging words!

I've looked through the code and it seems that Translocator has some strange ammo type that is not known by the Pogamut.
I'm currently in the middle of PathExecutor refactoring implementing LoqueNavigator (one of the great bot of Pogamut 2 made by Juraj Simlo).

I've changed the code so it won't throw an exception (unfortunately no time to test translocator, but I will probably do it in Monday).

I will commit everything during Monday, are you running on SVN version?

Cheers!

Jimmy
Hi Jakub,

Thanks for reply and seriously more power to your elbow - Pogamut project:-). To answer your question, no I am not running on svn version but used your bundle with 3.0.11 version. However, if you get this fix please could you provide the link to the current repo and I will just export svn and create my own jar file in order to attach it to my bot code. I think that would be the simplest way for me to get this done. Unless there is something even more simple to be done.

Thanks,

P.
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
 

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.