|
From: Sander v. D. <sgv...@gm...> - 2010-05-19 16:47:30
|
Hello all, I have been working on making it possible to select individual agents to kill or to move away. The result of this can be found at the agentselection branch of the simspark SVN repository: svn co https://simspark.svn.sourceforge.net/svnroot/simspark/branches/agentselection Alternatively, you can apply the patch attached here to the trunk. It has been computed relative to rev 194, but works on the current head, rev 197, too. The patch adds some new commands to the external monitor: - n: Cycle through agents. A red marker disc shows which agent is currently selected - e: Clear selection - lctrl+s: Go into specific-agent-selection-mode. A specific agent can now be selected by pressing l or r and then a number. So the sequence 'lctrl+s, l, 4' selects the agent with uniform number 4 of the left team - m: Move selected agent FreeKickDist meters back - x: Kill selected agent Have a look and give it a test, let me know if there are any issues or if you have any suggestions to improve it. One obvious improvement would be to be able to use the mouse to select agents, but I have not figured out a good way to do it yet, because the external monitor does not know which bodies belong to which agent. Ideas are welcome. Cheers, Sander -- Adaptive Systems Research Group Department of Computer Science University of Hertfordshire United Kingdom |