Connection module
A Connection module is a structural Module that links other modules together — the connector pieces in a station’s layout. Most NPC stations have many; the player adds them implicitly when picking adjacent module slots during construction.
Inheritance: component → destructible → module → connectionmodule. Datatype is thin — one venture-specific flag.
Properties
Section titled “Properties”Connection-module-specific
Section titled “Connection-module-specific”| Property | Type | Description |
|---|---|---|
.isventuremodule | bool | True if this connection module is for use with the Ventures DLC platforms |
Inherited from module
Section titled “Inherited from module”| Property | Source | Description |
|---|---|---|
.numdocks.{docksize} | module | Connected docks (rarely on connectors; mostly zero) |
.haswalkableroom | module | Walkable interior |
Common patterns
Section titled “Common patterns””Detect player building a connection”
Section titled “”Detect player building a connection””<check_value value="event.param3.isclass.connectionmodule"/>Pattern from vanilla tutorial_stations_building.xml:534.
”Filter out venture connectors when counting normal connections”
Section titled “”Filter out venture connectors when counting normal connections””<do_if value="$macro.isclass.connectionmodule and not $macro.isventuremodule"> <!-- normal connection module --></do_if>Pattern from x4ep1_mentor_subscription.xml:9162-9178.
Common gotchas
Section titled “Common gotchas”- ⚠ Connection modules are usually invisible to gameplay logic. They affect station shape and module-adjacency rules but not production / trade. Most mods can safely ignore them.
- ⚠
.isventuremoduleis the only discriminator. No “size” or “type” subclassing — vanilla treats all connection modules uniformly except for the venture flag. - ⚠ Same
not .isventuremodulefilter applies to other module types. Dock areas have the same flag (see Build module andx4ep1_mentor_subscription.xml:9162).
Related
Section titled “Related”- Module — parent abstraction.
- Pier — also “linkage” but for ship docking.
- Venture platform — uses venture-flagged connection modules.
- Station — host.