This update brings a full re-code of the Targeting logic which makes it much more intelligent and useful. It also fixes a flaw in the distance runner and implements some back-end diagnostic functions for me to help better identify issues.
Changelog:
Code:
Improved the distance evasion to use less diagonal steps and not stop next to the target randomly
Rewrote the Targeting algorithm to be much more intelligent.
Targeting selection process:
-Select parameters with highest priority
-If still ambiguous, select parameters which have creatures with the lowest health
-If still ambiguous, select parameters which have closer creatures
-If still ambiguous, select parameters which have a higher count
-If still ambiguous, select parameters which creature we're currently attacking
-Target the closest OR least healthy creature in the select parameters
Some of the new things you'll notice:
-Targeting will now switch to higher priority creatures as they appear.
-Targeting will update counts correctly (So, on non-pvp, you can set proximity 1, count 3, spell "exori gran," and it will work perfect)
-Targeting will now only select farther creatures if they are higher priority or lower health than closer creatures
-Targeting is much easier on CPU now. Comparative benchmarks showed up to a 300% increase in execution speed.
For download and operation instructions, refer back to this thread:
http://forums.xenobot.net/showthread.php?19