Description
The bug
When you start a Robocode Tank Royale server from the GUI on any LAN Websocket address, boot up bots to connect to the server through the command line (e.g. java -cp ../lib/* AvoidWall.java
), and then try and start up a match between these bots through the GUI, the match doesn't start.
To Reproduce
-
Go to the
server.properties
file and add your computer's LAN address converted to a websocket address (e.g.ws://192.168.1.20:3000
) to theserver-urls
property -
Select the the IP address from Server > Select Server from the GUI
-
Start up a server on this new websocket address through the GUI (Server > Start Server)
-
On a separate computer (or on the same computer), change the SERVER_URL environment variable (by doing
set SERVER_URL=<url>
) to the same websocket address you did in theserver.properties
file -
Also make sure to configure the secret for the bots by doing
set SERVER_SECRET=<secret>
; you can find the bots-secrets in theserver.properties
file -
Then go in command prompt or terminal and then boot up a bot e.g.
java -cp ../lib/* Corners.java
-
It should show that it's connected on the battle menu thingy on the GUI (in the Joined Bots (local/remote))
-
Add that remote bot for battle
-
Boot up another bot from a local directory through the GUI (not from command line)
-
Click start battle
-
You will see that the pop up for selecting bots disappears like it's going to start a match, but then nothing shows up on the main screen (the battle interface doesn't show up)
Desktop (please complete the following information):
- Windows 10
Java info:
- Java 16.0.2 (yeah I need to update Java lol)
- Vendor: Oracle