WePlay: Pentapods Respect Walls


Prevent pentapods from crossing walls. Stompers and strafers can't just step over your walls anymore: they have to tunnel through, one layer at a time, or find a gap wide enough to fit. WARNING: Not all limbs guaranteed to stay on far side of the wall.

Tweaks
10 days ago
2.1
17
Combat Enemies

Changelog

Version: 1.0.0
Date: 2026-11-11
  Major Features:
    - First release. Pentapods can't step over your walls anymore: stompers and strafers are held back by walls and gates and have to tunnel through, one layer at a time, or find a gap wide enough for their body (3 tiles small, 4 medium, 5 big).
    - Breaking in is handled by a state machine per pentapod: idle -> approach -> survey -> tunnel or enter.
    - Gapped walls and dragon's teeth keep their openings; only solid wall runs push pentapods back.
    - Only pentapods near walls are watched, so the cost scales with how much wall you have.
    - Gleba only by default, with a setting to guard walls on every surface for modded pentapods.
  Features:
    - Map settings: wall check interval, wall standoff distance, gates count as walls, guard walls on all surfaces, ram damage, breach diameter, slide along walls, loiter time before attacking.
  Scripting:
    - The /prw-* test commands are now behind the "Debug commands" startup setting, off by default.
Version: 0.10.5
Date: 2026-11-11
  Info:
    - Added the mod thumbnail.
    - New mod summary and description.
Version: 0.10.4
Date: 2026-11-11
  Scripting:
    - Added /prw-pose [enemy] [distance] [thickness] for screenshots: builds a straight wall to your right and spawns a pentapod standing calmly on the far side. It's on the neutral force and ignored by this mod, so it doesn't attack. Defaults: big stomper, 5 tiles out, 1-thick wall. /prw-clear removes it.
Version: 0.10.3
Date: 2026-11-11
  Scripting:
    - /prw-arena-many now takes the wall thickness first: /prw-arena-many [thickness] [enemy|mix] [radius]. For example, /prw-arena-many 3 gives the default mix against a 3-layer ring.
Version: 0.10.2
Date: 2026-11-11
  Bugfixes:
    - Fixed pentapods getting stuck in their finished tunnel for a while before going through. They walked in at an angle from wherever they were standing and scraped the tunnel edges.
  Changes:
    - Entering through a lane now lines up first: the mouth (a few tiles out, centred), then the entrance, then just past the last layer, then on to attack.
    - Lane rails: a pentapod that bumps the tunnel sides while entering is nudged up to a quarter tile toward the lane's centre line each time.
Version: 0.10.1
Date: 2026-11-11
  Changes:
    - Added a Survey state: idle -> approach -> survey -> tunnel or enter. Survey is an instant decision made on reaching the wall and again after every layer broken: if the pentapod's lane is clear it enters; if a nearby gap fits it (one you left, or one another pentapod just dug) it goes through that instead; otherwise it tunnels through the next layer.
    - Tunnel now breaks one layer at a time and hands back to Survey after each.
    - The gap check moved from Approach into Survey, so it's re-checked after every layer instead of only once.
  Bugfixes:
    - Fixed open ground past the end of a wall piece being taken for a gap, which could send a pentapod walking along the outside of the wall. A gap now needs wall on both sides.
Version: 0.10.0
Date: 2026-11-11
  Major Features:
    - Rewrote how pentapods break in as a state machine: idle -> approach -> tunnel -> enter.
    - Approach: the pentapod picks one lane into the wall, exactly as wide as its body (3 tiles small, 4 medium, 5 big), straight in from the outside. It tries the nearby walls as starting points and keeps the lane with the fewest walls to dig through, so at corners it digs through a side instead of along it. It walks to the lane's mouth and rams nothing on the way. If a nearby opening already fits it, it takes that instead.
    - Tunnel: the pentapod rams only walls inside its lane, nearest layer first, and steps in as layers clear. Splash damage only hits other walls in the lane. If nothing breaks for 15 seconds, it picks a new spot.
    - Enter: once the lane is clear, it walks straight through and attacks what's behind. It only counts as through once its body is past the deepest wall of the lane.
    - After getting through, a pentapod won't start digging just from hanging around walls, so it doesn't tunnel back out of your base.
  Changes:
    - A hole exactly as wide as the pentapod now fits with about half a tile of room to spare (it needed to be lined up perfectly before). A hole one tile narrower still doesn't fit.
    - Removed the separate breach magnet, wall locking, digging direction and weakest-wall rules; the state machine replaces them.
  Scripting:
    - /prw-debug now shows each arena pentapod's state, how long it's been in it, and its lane (width and walls left). Arena chat also reports every state change.
