Raycasting for player observer Posted by bulent on Sun 08 of May, 2011 22:56 CEST Hey Is it possible to generate raytracing for observation class? I looked up the gamebots messages and AutoRayTracing is only valid for bots, does that mean we can't observe raytraces from a player? Thanks
Posted by michal.bida on Mon 09 of May, 2011 12:33 CEST Hi. There is no support in GameBots for rays for human players. Moreover I've looked in the code and ray tracing is not exported for observed bots either (however, this could be fixed). What do you need this for? best, Michal
Posted by bulent on Mon 09 of May, 2011 18:23 CEST Hi Thanks for the reply, I need this for collecting features about what is around the player. It could be to get data for how far the player is from a wall or an obstacle in the environment so that we can see how the player performs in such situations. If it's not a major work, it would be very helpful to be able to use rayscans for observed players.
Posted by michal.bida on Sat 14 of May, 2011 15:02 CEST I have implemented support for automated ray tracing messages for bot observers. Update Gamebots in your UT2004 folder with files here: svn://artemis.ms.mff.cuni.cz/pogamut/trunk/project/Main/Gamebots/GameBotsUT2004 Ray tracing for players is not supported (and it would require bigger changes). However I have implemented support for TRACE and FTRACE commands for control server. So when you have control server instanciated you can make trace and fast trace queries and you receive result asynchronously. (TRC and FTR messages, or TraceResponse and FastTraceResponse in Java). You can use this to get information you need. Be carefull though as trace and fast trace commands can be computationaly intensive ( I would recommend to limit the number of queries to max 10 per 250 ms per player). Best, Michal
Posted by bulent on Sun 15 of May, 2011 17:38 CEST Hi Thanks for the update, I am able to use it now with Java classes Trace and TraceResponse. Sending trace object with server.getAct().act(trace); inputs the ray and traceResponseListener event listener grabs the response. Thanks again