ChunkCommandModule
A static class in TavernLib, TavernLib.ModulePorts.
TavernLib's chunks console module, a port of the game's chunk commands: receive and sync tuning, load distances, listing, wiping, merging and force-loading chunks. Its commands are private.
- Listed in TavernLib.ModulePorts
- Attributes
PlayOnly,Module - Documented in Internals
Fields
2 private and internal fields
Methods
22 private and internal methods
| Member | What it is |
|---|---|
private static IEnumerable<ChunkInfo> CheckWipe() | chunks check-wipe: server only, lists the chunks that need to be pre-wiped. |
private static string GetChunkInfoAsTable(IEnumerable<Chunk> chunks) | Formats the loaded chunks among the given ones as a text table. |
private static IEnumerable<NetworkEntityInfo> ListEntities(Chunk chunk) | chunks entities: lists the entities in a chunk. |
private static void LoadAll(bool loaded = true) | chunks loadall: server only, sets the forced-load flag on every overworld chunk. |
private static string LogChunkDetails(IEnumerable<Chunk> chunks) | Builds the CSV text of chunk details (name, identifier, counts and load flags). |
private static async Task Merge(NetworkPrefab targetprefab) | chunks merge: server only, needs debug_features; kicks players, stops the server session and merges the save with the default one for a prefab (or several prefab hashes), then quits. |
private static async Task Merge(params uint[] prefabHashes) | chunks merge: server only, needs debug_features; kicks players, stops the server session and merges the save with the default one for a prefab (or several prefab hashes), then quits. |
private static FileDownload PrintAllChunkDetails() | chunks print-all: writes the details of every chunk to chunk details.csv. |
private static string PrintChunkInfo(Chunk chunk) | chunks info: shows a chunk's details as a table. |
private static FileDownload PrintLoadedChunkDetails() | chunks print-loaded: writes the details of loaded chunks to loaded chunk details.csv. |
private static async Task<string> ResetChunk(Chunk chunk) | chunks wipe: moves players out of the chunk, saves and clears its save, then moves them back. |
private static async Task SetChunkLoaded(Chunk chunk, bool isForceLoaded) | chunks force-load: server only, force-loads a chunk or clears its forced load. |
private static void SetLoadDistances(float loadDistance, float unloadDistance) | chunks set-load: sets the cave streaming load and unload bounds, from two distances or two vectors. |
private static void SetLoadDistances(Vector3 loadDistance, Vector3 unloadDistance) | chunks set-load: sets the cave streaming load and unload bounds, from two distances or two vectors. |
private static void SetPointersToLoadPerFrame(int numberToLoadPerFrame) | chunks set-static-per-frame: turns off sequential loading and sets how many static pointers load per frame. |
private static void SetReceiveAmount(float processingPercent = 0.1, float maxAllowance = 5, float minNeeded = 2) | Sets how the connection receiver spends its time, either the timed settings (chunks set-timed) or a minimum of reliable messages per frame (chunks set-receive-count). |
private static void SetReceiveAmount(int receiveAmount) | Sets how the connection receiver spends its time, either the timed settings (chunks set-timed) or a minimum of reliable messages per frame (chunks set-receive-count). |
private static void SetReceiveMs(float receiveDuration) | chunks set-receive-ms: sets the most milliseconds per frame spent processing reliable messages. |
private static void SetStaticLoad(bool isLoading) | chunks set-static-load: turns loading of static pointers on or off. |
private static void SetStaticSequential(bool loadSequentially) | chunks set-static-sequence: sets whether static pointers load one after another. |
private static void SetSyncInterval(float interval) | chunks set-sync-interval: server only, sets the wait between entity spawns sent to clients. |
private static void SetSyncNumber(int syncAmount) | chunks set-sync-amount: server only, sets how many prefabs sync each frame. |