Skip to content

Stationeers namespace pitfalls

Reference table of game types whose namespace is easy to guess wrong. All verified against game version 0.2.6228.27061. Compile errors of the form using <namespace>; followed by "type not found" usually trace back to one of these.

Reference

F0049 (Mods/PowerTransmitterPlus/RESEARCH.md:613-619, primary):

Type Namespace Common mistake
EnumCollection<,> Assets.Scripts Not Assets.Scripts.Util
ProgrammableChip Assets.Scripts.Objects.Electrical Not Motherboards
ProgrammableChip.Constant nested in ProgrammableChip Must qualify as ProgrammableChip.Constant
LogicType Assets.Scripts.Objects.Motherboards (Most Logic types ARE in Motherboards, just not the chip)
GameState (enum) Assets.Scripts.GridSystem Not Assets.Scripts (where GameManager lives; decompile 290777 under the 290052 namespace)
PowerTransmitterVisualiser global namespace NOT Assets.Scripts.Objects.Electrical despite the dish being there

F0388 (Mods/SprayPaintPlus/SprayPaintPlus/ConsumableSyncPatch.cs:6) adds:

  • Consumable (used for spray cans, fuel canisters, welding torches) resides in Assets.Scripts.Objects.Items.

When to consult this

  • After a compile error immediately following a freshly added using Assets.Scripts.<guess>;.
  • Before writing a Harmony patch against a game type whose namespace you inferred from file-system layout or a file name.
  • When decompiled code elides the namespace: ILSpy and dnSpy both show LogicType without its enclosing namespace in some views.

Add entries here as new namespace surprises are discovered. The table is small by design; add only types that have actually tripped someone.

Cited verifications

  • F0049: primary table covering the five highest-surprise entries encountered in PowerTransmitterPlus.
  • F0388: Consumable namespace note from SprayPaintPlus code comment.

Verification history

  • 2026-07-14: added the GameState enum row (Assets.Scripts.GridSystem, decompile 290777; hit while a new file using GameManager.GameState failed to resolve GameState with only the Assets.Scripts using). Additive.
  • 2026-04-20: page created from the Research migration; F0049 primary, F0388 additional.

Open questions

None at creation.