0.27.0
π¦ 0.27.0 - Lots of bug fixes - 02-Dec-2024
This version fixes various issues, some found when running legacy bots with the [Robocode API Bridge].
π Improvements
- Bot API for .Net:
- Improved performance of event handling by replacing
ImmutableList
andImmutableHashSet
withList
and
HashSet
protected withlock
blocks.
- Improved performance of event handling by replacing
- Bot API for Java:
- Improved performance of event handling by replacing
CopyOnWriteArrayList
with
synchronizedList(new ArrayList<>())
.
- Improved performance of event handling by replacing
π Bug Fixes
- Server:
- #117: Server process consumed 100% of a CPU core even when the game is paused (due to nano timing).
- Thank you, Tobias Zimmermann, for spotting and fixing this nasty issue! β€οΈ
- #117: Server process consumed 100% of a CPU core even when the game is paused (due to nano timing).
- Bot API:
- #1: Wrapped bot throws an exception. Fixes in both
the Bot API and Robocode API Bridge caused by the Tank
Royale Bot APIs. - #119: Battle was not starting on Windows 11 and 10 after installing Docker Linux subsystem.
- Bridged bots run multiple threads after round 2 due to old thread(s) hanging that could not be stopped.
- Bridged bots could not be restarted as they got a connection error with the WebSocket when restarting.
- .Net bots sometimes exited when running at max speed without any exceptions occurring.
- #1: Wrapped bot throws an exception. Fixes in both
π Documentation
You can read the Robocode Tank Royale documentation here.
π¨ Try it out
Please head over to My First Bot tutorial to learn how to set up your first bot for Robocode Tank Royale.
βΆ Running Robocode
You need Java 11 as a minimum or newer, e.g. the newest version of Java available.
You can read the installation guide to get more details about installing both Java and Robocode.
The main application is the GUI Application which is a Java application.
You can read more about how to use the GUI Application here.
The Robocode GUI application is run from the command line (shell or command prompt) in order to start and view
battles:
java -jar robocode-tankroyale-gui-0.27.0.jar
If you are new to Robocode, you need to download some bots and extract those to directories on your system.
These bot directories can be added from the menu of the GUI: Config β Bot Root Directories
π€ Sample bots
These sample bots are currently available:
Platform | Archive | Requirements |
---|---|---|
C# | sample-bots-csharp-0.27.0.zip | Microsoft .Net SDK 6.0 or newer |
Java | sample-bots-java-0.27.0.zip | Any Java SDK 11 or newer |
All bots are put in zip archives, which should be installed in independent directories.
Each zip archive contains a ReadMe.md file with more information for the specific platform.
π¦ Bot API
In order to start developing bots for Robocode, the following APIs are available.
π¦ Java:
Available as:
- Jar file: robocode-tankroyale-bot-api-0.27.0.jar
- Artifact at Nexus Repository
- Artifact at Maven Central Repository (available after some time)
π¦ .Net:
Available as:
- Artifact at Nuget repository