Dawn of War 4 Build Order Planner and Match Timer
This Dawn of War 4 build order planner replays your opening second by second from the Medium 400R/30P start, applies the 10/33/66% Requisition decay tax, upkeep and faction discounts, flags the first unaffordable or locked step, and runs a live audio timer.
Opening Steps (13)
Queue Lanes & Time Cursor (@ 0:00)
How the Planner Calculates: 1-Second Discrete-Event Model
Both this interactive build order calculator and its live build order timer run on the exact TypeScript engine that generates every static table on Build Orders across 901 integer seconds (0:00 to 15:00 by default). Rather than multiplying step intervals by rough averages, the engine tracks floating-point resource balances per second and rounds values only at display time (0 decimal places for bank balances and costs, 1 decimal place for per-minute rates).
Inside every integer second t, 5 deterministic phases execute in fixed order so simultaneous captures, building completions, research queues, and unit spawns never race or double-count:
- Accrue Fractional Interval Income: Over
(t - 1, t], the engine addsnetR / 60,netP / 60,netD / 60, andwaaaghPerMin / 60calculated from the entities that were already completed and alive at secondt - 1. - Process Scheduled Completions: Structures finishing at
tflip online (contributing Listening Post income, Power Generator output, production queues, or connected Noosphere points); stage upgrades and Space Marine attachments unlock their tech gates; Tomb Citadel IV opens its 2nd unit queue; researches mark active modifiers; and trained squads exit their building to begin deducting continuous upkeep and occupying population. - Apply Timeline Captures & Declarations: Point-capture arrivals start a 15s capture timer (halved to 8s for Space Marines once 60s Take And Hold finishes), followed by a 5s Power Node initialisation delay (10s for Adeptus Mechanicus); Ork Waaagh! timeline declarations update
st.waaagh = max(st.waaagh, declaredValue). - Dispatch Queued Decisions: All user orders with
plannedT <= tevaluate in(plannedT, sequence)order. WithautoShiftenabled, an order missing funds or an unfinished prerequisite waits at the head of the queue until the earliest second every condition clears, reporting the exact delay (for example,waits +23s). WithautoShiftturned off (strict mode), an infeasible order is flaggedBLOCKEDat its planned second without deducting resources so downstream steps still test cleanly. - Recompute Rates & Snapshot Ledger: Income, marginal tax, upkeep, population, Waaagh!, Citadel tier, Power Crucible count, and Noosphere level are recalculated and written into
ledger[t]for the scrubbable timeline cursor.
Untaxed HQ Base vs Marginal Point Decay Tax Formula
Medium Headquarters income—310.0 Requisition per minute and 15.0 Power per minute from Chapter Keep, Mega Bossbunka, or Dominus Forgeshrine—bypasses the resource decay tax completely. Only gross income produced by captured Requisition Points, Listening Posts (130 / 195 / 260 R/min), Power Nodes (15 P/min), and Power Generators (10 P/min each) enters the marginal bracket calculation documented on Economy & Upkeep:
| Resource Stream | Bracket 1 (0%) | Bracket 2 (10%) | Bracket 3 (33% / 30%) | Bracket 4 (66% / 50%) |
|---|---|---|---|---|
| Gross Node Requisition (/min) | 0 to 300 R/min (0%) | 300 to 500 R/min (10%) | 500 to 800 R/min (33%) | Above 800 R/min (66%) |
| Gross Node Power (/min) | 0 to 90 P/min (0%) | 90 to 105 P/min (10%) | 105 to 120 P/min (30%) | Above 120 P/min (50%) |
Net income clamps at a strict 0.0/min floor (Net R/min = max(0, HQ_R + GrossNode_R - Tax_R - Upkeep_R)). Starting squads listed in faction data already deduct upkeep from second 0: Space Marines open at +286.0 R/min (-24 Infiltrator), Orks at +280.0 R/min (-28 Slugga Boyz, -2 Gretchin), Necrons at +13.0 D/min (-1 Warriors, -1 Scarabs), and Adeptus Mechanicus at +303.0 R/min (-7 Datasmith).
Four-Faction Exclusive Engine Subsystems
Dedicated rule modules inside src/lib/engine/rules/ isolate all 4 faction economies and tech gates so discounts never bleed across armies:
- Space Marines (Space Marines Build Orders): Per-event
nearHqtoggle cuts Drop Pod deploy times inside Chapter Keep's aura (Chapel Barracks & Sanctum 40s to 20s, Armoury 50s to 30s, Thunderhawk Relay 30s to 10s), while Strategium's 120s Lightning Deployment research applies fast deploy times everywhere. Gladiator Valiant upgrades consume an active Gladiator Reaper for +100 R / +20 P over 15s with 0 extra population. - Orks (Waaagh! Mechanics · Orks Build Orders): Construction-point structures progress in parallel at 1 point/second. Unspent Waaagh! gates (5 to 70 W) combine user declarations with +0.656 W/min per completed Waaagh! Banner without ever consuming meter points. While fewer than 20 combined Slugga + Shoota Boyz squads exist, Boyz step down from 160 R / 15s to 120 R / 7s (18 W), 80 R / 1s (40 W), and 0 R / 1s (70 W, clamped at the 1s floor), and Loadsa Scrap! cuts buildable Ork structure costs (excluding Listenin' Shacks) by -20%.
- Necrons (Power Matrix & Dominion · Necrons Build Orders): Single-currency Dominion accrues
15 (Tomb Citadel) + 4 x RawPoints + Relay(6/8/10) + Convergence x 5 + MatrixStruct x 4 + Pylon x - Upkeep. Hidden Power from Power Nodes (+15/m) and Power Crucibles (+10/m) cuts all Dominion costs by -5% per +10 above 15 (cap -50%, rounded up), Protocol Relays cut unit build times by -8% per +130 hidden Requisition above 300 (cap -50%), and Tomb Pylon consumes 1 live Canoptek Spyder. - Adeptus Mechanicus (Noosphere Guide · AdMech Build Orders): Completed, online structures sum their Noosphere points to resolve Levels 1 to 15 (6 to 62 points), applying the general unit discount (-5% to -70%) to Altar/Cult/Forgeshrine units and the separate Armoury discount (-5% to -60%) to Onager and Skorpius vehicles, rounded up per resource via
Math.ceil. Optimised Fabrication cuts Emanatus/Void Shield/Cognis costs by -25% and Relays by -50%; Autosermon of Deployment multiplies upkeep by 0.8x; Battle Codifier I grants 0 R / 1s Datasmiths while fewer than 2 exist for Forgeshrine or 2 or fewer for Omnissian Cult.
Engine Assumptions Register (A-01 through A-15)
Every modelling rule across the planner UI, Reddit/Steam/Discord exports, and static guides is documented in the 15-entry register below:
| ID | Status | Engine Rule | Verification & Calibration Basis |
|---|---|---|---|
| A-01 | assumed | Costs are paid when an order is queued; cancel refunds are not modelled. | Standard RTS queue behaviour; no refund data in Patch 1.0.3 extraction. |
| A-02 | calibrated | Unit upkeep and population start when the squad leaves the building and are deducted continuously. | Matches the 0:00 / 0:28 preset ledgers (e.g. SM 310 - 24 = 286 R/min). |
| A-03 | assumed | Each production building has 1 unit queue (Tomb Citadel IV has 2); stage upgrades and attachments use that queue; research runs in a separate per-building queue, one research at a time. | Consistent with presets that train and research in the same building at the same second. |
| A-04 | calibrated | Ork and Adeptus Mechanicus construction points are built at 1 point per second (1 worker); structures under construction progress in parallel. | War Cohort Altar 20 points = 20 s; two 0:00 Altars both finish at 0:20 in the AdMech presets. |
| A-05 | verified | Space Marine drop-pod structures deploy faster inside the Chapter Keep aura (Chapel Barracks 20 s instead of 40 s); the near-HQ time is set per event. Lightning Deployment applies the near-HQ time everywhere. | Chapter Keep special rules and Lightning Deployment research text (-20/-10/-5 construction marker workload). |
| A-06 | verified | Points are captured 15 s after the user-given arrival second; Power Nodes then initialise for 5 s (10 s for AdMech). Take And Hold halves Space Marine capture time. | economy.json nodeIncome.powerNode; Take And Hold research (+100% capture speed). |
| A-07 | verified / assumed | Waaagh! is a user-declared timeline plus automatic banner growth (+0.656/min per completed Waaagh! Banner); it is checked, never spent. | Gain rules verified; combat-driven timeline cannot be simulated, so declarations are assumptions. |
| A-08 | assumed | All Noosphere structures are linked unless a build is flagged offline; levels count completed structures only. | Link geometry is map-dependent. |
| A-09 | calibrated / assumed | Necron Dominion/min = Tomb Citadel 15 + 4 per raw Requisition Point + Protocol Relay 6/8/10 + Convergence x convDpm (5) + Matrix production structure x matrixStructDpm (4) + Tomb Pylon x 8.75 - upkeep. The income cap is unknown and not modelled. | convDpm = 5: every Convergence step in the Necron preset ledgers adds exactly +5 D/min (geometric cross-check 15 x (46/60)^2 x 55.7% new area = 4.91). matrixStructDpm = 4: Canoptek Foundry / Destroyer Crypt / Resurrection Gallery completions add +4 D/min in 3 of 4 ledger steps (+4.5 in the fourth). |
| A-10 | calibrated | Necron hidden Power from ready Power Nodes (+15) plus completed Power Crucibles (+10) cuts all Dominion costs by 5% per +10 above 15/min (cap 50%). Protocol Relays cut Necron unit build times by 8% per +130 hidden Requisition above 300 (cap 50%); the hidden base is a parameter. | E-16: 1 Power Node (15) + 2 Crucibles (20) = 35 -> -10% (Chronomancer 45 -> 41, Canoptek Wraiths 55 -> 50). |
| A-11 | calibrated | Percentage discounts are rounded up per resource (ceil). | E-18: 181 R, 315 R / 26 P, 523 R / 57 P and 527 R / 94 P in the presets are all ceil results. |
| A-12 | assumed | The decay tax is marginal by bracket and applies only to gross point and generator income (Requisition 10/33/66% above 300/500/800; Power 10/30/50% above 90/105/120). HQ income is untaxed. | Data does not state whether brackets are marginal. |
| A-13 | assumed | Net income never drops below 0 per minute (MinFloor = 0). | No negative-income data. |
| A-14 | calibrated | Each faction starts with the squads listed in factions.startingArmy, already paying upkeep at 0:00. | E-20 / D-01: opening net income equals HQ income minus starting upkeep for all four factions. |
| A-15 | verified | Population cap is 200 (180 in 6-player lobbies) on Medium; commanders use 0 population. | economy.json lobbySettings. |
Planner & Live Timer Technical Q&A
Why do discounted Power prices like Sicarian Ruststalkers at Lv 2 equal 17 P instead of 16 P?
Multiplying 18 base Power by 0.90 (-10% at Noosphere Lv 2) gives 16.2 P, and Dawn of War 4 rounds discounted prices up per resource (Math.ceil(16.2) = 17 P, rule A-11)—matching verified in-game numbers like 181 R Kataphrons, 315 R / 26 P Skitarii Marshals, and 523 R / 57 P Onager Dunecrawlers.
How does the Live Match Timer stay accurate when my browser tab is in the background?
Pressing Start or Resume pre-schedules 100% of countdown tones (T-5s at 660 Hz, T-3/-2/-1s at 880 Hz, and on-step dual chimes at 1,320 to 990 Hz) directly on the hardware AudioContext clock, bypassing the 1-per-minute setInterval throttling browsers impose on background tabs.
Where are my custom plans saved and why are there zero query parameters in share links?
Compressed #plan=1.<deflate-base64url> hash fragments cap out under 2,000 characters, keeping every custom build inside client-side URL hashes and browser localStorage key dt.plan.v1 with 0 server database writes and 0 crawlable query URLs.