Tron 3.11 seems broken in current Robocode/Java versions?
← Thread:Talk:Tron/Tron 3.11 seems broken in current Robocode/Java versions?/reply (2)
Every single bot now receives a "($i)" suffix where i is absolute index of all robots. The suffix was only added to bots with same name and was related to the specific bot. This change breaks the way most Team bots know which is leader. Team battles should be completely broken now, so does some of the bots with Team capacity.
I've ran some tests and confirmed that Tron's change in behaviour seems to be a rather troublesome side-effect of the change in what getName() returns.
To confirm this, I repackaged Tron with " (1)" added to it's version field, and it misbehaved in even in 1.9.4.1, in the same manner the regular version misbehaves in 1.9.4.2.
It's rather strange that " (1)" appended to the end of getName() causes problems for Tron, because neither "*" appended nor " (1)*" appended does.
Considering this further, I believe the most likely thing is that ABC was using the result of getName() specifically to detect the special case of multiple instances of Tron versus itself, to behave in a special way for development purposes in that scenario.
Most team bots used the suffix to determine a "leader"? Curious. Most teams I spent time looking at either did not have an explicit leader, or were using a different bot class for that.
In any case, this change in what getName() returns really breaks too many things in my opinion.
I am using the bot name suffix to determine the position of current bot in the team, as well as switching colors. Not remembering where did I see someone using similar tricks. Anyway anything like this now breaks.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
Return to Thread:Talk:Tron/Tron 3.11 seems broken in current Robocode/Java versions?/reply (5).
I agree. Having looked at the code in ScalarR, when determining colors, it assumed no suffix for 1v1, and corresponding suffix in teams. The change in bot name breaks its color but nothing else, but no one can be sure some bots are changing other behaviors depending on the name suffix. It's not feasible to monitor which bot is partially broken.