Difference between revisions of "Robocode/Package Robot"

From Robowiki
Jump to navigation Jump to search
m (Image: Shows a dialog that lets the user select which robot or team to package)
(Move documentation footer to template)
 
(8 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 14: Line 13:
 
Click '''Next''' and fill in details about your new robot:
 
Click '''Next''' and fill in details about your new robot:
  
http://robocode.sourceforge.net/help/uploading/packageroptions.png
+
[[Image:PackagerOptions.png|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, but remember what it says here so you can find it when you want to upload it:
 
  
http://robocode.sourceforge.net/help/uploading/packagerfilename.png
+
Click '''Next''' again, to choose a filename. The default should be fine.
 +
 
 +
[[Image:PackagerFilename.png|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:
 
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].
 
  
== See Also ==
+
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>.
* [[Robocode/Downloading Robots|Downloading other Robots]]
+
 
* [[Robocode/Getting Started|Getting started with Robocode]]
+
== See also ==
* [[Robocode/My First Robot|My First Robot Tutorial]]
+
 
* [[Robocode/FAQ|Frequently Asked Questions (FAQ)]]
+
{{RobocodeDocsList}}
* [[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