← Dev Log
BallOrcs Battle3 min read

BallOrcs Battle: diplomacy, trade routes and mounted tribes arrive

Tribes can now trade, make truces, pay tribute and go to war, with Handcarts running routes between settlements. Mounted units, a rebuilt builder AI and sound effects all landed this stretch.

In plain words

Battle has grown a lot of the layer that sits above the fighting. Tribes can now have relations with each other. A tribe can offer a truce or peace, pay tribute, or be bribed, and a refusal can end in war. Trade happens too: Handcarts run routes between settlements, and a raid can hit an enemy cart on its way. Every tribe gets mounted units, from Rootkin boar-riders and Cinderkin ember-hounds to Brinekin tide-lizards, Amberkin moss-oxen and Glintkin prism-stags. The computer-controlled builder got smarter about trade, coin and when to commit its army. Sound effects are in for units, combat, the economy, the UI and abilities. Most of this is working in the code and tests; the balance of trade and bribes is still being tuned.

Under the hood

  • Diplomacy (#65): a relations record, a hostile() predicate used by every enemy check, a DIPLOMACY command, and trust events with demotion thresholds. Settlements start at Neutral, and a Village gets a Market. Tribute and bribes follow the trust rules, and a gift never buys trust past 100. A City declares War on a refuser at -50, and a Truce runs on from there. Dominance uses the map's points, a hold timer and a win condition. An alliance counts as one side at match end.
  • Trade (#64, #65): the Handcart is every tribe's trade cart (M4 slice 10). The ROUTE command, yield and split are in, and the Thornwagon carries six through the transport orders.
  • Bribe pricing (#108): gift_coin_per_trust went from 10 to 2, and the gift cap is pinned at the 2-coin price with the stale price text fixed.
  • Builder AI (#66): the BUILDER runs its own Handcart trade routes, holds a coin reserve, courts, raids enemy carts at War, and proposes a Truce and Peace. Its Cinderkin hold their Cinderlings to 16 % of the army, and it waits for its columns after an all-in.
  • Settlements (#68): settlements.json gives tiers and seats, a match-end rule, and a settlement AI where the guard holds its district. Conquest hands a razed Hall's district to the razer.
  • Structures (#63): the BUILD and TRAIN commands, production, attack targets, Wall blocks, Outpost territory and a build menu with site placement. The Hall decides match end.
  • Mounted units (#70): the Rootkin boar-riders, Cinderkin ember-hounds, Brinekin tide-lizards, Amberkin moss-oxen and Glintkin prism-stags are all in, with the BUILDER building a Workshop to buy mounts.
  • Resources (#62): typed knowledge and coin nodes, priced sites in the build menu, and gatherers that eat the food they spend.
  • Audio (#78): buses, a Sound settings screen, a music player, ambient beds per biome, and generated sound effects for UI, orders, units, combat, economy and abilities. The web build unlocks audio on the first touch and leaves the iPhone silent switch in charge.
  • Order chain (#95): a sequencer with headless tests, a Queue tab with chips, Fire and Clear, a map preview and routes. A fired chain holds while the game is paused.
  • HUD (#83): panels can be locked and moved, and the Customize layout has a gamepad reticule. The classic desktop layout was removed.
  • Terrain and maps (#75, #13): textured hex terrain with ripples and Hollow scars, and four ranked maps (highlands, rivers, ashlands, frostwood). Maps declare a measured expected match length, which the skirmish menu uses to filter.
  • Realm editor (#72, #96): the editor finished its E2 list (eyedropper, flatten, smooth, overlays, generate, ocean border, save as, delete), and it can author scenarios on a realm.
  • Balance proxy (#12): a short-map and long-map proxy check and a Hollow density sweep, so balance changes are measured rather than guessed.
#rts#diplomacy#ai#units#audio#ui