Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ZTzTopia/GTProxy/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The/debug command provides detailed runtime information about the game state, including player data, world information, tile maps, and objects. This is essential for development, troubleshooting, and understanding the proxy’s internal state.
Syntax
The debug target to inspect. Valid options:
player- Show player informationworld- Show world state informationtile- Show tile information (not fully implemented)object- Show object information (not fully implemented)
Usage Examples
Debug All Players
To list all players currently in the world:- [NetID] - The network ID assigned to the player
- Name - The player’s display name
- (X, Y) - The player’s position in the world
Debug Specific Player
To get detailed information about a specific player by NetID:The network ID of the player to inspect. Use
/debug player without arguments to see all NetIDs.Debug World State
To see information about the current world:- Version: World data format version
- Size: World dimensions (width x height in tiles)
- Tiles: Total number of tiles in the world
- Objects: Number of dropped items or world objects
- Player Count: Number of players currently in the world
Invalid Target
If you provide an invalid debug target:Player Information Fields
When debugging a specific player, you get:| Field | Description |
|---|---|
| NetID | Unique network identifier for the player |
| Name | Display name shown in-game |
| User ID | Growtopia user ID |
| Position | X, Y coordinates in the world |
| Country | Two-letter country code |
| Mod | Whether the player is a moderator (0 or 1) |
| SuperMod | Whether the player is a super moderator (0 or 1) |
Error Handling
Missing Arguments
Invalid NetID
If you provide a non-numeric NetID:Player Not Found
If the NetID doesn’t exist:Implementation Details
Source Reference
Implementation:/home/daytona/workspace/source/src/command/commands/debug_command.hpp:16
How It Works
- Parses arguments: Validates the debug target and any additional parameters
- Queries world state: Accesses the
Worldsingleton to retrieve current state - Formats output: Uses
fmt::formatto create readable debug information - Sends log packets: Sends
packet::message::Logpackets to display information
Dependencies
The debug command relies on:world::World- Singleton managing world stateplayer::Player- Player entity dataworld::TileMap- Tile storage and managementworld::ObjectMap- Dropped item and object management
Use Cases
Player Tracking
Monitor player positions and identify users by NetID
World Analysis
Understand world structure and object distribution
Mod Detection
Identify moderators and super moderators in the world
Development
Debug proxy behavior and verify data parsing
Related Commands
/help
List all available commands
World API
Access world data from Lua scripts