HowToAddCreaturesStendhal: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Athanas
imported>AntumDeluge
Balance A Creature: how to use the balancer utility in Eclipse
Line 127: Line 127:
Now let's play.
Now let's play.


= Balance a creature=
= Balance A Creature =

If you have played against it you will have seen that the creature is either too weak or too strong for its level.
If you have played against it you will have seen that the creature is either too weak or too strong for its level.
So you can run games.stendhal.tools.BalanceRPGame <name of creature> and it will give you correct ATK, DEF, HP, XP for the level you placed. It is important to choose a good initial values so that it works.
So you can run games.stendhal.tools.BalanceRPGame <name of creature> and it will give you correct ATK, DEF, HP, XP for the level you placed. It is important to choose a good initial values so that it works. The balancer bases its output on the configured creature level & HP values. So those two values must be decided on & set in the XML configuration. Before running the balancer ATK, DEF, & XP can be set to any value as the balancer ignores these.

== Using the Balancer Utility ==

The balancer is a tool that suggests appropriate ATK, DEF, & optionally XP reward for creatures in the game. Before using the utility to balance a creature, the creature must be configured in an appropriate XML file located under <code>data/conf/creatures/</code>.

=== Eclipse ===

# Open the debug or run configurations.
# Under "Java Application" press the "New launch configuration" button.
# "Main" tab:
## Under "Main class" set the value to "games.stendhal.tools.BalanceRPGame".
# "Classpath" tab:
## Select "User Entries".
## Press "Advanced".
## In the window that pops up select "Add Folders" & press "OK".
## Select the Stendhal project folder & press "OK".
# "Arguments" tab:
## Under "Program arguments" you can list (space separated) the creatures you want to test. If the creature you want to test contains whitespace in its name, you must surround its name with quotes ("). If you do not put anything in this field, the balancer will run through all registered creatures.
## There is currently one recognized argument for the "VM arguments section. That is "-Dshowxp". If this value is set, the output of the balancer will include a suggested XP reward value for defeating the creature.
# Run the balancer by pressing the "Debug" or "Run" button.

=== Command Line ===

=== Ant Command Line ===

=== Implementing Output ===


# After the balancer has finished running its simulation, it will output suggested values for ATK, DEF, & XP (if the "-Dshowxp" option is set).
# Open the XML file where the creature is configured & use the suggested values to fine tune the creature's ATK, DEF, & XP values.