Version: 0.9.8
Date: 2026-11-11
  Bugfixes:
    - Fixed pentapods tunnelling along a thick wall instead of through it. The digging direction could be set toward a wall off to the side while sliding, which lined the tunnel up with the wall itself; each new breach then pulled it further along.
  Changes:
    - The digging direction is now taken from the wall nearest the pentapod's body and snapped to straight north, east, south or west, so it always points into the wall.
    - When a guided pass through a hole finishes without getting blocked, the pentapod forgets its tunnel, digging direction and target wall, so it doesn't keep digging from the inside.
Version: 0.9.7
Date: 2026-11-11
  Changes:
    - Pentapods settle on a spot faster: new "Loiter time before attacking" map setting, default 0.5 seconds (was a fixed 2 seconds).
    - Before its tunnel exists, a pentapod sticks with the first wall it picks until that wall breaks or it moves out of reach, instead of spreading hits while it drifts.
  Scripting:
    - Added /prw-arena-many [enemy|mix] [thickness] [radius]: a wall ring with a pentapod on each side. Default mix: big stomper (north), medium stomper (east), small stomper (south), big strafer (west).
Version: 0.9.6
Date: 2026-11-11
  Changes:
    - Pentapods now dig a tunnel through thick walls: a corridor as wide as their body, starting at the first wall they break and running in their digging direction. Inside it they clear the nearest layer first (outer, then middle, then inner), so they no longer hit inner walls they can't get to yet. Walls outside the corridor come after.
    - The tunnel is kept while the pentapod keeps breaking walls, and forgotten after 10 seconds without a new break.
Version: 0.9.5
Date: 2026-11-11
  Bugfixes:
    - Fixed ram damage getting spread across many walls before the first breach (0.9.3 made "deepest wall" outrank "lowest health" everywhere, and small shifts in position changed which wall was deepest). Away from a breach, the lowest-health wall is rammed first again; at a breach, the deepest wall still comes first.
Version: 0.9.4
Date: 2026-11-11
  Bugfixes:
    - Pentapods circling thick walls a few tiles off still weren't attacking. Loitering is now detected out to 4 tiles past ramming reach, and a loitering pentapod that isn't in reach yet is ordered to attack the nearest wall, which pulls it in.
  Scripting:
    - Added /prw-debug: toggles a status readout every 2 seconds for each arena pentapod (distance to the nearest wall, ramming reach, engaged, guided, heading to a breach, times held back, rams).
Version: 0.9.3
Date: 2026-11-11
  Bugfixes:
    - Fixed pentapods getting stuck widening a breach in thick walls instead of digging deeper. Splash damage kept the side walls of the cut weakest, so they kept getting picked.
  Changes:
    - Pentapods remember their digging direction (toward the wall they first pushed on). Among breach walls, the deepest wall in that direction is rammed first, then lowest health.
    - The breach magnet now heads for the newest breach in range (the deepest point of the cut) instead of the nearest, so pentapods step into the hole as they dig.
Version: 0.9.2
Date: 2026-11-11
  Bugfixes:
    - Fixed pentapods circling walls that are too thick for them to step over (for example 3 layers) without ever attacking. The game routes them along such walls instead of into them, so they never pushed against the wall.
  Changes:
    - A pentapod that stays within ramming reach of walls for 2 seconds now starts attacking them even if it isn't pushing into them: it rams the weakest wall in reach and looks for nearby openings and breaches.
