Difference between revisions of "Robocode/Package Robot"

From Robowiki
Jump to navigation Jump to search
(Move documentation footer to template)
 
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 29: Line 26:
  
  
That's it! You can now upload your robot's .jar file to e.g. the [[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 ==
  
=== Robot API ===
+
{{RobocodeDocsList}}
* [http://robocode.sourceforge.net/docs/robocode/ Robot API]
 
 
 
=== Tutorials ===
 
* [[Robocode/System Requirements|System Requirements for Robocode]]
 
* [[Robocode/Download|How to download and install Robocode]]
 
* [[Robocode/Robot Anatomy|The anatomy of a robot]]
 
* [[Robocode/Getting Started|Getting started with Robocode]]
 
* [[Robocode/My First Robot|My First Robot Tutorial]]
 
* [[Robocode/Game Physics|Robocode Game Physics]]
 
* [[Robocode/Scoring|Scoring in Robocode]]
 
* [[Robocode/Robot Console|Using the robot console]]
 
* [[Robocode/Downloading_Robots|Downloading other robots]]
 
* [[Robocode/Learning from Robots|Learning from other robots]]
 
* [[Robocode/FAQ|Frequently Asked Questions (FAQ)]]
 
* [[Robocode/Articles|Articles about Robocode]]
 
* [[Robocode/Console Usage|Starting Robocode from the command line]]
 
* [[Robocode/Graphical_Debugging|Graphical debugging]]
 
* [[Robocode/Eclipse|Using Eclipse as IDE]]
 
* [[Robocode/Eclipse/Create_a_Project|Creating a project for your robots]]
 
* [[Robocode/Eclipse/Create_a_Robot|Creating a robot in Eclipse]]
 
* [[Robocode/Running from Eclipse|Running your robot from Eclipse]]
 
* [[Robocode/Eclipse/Debugging Robot|Debugging your robot with Eclipse]]
 
 
 
=== News and Releases ===
 
* [http://sourceforge.net/export/rss2_project.php?group_id=37202 RSS Feeds for the Robocode project]
 
* [http://sourceforge.net/project/showfiles.php?group_id=37202&package_id=29609 Robocode file releases]
 
 
 
=== Home pages ===
 
* [http://robocode.sourceforge.net/ Classic homepage]
 
* [http://sourceforge.net/projects/robocode Robocode project at SourceForge]
 
* [http://robocoderepository.com/ Robocode Repository]
 
* [[wikipedia:Robocode|Wikipediaentry for Robocode]]
 
  
 
[[Category:Robocode Documentation]]
 
[[Category:Robocode Documentation]]
 
[[Category:Tutorials]]
 
[[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