Skip to content

DA Fill

Tops up trade stations, shipyards, and wharfs with wares at adjustable intervals. Fixes vanilla’s tendency to leave stations sitting half-empty when the faction economy stalls. Also handles ship-mod (paint / tuning) top-ups for the faction ship pool. Fills operate under per-faction budget accounting — poor factions fill less; rich factions fill more.

DA Fill main menu — 15 options + 2 sub-menu links

Layout:

  • Top section (DA Fill Options) — 15 configurable fields covering percentage thresholds, ship-mod toggles, credit limiting, Xenon protection, and debug.
  • Bottom section (DA Fill Menus) — 2 sub-menus for per-faction toggling and statistics viewing.

Every Fill Interval minutes DA walks each faction’s stations and applies the following logic per ware slot:

For trade stations (see md/deadairdynamicuniverse.xml:4158,4206):

  • If current stock > Max Trading Station Ware % of capacity → remove wares down to Adjusted Max Trading Station Ware %. (Prevents over-fill.)
  • If current stock < Min Trading Station Ware % of capacity → add wares up to Adjusted Min Trading Station Ware %. (Restocks near-empty slots.)

For shipyards and wharfs (line 4289):

  • Only the “add” path applies (shipyards never over-fill in a way that DA needs to correct).
  • If current stock < Min Shipyard/Wharf Ware % → add up to Adjusted Min Shipyard/Wharf Ware %.
  • Xenon exception: if Xenon Shipbuilding Setting is on AND the yard is Xenon-owned, the thresholds get forced to 25 / 25 regardless of your slider values. Keeps Xenon shipyards viable as a threat even if you set aggressive low thresholds.

Budget accounting:

  • Each faction has a running Credit balance tracked in $DAFillFactionAccounts.{faction}. Trade wares generated at production feed the balance; every add-ware operation subtracts AmountAdded × ware.averageprice from it.
  • If Trading Station Credit Limit is on (default), an add operation only takes as much as the faction can afford. Poor factions fill less.
  • If Trading Station Credit Limit is off, DA fills up to the desired amount regardless — “free wares” mode.
SettingDefaultEffect
Enable FillEnabledMaster toggle for the whole system.
Fill Interval60 minHow often DA runs a fill pass across all faction stations. Lower = more responsive economy, higher CPU cost per tick.

Four sliders control the fill target for trade stations. The gap between Min and Adjusted Min (or Max and Adjusted Max) defines the buffer band DA operates on.

SettingDefaultEffect
Max Trading Station Ware %90 %If a ware exceeds this % of capacity, DA removes wares. Set to 100 to never remove.
Adjusted Max Trading Station Ware %75 %Removal target — wares get pulled down to this level when the max threshold trips.
Min Trading Station Ware %5 %If a ware is below this % of capacity, DA adds wares.
Adjusted Min Trading Station Ware %10 %Add target — wares get topped up to this level when the min threshold trips.

Default behavior in one line: anything below 5% gets pushed up to 10%; anything above 90% gets pulled down to 75%. Between 5% and 90%, DA leaves it alone.

Same shape, add-only:

SettingDefaultEffect
Min Shipyard/Wharf Ware %5 %If a shipyard/wharf resource is below this % of capacity, DA adds wares.
Adjusted Min Shipyard/Wharf Ware %10 %Add target for shipyards/wharfs.

Whether DA distributes ship equipment mods along with regular wares.

SettingDefaultEffect
Enable Fill Ship ModsEnabledDistribute ship equipment mods (engine tunings, shield mods, weapon mods) to faction shipyards.
Enable Fill Fleet Ship ModsEnabledExtend distribution to fleet-tier ships, not just capital ships.
Enable Fill Ship Paint ModsEnabledDistribute paintmods so faction ships have visual variety.
SettingDefaultEffect
Trading Station Credit LimitEnabledCap add operations by the faction’s own credit balance (see Budget accounting). Off = fills regardless of budget.
Xenon Shipbuilding SettingEnabledForce minimum 25 % fill on Xenon shipyards/wharfs even if your sliders are lower. Keeps Xenon viable as a threat. Off = Xenon fills by the same rules as other factions.
Enable Fill DebugDisabledVerbose [FILL] log lines.
  • Fill Faction Menu — per-faction on/off toggles for Trading Station and Ship Building Station fills. Individual factions can be excluded entirely.
  • Fill Statistics Menu — three read-only report sections: Faction Account balances, Wares Added/Removed totals, Ships Modified counts.

Only 8 of the 15 top-level fields are in the Configuration Presets scope: Enable Fill, Fill Interval, three Ship Mod toggles, Trading Station Credit Limit, Xenon Shipbuilding Setting, Enable Fill Debug. The 7 percentage sliders are not in preset scope — switching between built-in presets keeps their values unchanged.

You can visit any trade station and reliably find wares available (unlike vanilla where stations often sit at 5-10 % fill for hours). Faction economies stay responsive; player-owned stations still have to compete on price. Rich factions (Riptide Rakers, Ministry of Finance in the observed save) fill more aggressively than poor ones (Alliance of the Word, Yaki), matching the Faction Account balances you can see in the statistics menu.