Difference between revisions of "Robocode/Package Robot"

From Robowiki
Jump to navigation Jump to search
m (Image: Shows a dialog that lets the user choose a filename for the robot package)
(Move documentation footer to template)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Once you've created a robot, you can package it up to share with other people. Here's how:
+
When you are ready to release your robot, you will want to '''package''' it, bundling the entire robot into a single JAR file. This is the ''de facto'' way to distribute Robocode robots on the Internet, and it is a requirement for [[RoboRumble/Enter The Competition|entering it into RoboRumble]].
  
== Package Robot for sharing ==
+
To package a robot, use the Robot -> '''Package robot or team''' tool:
First, select the '''Package robot for upload''' tool:
 
  
[[Image:PackageRobot.png|Shows how to start packaging a robot by selecting "Package robot for upload" from the Robot menu]]
+
[[Image:PackageRobot.png|Shows how to start packaging a robot by selecting "Package robot or team" from the Robot menu]]
  
  
Next, select the robot you want to package. In this case, I've selected my robot fnl.Scratch:
+
Select the robot you want to package:
  
 
[[Image:PackagerSelect.png|Shows a dialog that lets the user select which robot or team to package]]
 
[[Image:PackagerSelect.png|Shows a dialog that lets the user select which robot or team to package]]
Line 17: Line 16:
  
  
Click '''Next''' again, to choose a filename.
+
Click '''Next''' again, to choose a filename. The default should be fine.
 
 
The default should be fine, but remember what it says here so you can find it when you want to upload it:
 
  
 
[[Image:PackagerFilename.png|Shows a dialog that lets the user choose a filename for the robot package]]
 
[[Image:PackagerFilename.png|Shows a dialog that lets the user choose a filename for the robot package]]
Line 26: Line 23:
 
Click '''Package!''' on the last page, and Robocode will package your robot for you:
 
Click '''Package!''' on the last page, and Robocode will package your robot for you:
  
http://robocode.sourceforge.net/help/uploading/packagerconfirm.png
+
[[Image:PackagerConfirm.png|Shows a confirmation dialog to let the user choose to package or cancel packaging the robot or team]]
  
  
That's it! You can now upload your robot's .jar file to e.g. the [http://robocoderepository.com/ Robocode Repository].
+
That's it! You are done. If you have left the path at its default, the JAR should be saved in <code>robocode/robots/</code>.
  
== See Also ==
+
== See also ==
* [[Robocode/Downloading Robots|Downloading other Robots]]
+
 
* [[Robocode/Getting Started|Getting started with Robocode]]
+
{{RobocodeDocsList}}
* [[Robocode/My First Robot|My First Robot Tutorial]]
 
* [[Robocode/FAQ|Frequently Asked Questions (FAQ)]]
 
* [[List of articles about Robocode]]
 
  
 
[[Category:Robocode Documentation]]
 
[[Category:Robocode Documentation]]
 +
[[Category:Tutorials]]
 +
 +
__NOTOC__

Latest revision as of 18:13, 18 August 2017

When you are ready to release your robot, you will want to package it, bundling the entire robot into a single JAR file. This is the de facto way to distribute Robocode robots on the Internet, and it is a requirement for entering it into RoboRumble.

To package a robot, use the Robot -> Package robot or team tool:

Shows how to start packaging a robot by selecting "Package robot or team" from the Robot menu


Select the robot you want to package:

Shows a dialog that lets the user select which robot or team to package


Click Next and fill in details about your new robot:

Shows a dialog where the user can fill in all the details about the robot or team to package


Click Next again, to choose a filename. The default should be fine.

Shows a dialog that lets the user choose a filename for the robot package


Click Package! on the last page, and Robocode will package your robot for you:

Shows a confirmation dialog to let the user choose to package or cancel packaging the robot or team


That's it! You are done. If you have left the path at its default, the JAR should be saved in robocode/robots/.

See also

Robocode API

Beginner Guides

External Editors

.NET Robots

Links