setup/Regeneration

Regeneration

To allow the plugin to regenerate worlds after a game is over, follow these steps:

  1. First, make sure Bukkit will run with enough memory to allow the generator to run. Do this by modifying the -Xmx -Xms values in Run.bat to at least 1024M.
  2. Create a new arena with /hg arena create.
    1. Choose an arena name that is not already in use.
    2. Choose a world name that is not already in use. IT WILL BE ERASED UPON CREATION!
    3. Choose a generator or a list of generators that will be randomly selected during generation.
    4. Choose a settings file or list of files that will be randomly selected during generation.
    5. Choose a length and width that are small enough for the memory you chose earlier. If you choose something too big, you can modify the length and width in "arenas.yml". (300, 300 is a good starting place)
    6. Choose the number of players the arena can hold. For the HGMG generators, only 12 and 24 are supported but this can be modified.
  3. Play a game in the arena.
  4. Run /hg arena regen <arena> after the game is over. Or, set the "autoregen" config to true and the arena will be regenerated automatically after each game.

Here are examples for each step:

  1. java.exe -Xmx2048M -Xms2048M -jar craftbukkit-1.3.1-R2.0.jar
  2. /hg arena create
    1. New Arena
    2. world_newarena
    3. default
    4. default,snow,desert
    5. 350, 400
    6. 24
  3. ...
  4. /hg arena regen NewArena OR in config.yml: autoregen = true