You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dan Riddell edited this page Aug 5, 2026
·
1 revision
Configuration
The population and size flags (--plants, --herbivores, --carnivores, --width, --height, --rescue, --seed) cover the basics. The ecological, metabolic and learning scalars are exposed as a JSON config so a run can be tuned without recompiling.
Generating a template
go run ./cmd/vivarium headless --print-config > myconfig.json
--print-config is on the headless subcommand because it is display-free — you can generate a template on a machine with no GPU or X server.
Using it
go run ./cmd/vivarium --config myconfig.json
Partial configs
Config files may be partial. Any field you leave out keeps its default, so a config that changes one scalar need only contain that scalar: