DebuggingCommandModule
A static class in Root.Township, Alta.Console.Commands.
Console module debug with developer commands for counting objects, logging entities, server stats, frame rate limits and test spawns.
- Listed in Console, logging and analytics
- Nested types
StaticCommandSubModule,Tracking - Attributes
Module
Fields
3 private and internal fields
| Member | What it is |
|---|---|
private static List<Assembly> allAssemblies | Assemblies searched for types by name. Note print-names reads it without filling it first. |
private static LimitFrameRate frameRateLimit | The frame rate limiter made by debug lag. |
private static Logger logger | NLog logger for this module. |
Methods
19 private and internal methods
| Member | What it is |
|---|---|
private static void Count(NetworkPrefab prefab) | Command debug count: logs how many of a prefab are in the scene. |
private static FileDownload CountAllScripts() | Command debug count-all: counts every Unity object by type and returns script counts.csv. |
private static void CountBehaviours(string behaviourName, bool isEnabled) | Command debug count-behaviours: logs how many of a Behaviour type are enabled or disabled. |
private static void CountScripts(string typeName, bool isCountingResources = false, bool isFindingChildren = true) | Command debug count-scripts: logs how many objects of a type exist in the scene or in loaded resources. |
private static void DebugEntities() | Command debug entities: logs every entity's name. |
private static string ExportNavmesh(string output = "D:/Output/Navmesh.bytes") | Command debug export-navmesh: writes the A* graphs to a file (default D:/Output/Navmesh.bytes). |
private static void FixedTime() | Command debug fixedtime: logs the fixed delta time and its rate. |
private static void NameEntity(uint id) | Command debug nameid: logs the name of the entity with that id. |
private static void OpenLogFile() | Command debug open-logs: opens the log folder. |
private static void PrefabCounts() | Command debug prefabcounts: logs how many of each prefab exist. |
private static void PrintEntityHealth() | Command debug entity-health: logs general entity manager state. |
private static FileDownload PrintNames(string scriptName) | Two commands: debug print-names returns a CSV of objects with a script, and debug lag limits the frame rate (0 or less removes it). |
private static void PrintNames(int targetFPS) | Two commands: debug print-names returns a CSV of objects with a script, and debug lag limits the frame rate (0 or less removes it). |
private static object PrintServerStatistics() | Command debug server-stats: FPS, player count, and loaded overworld and cave chunks. |
private static void SetupAllAssembliesList() | Fills allAssemblies with this assembly and its references, once. |
private static void SpawnLoadMarker(Player player) | Command debug load-marker: server owner only. Spawns an unsaved Rusty Spade load marker in front of the player. |
private static void SpawnQASet(Player player, int index = -1) | Command debug set: server owner only. Spawns a QA item set for the player. |
private static void StartRemoteConsole() | Command debug remote-console: starts the remote console if it isn't running. |
private static IEnumerable<string> TurabadaAI() | Command debug turabada-ai: lists the names of the Turabada passive action sets. |