Version 1.13.0 (02-Dec-2026)
Thanks go to Henrique Valle de Lima for finding and fixing #132, #133, #134, #137, #140, #141 and #142, for adding -resultsCSV in #136, font size controls to the Source Editor in #138 and replays from a selected round in #143, and for suggesting the Control API documentation in #135 ❤️.
Thanks go to Julian Kent for finding and fixing the skipped turn problems in #130 ❤️.
Bugfix
- #130: A robot that died could lose its score for the round under heavy CPU load, e.g. when running several battles in parallel. Its thread woke up after the rest of the round had passed, and the turns in between were counted as skipped turns, so the robot was disabled.
- #130: A robot that started too slowly in round 2 or later got no
SkippedTurnEventfor the turns it skipped. It now gets them like in the first round, and it is disabled with no score for the round if it skips more than 30 turns. - #130: A robot that took too long in a turn, but was done before the next turn, got no
SkippedTurnEvent, although its actions for that turn were not used. It now gets the event for that turn. - #130: A robot could run twice in the same turn if its thread woke up without being woken by the battle.
- #132: A silent installation of Robocode that failed ended with exit status 0, so scripts and tools like Chocolatey saw it as a success. It now ends with exit status 1.
- Installing into a path that is a file now fails right away with a clear message, instead of failing halfway through.
- #133: Installing Robocode on Linux or macOS into a path with spaces, e.g.
Robocode Lab, leftrobocode.shand the other scripts without permission to run, so they failed with "Permission denied". - #141: A battle recorded as plain XML with
-recordXMLhad an empty ZIP footer after the XML, so XML parsers rejected the file. - #142: When saving the battle results from the Results dialog failed, the error was only written to the log, so it looked as if the results were saved. An error dialog now shows the file and the reason.
- #140: When the results could not be written to the file given with
-results, Robocode still ended with exit status 0. It now writes an error and ends with exit status 8. The Results dialog also added an extra.csvto a file name ending with.CSV. - #137: A command-line option missing its value at the end of the command line, e.g.
-battle, failed with an exception. A non-numeric value for-tps, or an invalid number in a battle file, printed an exception, but Robocode ended with exit status 0. These now give a clear error, naming the property and value for a battle file, and end with exit status 8. - #134:
robocode.shalways ended with exit status 0, also when Robocode failed, and it readset_java_options.shfrom the current directory instead of the Robocode directory. It now ends with the exit status of Robocode and works when started from another directory. - The rank in the battle results of the Control API, i.e.
BattleResults.getRank()inBattleCompletedEvent, and in battle records was the order of the robots in the battle, not their placement. It is now the placement by score, as in the Results dialog, where robots with the same score share the placement. The rank that robots get inBattleEndedEventwas already right. - With the recording format set to CSV, the
.robots.csvfile of a battle record contained the bullets, and the.bullets.csvfile contained the robots. - The results from
-resultsshowed a percentage as e.g.36 %with languages that put a no-break space before%, like Danish. It is now written with a normal space. - Settings given with
-Don the command line, e.g.-Drobocode.options.common.recordingFormat=csv, were ignored the first time Robocode ran after it was installed, as there was noconfig/robocode.propertiesfile yet.
Changes
- #136: New command-line option
-resultsCSV <file>for saving the results of a battle started with-battleas a CSV file, which is easy to read from scripts and spreadsheets. It has one row per robot or team with the rank, name, score and the other numbers from the Results dialog. - #138: The font size of the Source Editor can now be changed quickly with Ctrl+Plus, Ctrl+Minus and Ctrl+0 (Cmd on macOS), or from the View menu, e.g. when showing code on a projector. The change lasts until Robocode is closed, while the font size of the editor theme stays as it is.
- #143: A battle record can now be replayed from a selected round in the menu Battle -> Replay from Round, or with the new command-line option
-replayRound <round>together with-replay, e.g. to show an interesting round without watching the whole battle. The replay continues with the rounds after it. - #135: The documentation of the Control API in the
robocode.controlpackage now explains how to run many battles with the sameRobocodeEngine, which is much faster than starting Robocode for each battle. It also shows how to compile and run the example with Java 8 and newer.
No comments:
Post a Comment