Packet-Logger
Packet Logging in TazUO
Section titled âPacket Logging in TazUOâTazUO includes built-in packet logging functionality to capture network traffic between the client and server. This is useful for debugging, development, and understanding the UO networking protocol.
Enabling Packet Logging
Section titled âEnabling Packet LoggingâCommand Line Option
Section titled âCommand Line OptionâUse the -packetlog command line argument to enable packet logging:
TazUO.exe -packetlogSelective Packet Logging
Section titled âSelective Packet LoggingâYou can log specific packet IDs by providing a comma-separated list:
# Log only specific packet IDs (hexadecimal)TazUO.exe -packetlog 0x1A,0x20,0x77
# Multiple packet IDs without 0x prefixTazUO.exe -packetlog 1A,20,77
# Mix of formats (both work)TazUO.exe -packetlog 0x1A,20,0x77Log File Location
Section titled âLog File LocationâPacket logs are saved to:
<TazUO Directory>/Logs/Network/packets.logThe log directory is automatically created if it doesnât exist.
Log Format
Section titled âLog FormatâHeader Information
Section titled âHeader InformationâEach logged packet includes:
- Timestamp: Current time when packet was captured
- Direction: Either âClient -> Serverâ or âServer -> Clientâ
- Packet ID: Hexadecimal packet identifier (first byte)
- Length: Total packet size in bytes
Hex Dump Format
Section titled âHex Dump FormatâTime: 14:30:25 | Client -> Server | ID: 02 Length: 7 0 1 2 3 4 5 6 7 8 9 A B C D E F -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --00000000 02 00 07 00 01 00 00 .......Security Features
Section titled âSecurity FeaturesâAccount Credential Protection
Section titled âAccount Credential Protectionâ- Packets 0x80 (Account Login) and 0x91 (Game Server Login) are automatically filtered
- Shows
[ACCOUNT CREDENTIALS HIDDEN]instead of packet contents - Credentials are only logged if explicitly requested:
-packetlog 0x80,0x91
Technical Details
Section titled âTechnical DetailsâKey Features
Section titled âKey Featuresâ- Selective Logging: Filter by specific packet IDs
- Real-time Writing: Packets are immediately written to disk
- ASCII Representation: Shows printable characters alongside hex data
- Memory Efficient: Uses stack-allocated buffers for formatting
Common Use Cases
Section titled âCommon Use CasesâDevelopment and Debugging
Section titled âDevelopment and Debuggingâ# Log all packetsTazUO.exe -packetlog
# Debug movement packetsTazUO.exe -packetlog 0x02,0x22- Logging all packets can generate large files quickly during active gameplay- Use selective logging for specific debugging scenarios- Account credentials are protected by default for security- Log files persist between sessions and are not automatically rotated