Version: 0.9.1
Date: 2026-11-11
  Features:
    - Opening magnet: a pentapod pushing on a wall looks at the ends of wall runs within 12 tiles and measures the opening next to each. If one is wide enough for its body, it's walked through: to just outside the opening, through the middle, then on to attack what's behind. Only local openings count; there's no base-wide search.
  Changes:
    - If a guided pentapod gets blocked partway through, it won't be guided again for 5 seconds, so it doesn't keep retrying a gap it can't fit.
    - Breaches still expire after 60 seconds; there's no long-term memory of holes.
Version: 0.9.0
Date: 2026-11-11
  Features:
    - Wall friction: a pentapod pushing against a wall only keeps part of its sideways movement. New "Slide along walls" map setting (default 35%).
    - Breach magnet: a pentapod pushing on a wall heads for any breach within 12 tiles. If the breach is already wide enough for its body it's walked straight through; otherwise it goes there and widens it.
  Changes:
    - Less ice-skating along walls, so pentapods stay near the spot they're breaking.
Version: 0.8.2
Date: 2026-11-11
  Bugfixes:
    - Fixed openings in a wall line being closed off by the standoff distance around the run ends. The ends of a straight run now only get half the pentapod's body width, so an opening is passable once it's as wide as a breach would need to be: 3 tiles for small, 4 for medium, 5 for big. Wall faces and corners keep the full standoff.
Version: 0.8.1
Date: 2026-11-11
  Scripting:
    - Added /prw-arena2 [enemy] [radius] and /prw-arena3 [enemy] [radius]: the test arena with 2-layer and 3-layer wall rings.
Version: 0.8.0
Date: 2026-11-11
  Changes:
    - Breaches now have to be wide enough for the pentapod's body: 3 tiles for small, 4 for medium, 5 for big (6 for behemoths from other mods). Narrower holes stay blocked.
    - Pentapods keep ramming at a breach that's too narrow, going for the walls at its edges, until it's wide enough.
    - A guided pentapod that gets blocked (hole still too narrow) goes back to ramming instead of waiting.
  Bugfixes:
    - Fixed pentapods that were already inside a wall's standoff band being able to push through narrow gaps. They can now move away or along, but not deeper.
Version: 0.7.0
Date: 2026-11-11
  Features:
    - Gapped walls and dragon's teeth keep their openings: only walls in a solid run (another wall directly next to them) get the standoff distance. Lone walls only block their own tile.
    - Splash ram damage: each ram also hits walls near the rammed one for 50% damage.
    - New "Breach diameter" map setting (1, 3, 5 or 7 tiles, default 3): how far the splash reaches, so how wide a hole a ram tends to open. The breach area where standoff is dropped grows with it.
  Changes:
    - Pentapods prefer walls at the edge of a fresh breach, so they widen an existing hole instead of starting a new one.
Version: 0.6.0
Date: 2026-11-11
  Changes:
    - Ramming now hits the weakest wall within reach of the pentapod's body (lowest health first, nearest as a tiebreak), instead of a locked target. Damage concentrates on one spot until it breaks, even while sliding. Reach is longer for bigger pentapods.
    - The game's own attack order (the stomping legs) is aimed at the same wall being rammed.
    - When a wall breaks next to a pentapod that was pushing on it, the pentapod is walked to the hole, through it, and on to attack what's behind, as one chained order. It doesn't ram other walls while doing this.
    - Removed wall locking from 0.5.1.
  Bugfixes:
    - Fixed pentapods not damaging walls after sliding away from the wall they had locked onto.
    - Fixed pentapods sliding along the wall after breaking through instead of going through the hole.
Version: 0.5.3
Date: 2026-11-11
  Changes:
    - Brought back sliding: pentapods held back by a wall slide along it again instead of holding one spot. Ramming still goes to the wall they're locked onto while it's within reach.
  Bugfixes:
    - Fixed pentapods locking onto the next wall over while going through a breach. Inside a breach they no longer pick new walls to attack, and slide into the hole instead.
    - Fixed the glitchy look of pentapods being snapped back to the same spot while ramming.
Version: 0.5.2
Date: 2026-11-11
  Balancing:
    - Ram damage default raised from 40 to 250. A small pentapod now breaks a normal stone wall in 2 hits, medium and big ones in 1.
