Has anyone figured out how to add this to a dedicated server yet?
It is surprisingly easy to get this to work.
1) I recommend you specify the save game folder for your server, this is what I put in serverconfig.xml:
<property name="SaveGameFolder" value="/home1/sd/saved_games" />
Create the directory, and under it create the directory GeneratedWorlds. If your server root is /home1/sd like mine is, you should have:
/home1/sd/saved_games/GeneratedWorlds
2) Make these changes to your serverconfig.xml, these are what I use but you can use whatever you want. In this case my server name is "Vomiting Spleens", and the game world and seed is NitroGenMap_4096_flat_snow. I'm not sure what would happen if GameWorld and WorldGenSeed were different, I didn't try to find out as I was a bit short on time. I kept them the same and it worked great.
<property name="ServerName" value="Vomiting Spleens"/>
<property name="ServerDescription" value="Vomiting Spleens"/>
<property name="GameWorld" value="NitroGenMap_4096_flat_snow"/>
<property name="WorldGenSeed" value="NitroGenMap_4096_flat_snow"/>
<property name="WorldGenSize" value="4096"/>
<property name="GameName" value="Vomiting Spleens"/>
3) Use NitroGen to generate your world, give it the same name you use for GameWorld above. I used NitroGenMap_4096_flat_snow because it was a 4K flat snow world.
4) Copy the directory NitroGenMap_4096_flat_snow from the NitroGen output directory to the GeneratedWorlds directory. You should have:
/home1/sd/saved_games/GeneratedWorlds/NitroGenMap_4096_flat_snow
5) Cross your fingers, pray to the diety of your choice, and start the server. It will take this template and generate the world:
/home1/sd/saved_games/NitroGenMap_4096_flat_snow
When the server finishes generating the world, join the server and enjoy!
This works for me, YMMV. The above creates a 4096 world, I kept it small for testing. After I saw that it worked, I then created a 16K world, which likewise worked great.
Try it and let us know what happens.