Arma Reforger · Online Manual

STW Minefields

A server-authoritative minefield system that turns military entrances, roads and bridges into places where “one more shortcut” becomes a very serious decision.

AP & AT minesMilitary-area scanningSafe zonesMap markersPersistence

What it adds

STW Minefields independently generates and owns its minefields on the server. It looks for configured gate, fence and perimeter-aperture objects near military points of interest, then creates terrain-validated placement points. AP mines are placed around those military entrances; AT mines are placed on military roads and, when enabled, bridge decks.

Official mine types

The system uses Arma Reforger’s vanilla M14 and M15 AT mines, plus PMN-4 and TM-62M when Soviet mine support is enabled.

Safety before surprises

Water, steep terrain, configured safe zones and civilian landmarks can reject a placement before a mine is spawned.

Server-owned only

Saving, restoring, map markers and cleanup concern only mines created by STW Minefields—not mines placed by players or Game Masters.

Good to know: STW Minefields does not read Conflict bases or use Conflict-specific APIs. Its “military” decisions come from the editable prefab-name rules in its own target file.

For players and Game Masters

There is no player menu to configure. Mines are part of the scenario, and the server decides whether their map markers are visible. If markers are enabled, they identify STW-owned AP or AT mines; treat them as tactical information, not an invitation to jog across the rest of the road.

Game Masters can continue to use the usual Reforger tools. Manually placed mines remain separate from the system and are never removed or saved by STW Minefields.

Server setup

  1. Install and enable STW Minefields on the server, then start the intended scenario and terrain once.
  2. The mod creates three JSON files under $profile:STW/Minefields/.
  3. Stop the server, back up the files you plan to edit, make valid JSON changes, then restart the server.
  4. Allow the configured generation delay plus scan time. The server log reports the final AP and AT totals and warns if it could not satisfy a quota.
Safety first: do not edit settings or persistence while the server is running. Start with the defaults, test one terrain at a time, and raise mine quotas gradually.

The three files

FilePurpose
STWMinefieldsConfig.jsonMaster switch, mine quotas and types, persistence, markers, relocation, diagnostics and smoke test.
STWMinefieldsScannerSettings.jsonPlacement safety, road/bridge behavior, clustering and scan tuning.
STWMinefieldsScannerTargets.jsonEditable prefab-name rules for entrance targets, military associations and civilian exclusions.

Main settings

Use $profile:STW/Minefields/STWMinefieldsConfig.json for the overall character of the minefield.

SettingDefaultMeaning
enabledtrueMaster switch. Setting it false stops new work but does not remove existing STW mines.
mineModeRANDOMUS, USSR, or RANDOM. Invalid values return to RANDOM.
allowUSSRAPMines
allowUSSRATMines
true / trueAllows PMN-4 and TM-62M selection as fallbacks within the chosen mode.
apMineQuota
atMineQuota
30 / 30Requested AP and AT totals. Fewer may spawn when safe validated points run out.
bridgeAPMineQuota
bridgeATMineQuota
2 / 3Requested portion for bridge candidates; each accepts 0–10.
generationDelayMinutes
restoreDelayMinutes
5 / 2Wait before a fresh scan, and before persistence restoration is attempted.
persistenceEnabled
persistenceIntervalMinutes
true / 15Saves owned mines periodically and restores them on the same scenario and terrain.
relocationEnabled
relocationIntervalHours
false / 8When enabled, removes the previous STW layout and generates a fresh one at the interval.
showMarkers
markerZoomThreshold
true / 1.5Controls server map markers and the zoom threshold used for their display token.
showDebugBeacons
spawnWarningFlags
debugLogging
false / false / falseOptional administrator diagnostics. Keep them off for normal play.
runVanillaSmokeTestfalseRuns the controlled official-mine placement test instead of normal generation.

Current configuration reference

This is the authoritative parameter reference. The legacy enabled field is no longer a current setting; use globalMinefieldsEnabled.

STWMinefieldsConfig.json

