Difference between revisions of "Robocode/Package Robot"

From Robowiki
Jump to navigation Jump to search
(Move documentation footer to template)
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
+
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]].
  
Once you've created a robot, you can package it up to share with other people. Here's how:
+
To package a robot, use the Robot -> '''Package robot or team''' tool:
  
== Package Robot for sharing ==
+
[[Image:PackageRobot.png|Shows how to start packaging a robot by selecting "Package robot or team" from the Robot menu]]
First, select the '''Package robot for upload''' tool:
 
  
http://robocode.sourceforge.net/help/uploading/packageforupload.png
 
  
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]]
  
http://robocode.sourceforge.net/help/uploading/packagerselect.png
 
  
 
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.
  
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:
+
[[Image:PackagerFilename.png|Shows a dialog that lets the user choose a filename for the robot package]]
  
http://robocode.sourceforge.net/help/uploading/packagerfilename.png
 
  
 
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