7DTD-ScriptingMod icon indicating copy to clipboard operation
7DTD-ScriptingMod copied to clipboard

Commands should be able to process unloaded chunks

Open djkrose opened this issue 7 years ago • 1 comments

It should be possible for all built-in commands like dj-export, dj-import, dj-repair, dj-regen to load affected chunks on demand if they are not yet loaded. This way, repairs and import/exports could be done even if no player is near.

Chunks must be properly unloaded after the operation, except when the chunk got used by other players in the meantime.

The loading ans processing on unlloaded chunks must run in a background thread.

For dj-repair this must be an option, or even completely disabled, because it could take a significant long time to repair all chunks.

djkrose avatar Sep 14 '17 14:09 djkrose

+1 on this one.

Although from your source code I could not see any reason why a chunk to regen must be loaded (in ChunkCache)...

exaSR avatar Sep 19 '18 18:09 exaSR