Loading...
 

PogamutUT2004


Observer Connection is Lost

Hi

I used observer connection to connect to a player. The connection is reading the player info perfectly fine until the player is killed, then the connection is lost and I can't observe the player when it spawns back to the game. In order to read the player data again, I need to rerun the program or reconnect the observer connection after enough time that will guarantee the player is back in the game.

Is there a way to not lose the connection or automatically know when the player is back in the game so I can reconnect the connection?


I have another question, I can create a new post if you want me to. Is there any way to get the WorldView of the player using observer connection? I want to get the other visible players from the observed player's perspective. I tried
observer.getWorldView().getAllVisible(Player.class).values();
it returned all the players in the game even if the players were not able to see each other.

Thanks
Hi!

I'm sorry we're not answering, busy with Christmas and families :-)

I will check the problem with observing the player tomorrow, thanks for bug reportin!

Cheers!
Jimmy
Thanks, I'll wait for the answer and happy past Christmas and new years.
OK, this was another bug in GameBots. Its fixed in SVN, I've created a thread in GameBots2004 forum section with info how to get latest GameBots2004 from SVN.

Best,
Michal
 

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.