Console, logging and analytics
Types in Alta.Console, Alta.Console.Commands, Alta.Logging, Alta.Analytics and Alta.QATools. 139 types, 16 with a hand-written page.
See the overview for what the columns mean and how this list is made.
Alta.Analytics
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
Analytics | static class | 2 | Obsolete static analytics sender. SendRecord is now empty, so nothing it is given goes anywhere. | |
AnalyticsOptions | enum | 5 | Obsolete flags for which extra fields (timestamp, user ID, server ID, game time) the old analytics system adds to events. | |
AnalyticsRecordAttribute | class | Attribute | 0 | Obsolete. Marked a field or property for the old AnalyticsTools.Serialize to include. |
AnalyticsRecordForAllAttribute | class | Attribute | 2 | Obsolete. Marked a class or struct so the old AnalyticsTools.Serialize includes all its fields and properties, with extra options. |
AnalyticsTools | static class | 1 | Obsolete reflection serializer that turned records into the old DynamoDB-style JSON for Analytics.SendRecord. Builds and caches one serializer per type. | |
AnalyticsType | enum | 6 | Old analytics record categories (combat hit, teleportation, device stats and so on), each mapped to an endpoint name. Analytics.SendRecord is empty in this build. | |
DeviceStatRecord | class | 19 | Obsolete analytics record of the player's hardware, filled from Unity's SystemInfo. | |
TeleportationRecord | struct | 3 | Obsolete analytics record for a teleport, from the old analytics system. |
Alta.Analytics.UserSettingsAnalytics
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
UserSettingsAnalyticsReporter | class | IInitializable, IIsolate | 3 | Sends a one-off report of the player's settings after login, if the addressable config's end date has not passed and this report title was not already sent. Client side; built by VContainer. |
UserSettingsAnalyticsReporterConfiguration | class | ScriptableObject | 2 | Asset that sets the title and cut-off date of a user settings analytics report. Read by UserSettingsAnalyticsReporter. |
UserSettingsReport | class | 3 | Collects the logged-in player's playtime, platform and many comfort, locomotion and graphics settings, and sends them as one analytics event. |
Alta.Console
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
AliasAttribute | class | Attribute | 2 | Gives a console module or command extra names it can be called by, such as mic for microphone. |
AllowNullAttribute | class | Attribute | 0 | Put on a command parameter (or a type converter) to let the parameter's converted value be null. Without it a null value fails parsing with value was null. |
BasePart | class | 6 | Base of console command pieces that have a name and description: CommandPart and Parameter. | |
ClientOnlyAttribute | class | RequirementAttribute | 2 | Console requirement: the module or command is only available when the current game mode is a client (or there is no game mode yet). |
Command | class | CommandPart | 9 | Writing commands, Health and damage: Not created anywhere in the game's own code. TavernLib's kill command uses it. |
CommandAttribute | class | Attribute | 5 | Console, utilities and Alta assemblies |
CommandCollection | class | 8 | Writing commands: Get it from CommandService.CommandCollection. | |
CommandContext | class | 7 | Writing commands: One per console session: each websocket connection has its own, and Handle without a context uses one shared default. | |
CommandContextExtensions | static class | 1 | Debug helper for CommandContext. | |
CommandException | class | Exception | 1 | Exception a command can throw to report a failure. CommandService catches it separately from other exceptions. |
CommandPart | abstract class | BasePart | 10 | Base for an entry in the console command tree: a module or a command. Holds its name, aliases, parent module and requirements. |
CommandResult | class | 8 | Arguments and results: For an object result, Log() serializes it to JSON and, in the same line, copies that JSON to the system clipboard of the machine running the game. | |
CommandResult<T> | class | CommandResult | 4 | Arguments and results: For an object result, Log() serializes it to JSON and, in the same line, copies that JSON to the system clipboard of the machine running the game. |
CommandResultSuccess | enum | 5 | Outcome of matching console input to a command: success, or why the parameters didn't fit (too few, too many, wrong types, failed to parse). Carried on CommandSearchResult. | |
CommandSearchResult | struct | 8 | The outcome of matching console input to a command: which command was found, whether its arguments fit, and the parsed arguments. | |
CommandService | static class | 8 | Writing commands, Console, utilities and Alta assemblies: Main thread: every console the game has calls it from Unity's main thread, and you should too. | |
ConsoleEvent | abstract class | 5 | Base for a named event that websocket console users can subscribe to. Messages are queued and sent from a background task, not the main thread. | |
ConsoleEvent.Processor | class | IDisposable | 2 | Background task that takes queued console event messages and raises each event's Invoked. One shared instance runs for all events. |
ConsoleEvent<T> | class | ConsoleEvent, IConsoleEvent | 4 | Console, utilities and Alta assemblies |
ConsoleEventProcessor | static class | 5 | Registry of named console events that websocket console clients can subscribe to. Its static constructor registers the log events and ConsoleEvents. | |
ConsoleEvents | static class | 16 | The game's console events as static fields. Console (websocket) sessions subscribe to them by name. See the Console events guide for what raises each one. | |
ConsoleLogEvents | static class | 1 | Publishes server log lines as console events (TraceLog to FatalLog) so websocket console clients can subscribe to them. | |
DevOnlyAttribute | class | RequirementAttribute | 2 | Console requirement: the command (or settings property) is only for users whose identity token has the developer role. |
DynamicCommandResult | class | CommandResult<object> | 2 | Arguments and results |
EditorOnlyAttribute | class | RequirementAttribute | 2 | Console requirement: the command only runs outside play mode (in the Unity editor). |
GroupPermissionAttribute | class | RequirementAttribute | 2 | Console requirement: on a simple server the caller needs all the listed group permissions; on other servers it always passes. Fails on clients. |
HashedItemInfo | class | 5 | A hash and name pair for console output, such as the list of spawnable prefabs. Converts from prefabs, items and hashed values. | |
IConsoleEvent | interface | 3 | An event that server console (websocket) connections can subscribe to; registered with ConsoleEventProcessor. | |
JsonSerializerSettingsExtensions | static class | 1 | Adds Nullable versions of struct JSON converters to a serializer settings object. Used by the websocket console's JSON settings. | |
LoggedInOnlyAttribute | class | RequirementAttribute | 2 | Console requirement: the command needs the game to be logged in to the Alta API. |
Module | class | CommandPart | 5 | Writing commands |
ModuleAttribute | class | Attribute | 3 | Console, utilities and Alta assemblies |
NonSimpleServerAttribute | class | RequirementAttribute | 3 | Console requirement: the command runs freely on non-simple servers; on a simple server the caller needs the listed policies (debug_features by default). Fails on clients. |
NotAllowedInRemoteAttribute | class | RequirementAttribute | 2 | Console requirement: the command can only be run by the locally logged-in user, not by a remote console user. |
NullableStructSerializer<TStruct> | class | JsonConverter<TStruct?> | 2 | JSON converter for a nullable struct that writes null or hands the value to the struct's own converter. Created by AddNullableConverters. |
ParamAttribute | class | Attribute | 2 | Gives a console command parameter a description, shown in the command's help. |
Parameter | class | BasePart | 9 | One parameter of a console Command, built from the method's ParameterInfo. |
PlayOnlyAttribute | class | RequirementAttribute | 2 | Console requirement: the command only runs in play mode. |
PriorityAttribute | class | Attribute | 2 | Sets a console command overload's priority. When several commands match, higher priority wins among equally successful matches. |
ProgressiveHandler | class | 0 | Empty marker type. A console command whose first parameter is a ProgressiveHandler is flagged as progressive; it must be the first parameter or registration throws. | |
RequirementAttribute | abstract class | Attribute | 2 | Base attribute for a condition a console command (method or whole module class) needs before it can run. Subclasses override Check. |
ServerOnlyAttribute | class | RequirementAttribute | 2 | Console requirement: the command only runs on a server (when ServerHandler.Current exists). |
StringTypeConverter | class | JsonConverter<Type> | 3 | Write-only JSON converter that writes a Type as its name string. |
Vector2TypeConverter | class | JsonConverter<Vector2> | 2 | JSON converter that writes a Vector2 as a two-number array and reads it back. |
Vector3Converter | class | TypeConverter | 2 | TypeConverter that parses an x,y,z string into a Vector3. |
Vector3TypeConverter | class | JsonConverter<Vector3> | 2 | JSON converter that writes a Vector3 as a three-number array and reads it back. |
Vector4TypeConverter | class | JsonConverter<Vector4> | 2 | JSON converter that writes a Vector4 as a four-number array and reads it back. |
WebSocketCommandHandler | class | IRemoteConsoleHandler | 8 | Remote console: One per websocket connection. WebSocketRemoteConsole.Handlers (a static list) holds every one, logged in or not. |
WebSocketCommandHandler.Request | struct | 2 | A command request sent by a websocket console client, parsed from JSON. | |
WebSocketCommandHandler.ResponseData | class | 7 | One message sent to a remote console client over the WebSocket: a system message, subscription event or command result, serialized to JSON. | |
WebSocketCommandHandler.ResponseType | enum | 3 | Kind of message the remote console websocket sends back: a system message (such as the auth result), a subscription event, or the result of a command. | |
WebSocketCommandHandler.SubscriptionResult | enum | 3 | Result of a websocket console subscribe or unsubscribe: done, no change (already in that state) or the event type wasn't found. | |
WebSocketConsoleCommandModule | class | 3 | Console module websocket: lets a websocket console client list and subscribe to console events. | |
WebsocketContractResolver | class | DefaultContractResolver | 1 | JSON contract resolver for websocket console replies that drops DevOnly members from the output, based on the calling user's policies. |
WebSocketRemoteConsole | class | IRemoteConsole | 7 | The server's websocket remote console: a Fleck server on port 1760 that makes a WebSocketCommandHandler per connection. |
WithGroupPermissionsOnlyAttribute | class | RequirementAttribute | 3 | Console requirement: the caller needs all the listed group permissions, on any server type. |
WithPermissionOnlyAttribute | class | RequirementAttribute | 4 | Console requirement: the caller needs all the listed policies (for example server_owner). |
Alta.Console.Commands
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
AltaSelection | class | 2 | The entity a console user has selected, kept on their CommandContext as Selection. | |
AudioCommandModule | static class | 0 | Console module audio for audio input and output settings. Client only, in play. | |
AudioCommandModule.Microphone | static class | 0 | Console module audio microphone (alias mic) for the local microphone in Vivox voice chat. | |
BaseCommands | static class | 5 | Console module help: lists, searches and describes modules and commands. | |
ChunkInfo | class | 2 | Small result object for console commands that shows a chunk by its identifier. | |
DebuggingCommandModule | static class | 0 | Console module debug with developer commands for counting objects, logging entities, server stats, frame rate limits and test spawns. | |
DebuggingCommandModule.StaticCommandSubModule | static class | 0 | Console module debug static for modifiable static objects such as bridges and stairs. Server only, in play. | |
DebuggingCommandModule.Tracking | static class | 3 | Console module debug tracking for following an entity by a name you give it. Needs the server_owner permission. | |
EntityInfo | class | 8 | A summary of a network entity returned by console commands: IDs, prefab, position and rotation. Any NetworkEntity converts to it. | |
GameCommandModule | static class | 1 | Console module game (alias g) for finding, joining, starting and stopping servers from the client. Needs a logged in user, in play, and isn't allowed from the remote console. | |
InfoCommandModule | static class | 0 | Console module info about game systems. Needs the server_owner permission. Only version and player-mode print anything in this build. | |
Inventory | class | 6 | Console result object that lists what a player holds: hand items, back and belt dock items, and their child items. | |
LeaderboardCommandModule | static class | 6 | Console module leaderboard for setting up course leaderboards and their checkpoints. Server only. The board and checkpoint commands act on the selected object. | |
LoggingCommandModule | static class | 1 | Console module logs: commands that change NLog rules at runtime, print the logging config and open the log folder. | |
LoginCommandModule | static class | 0 | Console module login: signs in to the game with a username and password through LoginManager. Play mode only. | |
LogoutCommandModule | static class | 0 | Console module logout: signs the current user out through LoginManager. | |
MaintenanceCommandModule | static class | 0 | Console module maintenance: memory housekeeping commands (garbage collection, unloading unused Unity assets). Play mode only. | |
ModCommands | static class | 8 | Console module mods: manages the game's built-in C# script mods (the .cs files DemoLoadScripts loads from the mods folder). Needs the server_owner permission. | |
ModInfo | class | 4 | A row returned by the mod list console command: a loaded script bundle's name and whether it is active. | |
NetworkEntityInfo | class | 3 | A short summary of a network entity (ID and name) returned by console commands such as spawn. Any NetworkEntity converts to it. | |
PrefabInfoDump | class | 4 | Server: one prefab's entry in the spawn infodump command output, with its hash, name and the network entities inside it. | |
PrefabInfoDump.NetworkEntityInfoDump | class | 4 | One network entity inside a prefab, as listed by PrefabInfoDump. | |
PrefabInfoDump.SavableInfoDump | class | 3 | One savable component type on an entity, as listed by PrefabInfoDump. | |
ProfilingCommandModule | static class | 1 | Console module profiling: Unity profiler samples, heap dumps and memory snapshots. Play mode only, needs server_owner. | |
ProgressCommandModule | static class | 1 | Console module progress: server commands that skip world progression, such as finishing repair boxes, filling books, forging blades and generating caves. Server and play mode only. | |
QualityCommandModule | class | 3 | Console module quality: LOD bias and chunk streaming distance multipliers. | |
QuitCommandModule | static class | 0 | Console module quit: closes the application. Play mode only. | |
RepairBoxModule | static class | 5 | Console module repair-box: spawns a repair box at a player that takes up to three item inputs and produces a chosen prefab. Server and play mode only; on simple servers needs debug_features. | |
RepeatCommandModule | static class | 0 | Console module repeat: runs the next command typed a set number of times at an interval, or reruns the last command. | |
SavingCommandModule | static class | 1 | Console module save: server commands to save the world and to wipe the world, caves, community storage or player saves. Play mode only. | |
SelectionCommandModule | static class | 0 | Console module select (alias s): picks a networked entity as the console's current selection and moves, snaps, exports or destroys it. On simple servers needs debug_features. | |
SelectionCommandModule.MovingModule | static class | 0 | Console submodule select move (alias m): moves the selected entity along world axes and forces a position sync. | |
SelectionCommandModule.RotatingModule | static class | 0 | Console submodule select rotate (alias r): rotates the selected entity and forces a position sync. | |
ServerCommandModule | static class | 0 | Console module server: starts servers, proxies commands to other servers over their websocket console, and runs a spot-instance migration. Needs login, play mode and server_owner. | |
SettingsCommandModules | static class | 0 | Console module settings: reads and changes game or server settings by name, toggles settings, and sets info board text. | |
SettingsCommandModules.PopulationSettings | static class | 3 | Console submodule settings population: checks and overrides how often a population respawns. Server only. | |
SocialCommandModule | static class | 3 | Console module social: adds, removes and lists friends through the Alta API. Needs login, play mode and server_owner. | |
SpawnCommandModule | static class | 3 | Console module spawn: spawns prefabs, saved-object strings and population areas in front of players. Play mode only; on simple servers needs debug_features. Spawned entities become the console selection. | |
SpawnCommandModule.MouldDefinitionInfo | class | 2 | A row in the mould list console command. | |
SpawnCommandModule.Moulds | static class | 0 | Console submodule spawn moulds: spawns casting moulds for a given mould definition. Marked as under construction in the code. | |
SpawnCommandModule.Packages | static class | 0 | Console submodule spawn package: drops named spawn packages through PackageManager. | |
SpawnCommandModule.PageCollectionInfo | class | 3 | A row in the page collection list console command. | |
SpawnCommandModule.Pages | static class | 0 | Console submodule spawn pages: spawns every page of a page collection as paper. | |
SpawnCommandModule.PopulationType | enum | 3 | Shape of the population area the spawn population command spawns: disk, sphere or directional. Each picks a different built-in prefab. | |
SpawnCommandModule.SpawnLists | static class | 0 | Console submodule spawn list: lists what can be spawned. | |
TimeCommandModule | static class | 0 | Console module time: sets and reads the time of day and advances real (timeline) time. Server and play mode only. | |
TradeCommandModule | static class | 0 | Console module trade: empties trade decks and sends spawned items to a player's post box. Play mode only. | |
TradeCommandModule.ATMCommandModule | static class | 3 | Console submodule trade atm: reads and changes a player's ATM (bank) gold balance, even when they are offline. | |
TrialCommandModule | static class | 0 | Console module trial: lists, advances and resets active combat trials. Server and play mode only. | |
UserInfoDetailed | class | UserInfo | 13 | A UserInfo with a player's body, chunk and head and hand transforms, returned by console commands that report player details. |
UsersCommandModule | static class | 0 | Console module users: user statistics from the Alta API. Needs login and server_owner. | |
WackyCommandModule | static class | 1 | Console module wacky: odd fix-up and debug commands the code itself calls "not necessarily safe/functional", such as replacing broken entities, mass destroys and cleaning offline player saves. Play mode only. | |
WorldCommandModule | static class | 0 | Console module world: holder for the world forest and world caves submodules (forest info, teleport and reset; cave reset and teleport). Server and play mode only. | |
WorldCommandModule.CaveCommandModule | static class | 1 | Caves: The world caves module. | |
WorldCommandModule.ForestCommandModule | static class | 2 | Forest: The world forest module. |
Alta.Logging
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
CommandLineArgsLogger | class | MonoBehaviour | 0 | Logs the command line arguments at startup, to both the Unity log and NLog. |
Alta.Logging.Targets
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
ConsoleCommandsLogTarget | class | TargetWithLayout | 2 | NLog target ConsoleCommandsTarget that raises static events for each log line. Remote console connections listen to it to send logs to their client. |
FullStackTraceRenderer | class | LayoutRenderer, IUsesStackTrace | 1 | NLog layout renderer ${fullstacktrace}: the full stack trace with file and line for each frame. |
LogHandler | delegate | 0 | Event handler for a formatted log line and its level. Used by ServerConsoleLogTarget.LogSent and ConsoleCommandsLogTarget.LogSent. | |
MainMenuTarget | class | TargetWithLayout | 0 | Logging |
NetworkEntityChunkRenderer | class | NetworkEntityRenderer | 0 | NLog layout renderer ${entity-chunk}: the chunk of a NetworkEntity passed as the first log parameter, or n/a. |
NetworkEntityIdentifierRenderer | class | NetworkEntityRenderer | 0 | NLog layout renderer ${entity-id}: the identifier of a NetworkEntity passed as the first log parameter, or n/a. |
NetworkEntityOwnedRenderer | class | NetworkEntityRenderer | 0 | NLog layout renderer ${entity-owned} for a NetworkEntity passed as the first log parameter, or n/a. |
NetworkEntityParentRenderer | class | NetworkEntityRenderer | 0 | NLog layout renderer ${entity-parent}: the parent of a NetworkEntity passed as the first log parameter, or n/a. |
NetworkEntityPrefabRenderer | class | NetworkEntityRenderer | 0 | NLog layout renderer ${entity-prefab}: the prefab of a NetworkEntity passed as the first log parameter, or n/a. |
NetworkEntityRenderer | abstract class | LayoutRenderer | 0 | Base for NLog layout renderers that print something about a NetworkEntity passed as the log message's first parameter (its prefab, parent, owner, identifier or chunk). |
RawLogHandler | delegate | 0 | Event handler for a raw NLog event. Used by the LogSentRaw events on ServerConsoleLogTarget and ConsoleCommandsLogTarget. | |
ServerConsoleLogTarget | class | TargetWithLayout | 2 | NLog target ServerConsoleTarget that raises static events for each log line. The console display, runtime console, console log events and client log sender listen to it. |
UnityConsoleLogTarget | class | TargetWithLayout | 2 | Logging |
Alta.QATools
| Type | Kind | Base | Public members | Documented in, or what it is |
|---|---|---|---|---|
DebugLoadMarker | class | 1 | QA helper that keeps the chunks around an entity force loaded as it moves, as if a player stood there. Made by a debugging console command through Setup. | |
DebugLoadMarker.IChunkLoader | interface | 1 | Picks which chunks a DebugLoadMarker keeps loaded around its entity. There is an optimised version for simple servers and a normal one. |