Version: 0.5.1
Date: 2026-11-11
  Changes:
    - Pentapods now lock onto one wall (the nearest one when they're first held back) and keep ramming it until it breaks, instead of spreading damage across whichever wall blocked them last.
    - While locked on a wall, a pentapod holds its position instead of sliding along the wall.
    - Ramming continues while a pentapod is locked on a wall, even when it stands still.
    - After breaking its wall, a pentapod is sent through the gap to attack whatever is behind it.
    - A pentapod stays locked while it's within reach of its wall, and unlocks 2 seconds after leaving reach.
  Scripting:
    - /prw-arena reports when the pentapod breaks its wall and pushes through.
Version: 0.5.0
Date: 2026-11-11
  Features:
    - Pentapods now ram walls: a pentapod held back by a wall deals physical damage to it up to twice a second, so they can break through instead of only stomping what's behind.
    - New "Ram damage" map setting (default 40). Medium pentapods deal double, big ones four times as much. 0 turns ramming off.
    - When an enemy breaks a wall, the spot becomes a breach for 60 seconds: the standoff distance is dropped within 4 tiles, so pentapods can push through a one-wall hole. Walls still block on their own.
Version: 0.4.1
Date: 2026-11-11
  Bugfixes:
    - Fixed pentapods getting stuck on wall corners. A pentapod pushing into a wall now slides along it, keeping whatever part of its movement doesn't go into the wall, so it can move along walls and around corners.
Version: 0.4.0
Date: 2026-11-11
  Features:
    - Added a surface check: by default only walls on Gleba are guarded.
    - New "Guard walls on all surfaces" map setting for mods that put pentapods on other planets or surfaces. Changing it rebuilds the wall list right away.
  Scripting:
    - /prw-arena walls are always guarded, so the arena works on any surface.
Version: 0.3.0
Date: 2026-11-11
  Changes:
    - Only pentapods near walls are watched now. The mod keeps a list of chunks with walls or gates and scans them plus one chunk of margin every 30 ticks, spread evenly across ticks. Cost scales with how much wall you have instead of how many pentapods exist.
    - Pentapods that leave the wall zone are forgotten.
    - A pentapod pushing into a wall is now placed just short of where it entered, instead of all the way back to the last check. Much less herky-jerky.
    - Wall check interval default lowered from 10 to 5 ticks.
  Features:
    - New "Wall standoff distance" map setting (default 2 tiles): keeps pentapod bodies back from walls so fewer legs reach over.
  Scripting:
    - /prw-stats now shows walled chunks, zone chunks, and watched pentapods.
    - Added /prw-rescan to rebuild the list of walled chunks.
Version: 0.2.0
Date: 2026-11-11
  Changes:
    - Space Age is now a required dependency.
    - Removed the collision-mask approach from 0.1.x. In testing, stompers still walked straight over walls with it.
  Features:
    - Walls are now enforced by script. Each check, a pentapod's body movement is tested against walls and gates; if it passed through one, it's put back where it was and ordered to attack that wall.
    - Walls and gates owned by the pentapod's own force are ignored.
    - New map settings: wall check interval (default 10 ticks) and whether gates count as walls.
  Scripting:
    - Added /prw-stats to show tracked pentapods and how often walls have held them back.
    - /prw-arena now reports when a pentapod is first held back and how many times in total.
Version: 0.1.2
Date: 2026-11-11
  Changes:
    - Updated for Factorio 2.1.
Version: 0.1.1
Date: 2026-11-11
  Changes:
    - Renamed the mod to "WePlay: Pentapods Respect Walls" (internal name WePlayPentapodsRespectWalls).
    - Test commands renamed to /prw-arena and /prw-clear.
Version: 0.1.0
Date: 2026-11-11
  Features:
    - Added a custom "weplay_pentapod_wall" collision layer to all walls, and optionally gates.
    - Stomper and strafer feet can't land on walls (startup setting).
    - Stomper and strafer bodies collide with walls (startup setting).
    - Applies to every spider-unit enemy, including ones from other mods. The player's spidertron is not affected.
  Scripting:
    - Added /prw-arena [enemy] [thickness] [radius] test command: builds a wall ring around you, spawns a pentapod outside it, and reports breaches and wall damage in chat.
    - Added /prw-clear to remove arena walls and pentapods.