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.
What is in the server log? That might tell us what the server does not like.In my serverconfig.xml file.....
<property name="ServerName" value="Map Test Server"/>
<property name="ServerDescription" value="Testing Generated Maps"/>
<property name="GameWorld" value="Fuddruckers"/>
<property name="WorldGenSeed" value="Fuddruckers"/>
<property name="WorldGenSize" value="4096"/>
<property name="GameName" value="Map Test Server"/>
<property name="SaveGameFolder" value="C:\Tester Server Saves" />
_____________________________________________________________________________
Map directory is C:\Tester Server Saves\GeneratedWorlds\Fuddruckers
My server starts but the cmd window showing everything loaded flickers in and disappears.
I haven't checked the log...soon as I can find it I will see what it saysWhat is in the server log? That might tell us what the server does not like.
And does the server have read/wrote access to that directory?
I'm assuming Fuddruckers was a 4K world?
Your settings look just fine. I have a Windows 7 VM I'm going to try your settings on, and I'll get back here in about a half hour with my results.
Yeah, it doesn't like something related to your world. I'm almost done setting it up to test on my end, I'll post back in a bit with results....I haven't checked the log...soon as I can find it I will see what it says![]()
As far as I know the server can read/right to that directory
Not sure how to know if it was 4K. Did I have to pick that as an option?
My utter lack of knowledge on a lot of this stuff is showing through lol
EDIT: I did find this in the log file...
2019-05-04T16:11:31 2.172 ERR Error starting dedicated server: GameWorld "Fuddruckers" not found!
2019-05-04T16:11:31 2.256 INF Closing Terminal Window
2019-05-04T16:11:31 2.282 INF WinThread ended
2019-05-04T16:11:31 2.282 INF Ended Terminal Window
My SaveGameFolder points directly to the generated world, not just the save-game root. perhaps it's that?
while my generated map is called map_test
Mine looks like this for example:
name="GameWorld" value="map_test"
name="WorldGenSeed" value="map_test"
name="WorldGenSize" value="122888"
name="GameName" value="map_test"
name="SaveGameFolder" value="/opt/sdtd/instances/map_test"
with my world stored in the servers "Worlds" directory. working perfectly. got a testserver and my community server up for weeks now.
SaveGameFolder can probably be anything/anywhere you want, I think it is UserDataFolder that needs GeneratedWorlds under it, and then SaveGameFolder is where the actual saved world goes. In my case I set them both the same and it works. Sometimes I change settings and use different seeds/servers, so because of that my SaveGameFolders is the save game root, rather than the actual world save, but like I said I don't think it really matters.My SaveGameFolder points directly to the generated world, not just the save-game root. perhaps it's that?
while my generated map is called map_test
Mine looks like this for example:
name="GameWorld" value="map_test"
name="WorldGenSeed" value="map_test"
name="WorldGenSize" value="122888"
name="GameName" value="map_test"
name="SaveGameFolder" value="/opt/sdtd/instances/map_test"
with my world stored in the servers "Worlds" directory. working perfectly. got a testserver and my community server up for weeks now.
yup, that got it done is seems like so far....thank you very much.I get the same error with your settings.
The fix is to to set both UserDataFolder *and* SaveGameFolder to "C:\Tester Server Saves". Do that and it should work. Don't forget to un-comment them.