Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

data/offline_models/

An offline model: how a station’s work advances while its place is unloaded and when the world starts again after time has passed, as whole cycles of the station’s own work numbers at a share of the online rate, bounded by the station’s stock. A station names its model. Loaded by the server only.

Registrymanifold-ai:offline-model
Filesdata/offline_models/*.ron, *.update.ron, *.final.ron
Sidesserver: only the server loads it
Readsnothing
ContractPopulation, data stage

Entry

A record, written OfflineModel(..); the name before the parentheses is optional.

FieldTypeRequiredDefaultDescription
idstringyesThe model’s key, <mod-id>:<name>.
kindOfflineKindyesWhat it advances.
max_credit_hoursu32no72At most this many hours are credited when a space starts.

Example

No bundled file declares one yet. From the reference’s test fixture, crates/manifold-server-state/tests/data-reference-fixture/data/offline_models/workbench.ron, which the data stage loads in its tests:

OfflineModel(id: "dataref-fixture:offline/workbench", kind: StationWork(efficiency: 1.0))

Types

OfflineKind

What an offline model advances.

VariantWrittenDescription
StationWorkStationWork(efficiency: .., max_cycles: ..)A station’s work cycles.

StationWork fields:

FieldTypeRequiredDefaultDescription
efficiencyf32no1.0The offline rate as a share of the online rate, above 0 and at most 1.0: logging out never earns more than staying.
max_cyclesu32 or Nonenono limitThe most cycles one catch-up credits.