package main import ( "fmt" "log" "eq2emu/internal/packets" ) func main() { // Enable all logging to see warnings log.SetFlags(log.LstdFlags | log.Lshortfile) // This will trigger the init() function in the packets loader count := packets.GetPacketCount() fmt.Printf("Loaded %d packet definitions\n", count) // Get all packet names to look for any patterns names := packets.GetPacketNames() if len(names) == 0 { fmt.Println("No packets loaded!") return } // Look for packets that might be empty fmt.Println("Checking for potentially problematic packets...") for _, name := range names { if packet, exists := packets.GetPacket(name); exists { if len(packet.Fields) == 0 { fmt.Printf("Empty packet found: %s\n", name) } } } }