HowToAddCreaturesStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
Balance A Creature: how to use the balancer utility in Eclipse
imported>AntumDeluge
Command Line: how to use the enemy balancer
Line 138: Line 138:
=== Eclipse ===
=== Eclipse ===


Steps:
# Open the debug or run configurations.
# Open the debug or run configurations.
# Under "Java Application" press the "New launch configuration" button.
# Under "Java Application" press the "New launch configuration" button.
Line 153: Line 154:


=== Command Line ===
=== Command Line ===

<span style="color:green; font-style:italic;">'''NOTE:''' To execute the balancer CLASSPATH must include the following:</span>
<blockquote>
Linux/Unix:<br>
<blockquote><code>./build/build_stendhaltools/:./:./build/build_server/:./tests/:./libs/*</code></blockquote>

Windows:<br>
<blockquote><code>.\\build\\build_stendhaltools;.;.\\build\\build_server;tests;.\\libs\\*</code></blockquote>
</blockquote>

Steps:
# From your command line, navigate to the root directory of the Stendhal source.
# Before you can use the enemy balancer, the Stendhal server & tools must be compiled. If you have [https://ant.apache.org/ Apache Ant] installed, this can be accomplished by running: <code>ant compile_stendhaltools server_build</code>
# Execute the following command(s):
#* To run through all configured creatures/enemies:
#** <code>java -cp "./build/build_stendhaltools/:./:./build/build_server/:./tests/:./libs/*" games.stendhal.tools.BalanceRPGame</code>
#* For only specific creatures, append the creature names to the end of the command:
#** <code>java -cp "./build/build_stendhaltools/:./:./build/build_server/:./tests/:./libs/*" games.stendhal.tools.BalanceRPGame orc "mountain orc"</code>
#** <span style="color:green; font-style:italic;">'''NOTE:''' Creature names containing whitespace must be enclosed in quotes (").</span>


=== Ant Command Line ===
=== Ant Command Line ===