Jump to content

Server Hosting Question: Pregenerating all map chunks?


Go to solution Solved by Teh Pizza Lady,

Recommended Posts

Posted

Hello, I"m pretty new to vintage story but looking at the settings it looks like there is a finite world size. Is there a method or tool to make the server pregenerate all it's chunks so it doesn't have to mak them while people travel and just load them up? I've used third party scripts and programs that did that with minecraft and 7dtd servers we've hosted to help lesson loads. Thank you.

  • Solution
Posted

First let me welcome you to the forums @Oulana! I hope you enjoy your stay here!

Secondly, I believe there is a command you can run. From the wiki on this topic, you can run

/wgen pregen [radius]

to pregenerate chunks around the player. Take care as this can cause a massive lag spike if your server hardware is weak enough that you need to pregenerate the chunks to make the game playable. This process will also take some time, which is a valuable commodity in VS as I'm sure you'll see, so I wouldn't go this route unless you're having issues with the server lagging as people go exploring.

Wiki link:  https://wiki.vintagestory.at/List_of_server_commands/wgen

Posted (edited)

thank you for the answer and the warning, our server is pretty alright I think. We just like to run these sorta things before we actually play in the background while we work to prevent any potential issues that can cause lagging for us. So if I wanted to generate the entire map I could tell it to pregen 31250 chunk radius and it'll have a seizure and generate the entire map over the next week or so?

Edited by Oulana
Posted

You could run it on a second machine, so long as you only had it crunching when someone was playing. Otherwise, like @traugdor says, time will keep flowing, so when you resume playing, your food will have rotted, wolves and bears will have thinned out the animals around you. etc. Now that you mention it that might be a pretty good idea, as long as you teleport to wherever you want new chunks generated and reissue the pregen, rather than just an ever-expanding radius where no one will go. 

Posted (edited)

In this case we wouldn't be playing yet. most of us work a rotating shift schedule. So we'll all be working for a week then have a week off. Would just be turning the server on, logging in with an admin account on creative and just letting it plod away while no one is actually able to play. Then just probably using time commands to reset it back to starting date or something when we actually go to play.

Edited by Oulana
Posted
4 hours ago, Oulana said:

In this case we wouldn't be playing yet. most of us work a rotating shift schedule. So we'll all be working for a week then have a week off. Would just be turning the server on, logging in with an admin account on creative and just letting it plod away while no one is actually able to play. Then just probably using time commands to reset it back to starting date or something when we actually go to play.

Im not sure if you can turn time back. I tried to take time away with the time add command after a suggestion here on the forums but it didnt work. I just assumed it was possible back then and not anymore

Posted

Wouldn't /time stop and /time resume be the way to go in this situation? Just stop the time while you're generating the chunks and then resume the time when you're happy with how much of the map you've generated.

  • Like 1
Posted
10 minutes ago, Scythe88 said:

Wouldn't /time stop and /time resume be the way to go in this situation? Just stop the time while you're generating the chunks and then resume the time when you're happy with how much of the map you've generated.

Unless chunk generation is bound to time literally passing, which would be nonsensical, this is probably the way to go.

 

Also, i hope 88 is your birth year....

  • Like 2
  • Haha 1
Posted (edited)

Welcome to the forums, @Scythe88, and good call on /time stop. I was going to suggest skipping forward to the next May, but yours is a much more elegant solution. The only downside of it is that I'm pretty sure predators will still kill off any animals around spawn.

 

Edited by Thorfinn
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.