Documentation
¶
Overview ¶
Package main provides a tool that parses Factorio's data-raw-dump.json and generates a Go source file containing all prototype names grouped by type.
Usage:
# First, generate the dump (one-time or when Factorio updates): /opt/factorio/2.0.76/bin/x64/factorio --dump-data # Then generate the Go file: go run ./protodump --factorio-dir /opt/factorio/2.0.76 --output client/prototypes/prototypes_gen.go
The generated file contains typed string constants and lookup maps for validating entity names, tile names, and other prototype IDs before sending them to the server.
Click to show internal directories.
Click to hide internal directories.