GTProxy uses a JSON configuration file (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.
config.json) to customize its behavior. The configuration file is automatically created with default values if it doesn’t exist when GTProxy starts.
Configuration File Location
The configuration file should be located in the same directory as the GTProxy executable:Configuration Structure
The configuration file is organized into four main sections:- server - Proxy server settings
- client - Client connection settings
- log - Logging preferences
- command - Command system settings
Example Configuration
Server Configuration
Configure the proxy server settings.The local port number where the proxy server listens for incoming client connections.The Growtopia client should connect to
127.0.0.1 on this port.The target Growtopia server address to connect to.This is the official server address that the proxy will forward connections to. The address is resolved using the configured DNS resolver.
Client Configuration
Configure client connection and protocol settings.The Growtopia game version to report.This should match the version of the Growtopia client you’re using. Update this when the game version changes.
The protocol version number.This should match the protocol version used by your Growtopia client. Update this when the protocol changes with game updates.
The DNS resolver provider to use for resolving server addresses.Available options:
cloudflare- Use Cloudflare DNS (1.1.1.1)google- Use Google DNS (8.8.8.8)system- Use system DNS resolver
Log Configuration
Control what information is logged during proxy operation.Enable logging of text messages exchanged between client and server.This includes in-game chat messages, system messages, and other text communications.
Enable logging of game update packets.Game update packets contain detailed information about game state changes. Enabling this produces verbose output and is mainly useful for debugging.
Enable logging of variant packets.Variant packets are used for many game functions and events. This is useful for understanding game behavior and debugging scripts.
Enable logging of extra/additional packet data.This includes supplementary data attached to packets that may contain additional context or parameters.
Command Configuration
Customize the in-proxy command system.The prefix character used to trigger proxy commands.Commands typed in-game must start with this prefix to be recognized by the proxy. For example, with the default
/ prefix, you would type /help to run the help command.Configuration Loading
GTProxy loads the configuration file at startup (src/core/config.cpp:9):- Attempts to read
config.jsonfrom the current directory - If the file doesn’t exist, creates a new file with default values
- If the file is malformed (invalid JSON), throws an error and stops
- Successfully loaded configuration is used for the entire proxy session
Error Handling
If the configuration file exists but contains invalid JSON, GTProxy will:- Display an error message with details about what went wrong
- Exit without starting the proxy
config.json is valid JSON before starting GTProxy. You can validate JSON syntax using online tools or text editors with JSON support.