setup/Batch File

Batch File

The instructions here are out-of-date as of v0.8 since you can regenerate worlds within the plugin without needing to restart the server.

For dedicated Hunger Games servers, you can create a new file called RUN_LOOP.bat, edit it in a text editor and paste the following into it:

@ECHO OFF
SET BINDIR=%~dp0
:START
CD /D "Hunger Games Map Generator"
java.exe -jar HGMG.jar "%BINDIR%\world" 500 500 Round default 12
CD /D "%BINDIR%"
java.exe -Xmx4096M -Xms4096M -jar craftbukkit-1.2.5-R4.0.jar
GOTO START

Changing the File

  • You may need to replace "Hunger Games Map Generator" with the location where you put the generator HGMG.jar and the generators folder.
  • You will also need to replace "%BINDIR%\world" with the location of the world folder that your bukkit server uses. %BINDIR% is the folder where the batch file is located (should also be where your craftbukkit.jar is located).
  • You may also need to modify crafkbukkit-1.2.5-R4.0.jar with the name of your jar file.
  • You may want to modify the -Xmx and -Xms numbers to something smaller like 1024M if you want to allocate less RAM to craftbukkit.
  • You may want to modify the generator command line options. The directions for that are here.

How to Use

To run it, just double-click on the RUN_LOOP.bat file.

To stop it from running, stop the server then type CTRL+C and confirm with "y".