SettingDefaultMeaning
globalMinefieldsEnabled
externalAreaMinefieldRequestsEnabled
true / trueEnable global generation and explicitly requested local minefields independently.
mineMode
allowUSSRAPMines
allowUSSRATMines
RANDOM / true / trueMine selection and USSR mine availability.
apMineQuota
atMineQuota
bridgeAPMineQuota
bridgeATMineQuota
30 / 30 / 2 / 3Requested global and bridge totals.
generationDelayMinutes
restoreDelayMinutes
persistenceEnabled
persistenceIntervalMinutes
5 / 2 / true / 15Generation, restoration, and persistence.
relocationEnabled
relocationIntervalHours
relocationPlayerCheckMinutes
false / 8 / 5Periodic relocation and player-check cadence.
showMarkers
markerZoomThreshold
showDebugBeacons
debugBeaconOffsetMeters
spawnWarningFlags
warningFlagOffsetMeters
debugLogging
true / 1.5 / false / 0.5 m / false / 1.5 m / falseMarker, warning, and diagnostic presentation.
runVanillaSmokeTest
smokeTestDelaySeconds
smokeTestPlayerOffsetMeters
false / 10 / 8 mControlled official-mine smoke test.

STWMinefieldsScannerSettings.json

SettingDefaultMeaning
scanTileSizeMeters
entranceZoneRadiusMeters
entranceLateralOffsetMeters
randomizePlacementEachGeneration
500 m / 3 m / 0.9 m / trueScanning and entrance placement.
clusterProbability
maximumMinesPerCluster
clusterRadiusMeters
roadLateralOffsetMeters
0.25 / 3 / 0.65 m / 0.75 mCluster and road placement.
allowBridgeRoadMines
bridgeDetectionHeightMeters
bridgeLateralOffsetMeters
requireMilitaryPoi
militaryPoiAssociationRadiusMeters
allowBurying
true / 0.25 m / 0.4 m / true / 180 m / trueBridge, POI, and burying behavior.
safeZonesEnabled
safeZoneRadius
minimumSpacingMeters
maximumSlopeDegrees
rejectWater
previewPointsPerZone
true / 300 m / 8 m / 25° / true / 8Safety filters and preview density.

Scanner and placement tuning

STWMinefieldsScannerSettings.json tunes where—and how cautiously—the system can place mines.

Keep the safety rails

safeZonesEnabled and safeZoneRadius (300 m) protect configured safe areas. rejectWater and maximumSlopeDegrees (25°) avoid unsuitable ground.

Shape the pattern

minimumSpacingMeters (8 m) limits density. Clustering is controlled by clusterProbability (.25), maximumMinesPerCluster (3), and clusterRadiusMeters (.65 m).

Roads and bridges

allowBridgeRoadMines enables bridge candidates. Road and bridge lateral offsets keep mines within a safer portion of the detected road surface.

For military association, leave requireMilitaryPoi enabled unless you deliberately want entrance rules to operate without a nearby military landmark. militaryPoiAssociationRadiusMeters defaults to 180 m. Use scanTileSizeMeters (500 m) only when terrain scanning needs a measured adjustment.

Target rules: teach it your terrain

STWMinefieldsScannerTargets.json is the terrain-adaptation file. It contains three editable lists, all matched against placed world-object prefab names without relying on a particular game mode.

ListWhat it controls
targetsGate, fence and perimeter-aperture patterns used as potential entrance anchors. Each rule has enabled, matchText, optional exclusions, and a probability from 0 to 1.
militaryPoiTargetsMilitary landmark patterns—such as bunker, barrack, hangar, airfield, checkpoint, radar and fortification—and each one’s association radius.
civilianPoiTargetsLandmarks such as church, village, town and farm that veto nearby placement, each with its own exclusion radius.
Terrain author’s trick: copy a working rule, change only its prefab text, and begin with a modest probability. A value of 0 makes a target rule inert; a value of 1 allows every matching candidate through its rule.

Persistence, reset and smoke test

Persistent data is saved as $profile:STW/Persistence/STW_Minefields_<scenario>_<terrain>.json. On the same scenario and terrain, the system restores its saved mines rather than generating a second layout.

To create a fresh layout, stop the server, back up and remove only the matching STW_Minefields_…json file, then start it again. Do not remove the whole STW persistence folder unless you intentionally want to reset other STW systems too.

Vanilla mine smoke test

Set runVanillaSmokeTest to true for an isolated official-mine placement check. By default it waits 10 seconds and uses the first connected player as an anchor, placing the test formation 8 m east; use a safe, level hardstand. Inspect and trigger the mines manually, then set the option back to false before normal operation.

Captain Sprocket community

Captain Sprocket patch

Captain Sprocket

Arma Reforger server: STW Reforger

Community: https://discord.gg/T2AZp6GGMJ

More STW manuals: STW Online Manuals