protodump

command
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL