07 - Modules

Updated 4 days ago

Modules

Modules are parts that are fitted to a drone. There are five so far: the scanner, the lamp, the teleport receiver, the tow and the turret. More come with later updates.

The ship's stock

A bought module goes into the ship's stock. The stock belongs to the whole crew and is not visible in the ship. A module in stock does nothing until it is installed on a drone.

  • modules (or list modules) lists every module with its price, how many are in stock and which drones carry it.
  • module buy <name> buys one into the stock with the crew's credits. The same module can be bought more than once.

These two commands work on any drone and ignore the drone's control lock. module buy d2 <name> is accepted too; the drone number is ignored.

A module name can be shortened to its first 3 or more letters when only one module starts with them.

Installing and removing

  • module install d<n> <name> moves a module from the stock onto drone n. This is free.
  • module remove d<n> <name> (or module uninstall) moves it back into the stock.
  • help module explains the bay in game.

With a drone selected, module install <name> works without the drone number. The drone number can also go at the end (module remove <name> d2), or in front (d2 module install <name>).

modules and module work the same in front of a verb (modules buy <name>). module list lists the modules and module help shows the help.

The drone must be on the ship and must not be doing a task. A disabled drone can get modules installed and removed. Installing and removing follow the drone's control lock.

Slots

A drone has six places for modules and carries at most 4 modules in total. It holds each module once. The lamp takes no slot and doesn't count towards the 4.

Slot Takes
Four corners (front left, front right, back left, back right) General modules. The first free corner is used.
Top The turret module only.
Back, below the reset button The tow module only.

The turret and the tow module each count as one of the 4.

Scanner

Drone scan module
Drone scan demonstration

The scanner fits in a corner slot. It costs 150 credits unless the host changes ScannerPrice in the Modules config section.

  • scan counts the scrap in the room the drone is in, like collect scrap uses that room. Outside, it counts the scrap around the drone. It takes no room number.
  • The drone reports how many items it found, their total value and weight, and the most valuable item.
  • It counts scrap lying in the room. Scrap that a player or a drone holds, or that is already on the ship, doesn't count. Two-handed scrap and the apparatus still in its machine count, because a player can take them.
  • scan works while the drone does something else, for example while it flies or collects. It follows the drone's control lock.
  • A drone's scanner needs 2 seconds between two scans. A drone without a scanner says so.

Every scan sends out a sonar pulse that players near the drone can see: a grid sweeps outward over the walls and floors around the drone for about 20 m. Scrap in its path glows cyan, equipment (flashlights, shovels, keys) yellow, turrets and landmines orange, and enemies red. Doors, steam valves, the breaker box, the entrances and fire exits, ladders and the Mineshaft elevator glow green; a locked door or a closed secure door glows purple. The pulse only reaches what the drone can see: it stops at walls and closed doors and goes through open doorways. What the pulse has passed is darkened so the grid stands out. In the Effects config section each player can turn the darkening off with SonarDarkening, turn the whole pulse off with SonarPulse, set how far away they still see a pulse with SonarViewDistance (40 m by default), and lower SonarQuality from High to Medium or Low if the pulse makes their game stutter (the pulse's edges at walls get coarser); these only change their own screen.

Sometimes a scan uncovers a hidden scrap item. The first scan of a room each round has a 10% chance (the host sets it with ScanBonusChance); scanning the same room again doesn't try again. The item is one of the moon's own scrap, usually one of the cheaper ones and now and then a valuable one, and appears somewhere in the room: "Scan found a hidden Gold bar (54)!". It is counted in that scan. Scans outside never uncover anything.

rooms lists the last scan of every room this round where scrap was found, with how long ago it was scanned, then how many scanned rooms were empty and the total. The list is shared by the whole crew and works on any drone, also one without a scanner or a disabled one. With no drone selected, any drone answers. It is what a scan found then: scrap picked up later still shows until the room is scanned again. The list is emptied when the ship leaves the moon. Scans outside are reported but not listed, because outside has no room numbers.

Lamp

The lamp costs 100 credits unless the host changes LampPrice in the Modules config section. It takes no slot, so a drone with 4 other modules can still get one. It has no part of its own on the drone: the light shines from the tube next to the status light.

Command What it does
lamp on / lamp off Switch the lamp on or off.
lamp Switch the lamp to the other state.
  • The lamp works while the drone does something else and doesn't stop its task. Switching it follows the drone's control lock. Every player sees the light.
  • A drone without the lamp says so and how to buy one.
  • The lamp is off when the drone is bought or the game is loaded. It goes off when the drone is disabled and stays off after a reset. It also goes off when the lamp is removed or the host switches modules off.

Teleport receiver

The teleport receiver costs 300 credits unless the host changes ReceiverPrice in the Modules config section. It takes a corner slot and shows as a glowing receiver head on that corner. It has no commands of its own.

  • It can only be bought once the crew owns the ship teleporter. A teleporter in storage counts.
  • The ship teleporter button only teleports drones that have it, unless the host turns on TeleportWithoutReceiver in the Modules config section.
  • A drone with it that is off the ship when the ship really leaves (about 13 seconds after the lever) is teleported to the ship instead of being lost. This also happens at the midnight autopilot and after a crew wipe, and for a disabled drone.
  • That costs one reset charge. With no charges left the drone is lost, like a drone without the receiver.
  • The drone keeps its scrap on any teleport. After the ship teleporter button the scrap stays under the drone on the ship: drop it with drop all and it counts as collected. After the take-off teleport the drone drops it on the ship by itself, so it isn't lost when the ship leaves the moon.

Tow

The tow costs 200 credits unless the host changes TowPrice in the Modules config section. It only fits the back slot and shows as a winch with a magnetic plug on the drone's back.

Command What it does
tow Fly to the most valuable two-handed item or body in this room (outside: around the drone) and hook it to the tow.
tow d<n> Fly to disabled drone n and hook it to the tow. Inside it must be in this drone's room or within 15 m; outside within 50 m.
tow (while towing) Drop only what hangs from the tow, right where it is. The cargo and the running command stay.

When tow finds nothing to tow but a disabled drone may be towed, it asks: "Nothing to tow here. Tow disabled drone 3 instead? (y/yes or n/no)". It offers the nearest such drone in this drone's room, else the nearest within 15 m inside or 50 m outside; y tows it like tow d3. Drones further away aren't offered, so a drone never crosses the map by itself.

  • The tow carries one two-handed item or a body at a time, next to the normal cargo. Its weight doesn't count towards the cargo limit.
  • The magnetic plug sticks to the towed item and a cable runs to the winch. The item swings behind the drone while it flies.
  • cargo and status show what the drone tows. drop drops the item picked up last, which can be the towed one; drop all and deliver drop the towed item too. On the ship it counts as collected.
  • With a towed item, deliver flies a bit further into the ship, away from the hangar door, waits a moment so the item hangs still, drops everything and goes back to the drone's own spot.
  • collect scrap still skips two-handed items. On a drone with the tow it says to use tow.
  • The towed item drops at take-off like the rest of the cargo. A drone with the teleport receiver keeps it on a teleport.
  • When the tow is removed, or the host switches modules off, the drone drops the towed item.

Towing a disabled drone

  • tow d<n> tows disabled drone n. It takes the whole tow, so nothing else can be towed at the same time; the normal cargo stays. Its weight doesn't count.
  • It refuses a drone that isn't disabled, is already towed by another drone or is already on the ship, and the drone itself.
  • The towed drone hangs from the cable by its back. cargo and status show it ("Towing: drone 3.").
  • drop, drop all and deliver let go of it, and it falls to the floor. deliver flies a bit further into the ship first, like with a towed item. A drone dropped in the ship stays disabled; it rides along at take-off and gets the overnight repair like any drone on the ship.
  • The towing drone lets go of it at take-off and before any teleport (also with the teleport receiver), and when the tow is removed or modules are switched off. It also comes loose when either drone is disabled, repaired or lost, or when the towed drone is teleported. Off the ship it then follows the normal rules for a disabled drone: its own teleport receiver can still bring it home, otherwise it is lost when the ship leaves.
  • The tow isn't saved: after loading a save nothing is towed.

Turret

The turret costs 450 credits unless the host changes TurretPrice in the Modules config section. It only fits the top slot and shows as a gun on a swivel mount on top of the drone.

Command What it does
turret on / turret off Arm or disarm the turret.
turret Switch it to the other state.
turret reload On the ship: fill the turret from the ship's ammo stock.
turret status Show whether it is armed, the bursts loaded and the ammo in stock.
module buy ammo Buy 5 bursts for the ship's stock (200 credits).
  • While armed, the turret shows a dim green laser along its barrel (the vanilla turret's beam, in green, best seen in fog) and sweeps slowly left and right while it looks for a target. It fires bursts at the nearest enemy that can die, in sight and within 15 m (it keeps an enemy it's locked on to up to 18 m away, and only picks another once it loses that one), on the drone's side of the entrance (inside or outside).
  • When it finds an enemy it turns towards it, plays the vanilla turret's detect sound, and the laser turns bright and ends on the enemy. After 1.5 s of lock-on (like the vanilla turret) it fires a burst that streams for 1.5 s with the vanilla turret's muzzle flash (bullet sparks and a warm flickering light), rests half a second, and locks on again.
  • The enemy is hit once per burst, at its start; the stream follows the enemy while it moves.
  • It never aims at players. A player who stands in the stream, or walks into it, is still hit for 50 damage, at most once per burst, so two hits kill. Gunfire draws enemies.
  • One burst does 3 damage to the enemy. A Hoarding bug or Snare flea dies in one burst; a Thumper, Bracken, Bunker spider or Nutcracker in two. It also fires at enemies it can't finish with the bursts it has left, so arm it with care. Enemies that can't die (Coil-head, Jester, Spore lizard, ...) are ignored.
  • The enemy counts the hit as coming from the player nearest the drone, or else from the player who armed the turret. It may go after that player.
  • The turret holds 5 bursts. A bought turret comes with 5 bursts: they go into the ship's ammo stock, and installing the turret loads it from that stock. More ammo is bought into the stock with module buy ammo, 5 bursts for 200 credits (the host sets the price with TurretAmmoPrice). turret reload only takes what the turret is missing, and only on the ship.
  • Arming and reloading work while the drone does something else and don't stop its task. They follow the drone's control lock; turret status works for everyone.
  • It holds fire on the ship, while the drone is disabled and while it is towed. It is off after buying, after loading a save and when the drone is disabled.
  • Removing the turret puts its loaded bursts back in the ammo stock.
  • The host sets the damage with TurretBurstDamage (enemies) and TurretPlayerDamage (players) in the Modules config section. Below 50 player damage the game leaves a player who would die at 5 health once, so it takes more hits.

Saving and host settings

The stock, the installed modules, the turret ammo stock and each turret's loaded bursts are saved with the fleet. A lost drone takes its installed modules with it. Firing the crew empties the stock and the ammo stock.

The host can switch modules off in the Modules config section. Installed modules then stay saved but do not work and are not shown. All module commands are blocked until modules are enabled again. While modules are off, the ship teleporter button teleports every drone.

TeleportWithoutReceiver in the same section (off by default) lets the ship teleporter button teleport drones without the teleport receiver too; they drop their cargo where they are.