Skip to content
Walter Hardeman edited this page Feb 8, 2017 · 5 revisions

Remote Mining Documentation

Parameters

  • REMOTE_HAULER_MULTIPLIER parameter

Absolute maximum number of haulers spawned per source in a remote mining room. This should be increased when you have finished road construction. Hauler routes will then be calculated based on the estimated mining rate and distance from delivery. Default: 1

  • REMOTE_HAULER_REHOME parameter

May haulers choose a storage room closer than their spawn room for delivery? Default: false

  • REMOTE_HAULER_MIN_WEIGHT parameter

Small haulers are a CPU drain. Constrain how small hauler creeps may be. Default: 800

  • REMOTE_WORKER_MULTIPLIER parameter

Number of workers spawned per remote mining room. Default: 1

Memory commands

  • Task.mining.carry(<flagRoomName>, <change>) command

Changes a mining room's carry capacity and echos the current bias. Omit the argument to only retrieve the setting.

  • Task.mining.storage(<flagRoomName>, <storageRoomName>) command

Requires REMOTE_HAULER_REHOME: true. New haulers for the specified goal will deliver resources to the specified room. Example commands and output:

 > Task.mining.storage("W74S42")
 Task.mining: room W74S42, no custom storage destination

 > Task.mining.storage("W74S42", "W74S43")
 Task.mining: room W74S42, now sending haulers to W74S43, (was undefined)

 > Task.mining.storage("W74S42")
 Task.mining: room W74S42, sending haulers to W74S43

 > Task.mining.storage("W74S42", false)
 Task.mining: room W74S42, cleared custom storage room (was W74S43)

Diagnostic commands

  • Task.mining.strategies.hauler.maxWeight(<roomName>, <storageRoomInstance>, <livingHaulerList>) command

Calculate the total maxWeight budget for a hauler route. <livingHaulerList> is optional and if omitted existingCarry will be 0.

  • Memory.debugTrace.mining=maxWeight memory command

Provides logging of maxWeight calculations. (requires TRACE: true, DEBUG: true parameters).