Commit graph

76 commits

Author SHA1 Message Date
acf70b7002 Add optional catch-up pricing for auctions 2026-11-18 20:42:09 +00:00
c735f1915c Add original Outpost artwork for all 19 achievements 2026-11-14 12:12:54 +00:00
f26a3fcaa0 Add Trading Network Kicker achievement to revision 2 2026-11-14 01:36:36 +00:00
55ed7be307 Add Biosphere and twenty-workforce achievements for revision 2 2026-11-14 01:34:36 +00:00
6498728f34 Release Outpost engine 0.10.31 with achievements 2026-11-14 01:27:11 +00:00
c034aa0d90 Add final-state Outpost achievement hooks and catalog 2026-11-14 01:21:15 +00:00
cf54ffc039 Keep sealed-bid results in seat order 2026-11-12 21:53:18 +00:00
f45b2107ee Fix translations and structured message rendering across all locales 2026-11-03 15:23:45 +00:00
905a2277ad Allow auction payment undo while the winner keeps the turn 2026-10-23 11:50:03 +02:00
ef4e643578 Pause automatic Megas when production exceeds the hand limit 2026-10-10 10:38:47 +02:00
54ec844c33 Rebuild exact game states for BGS undo and replays
BGS saves what the engine's `replay(data, { to })` returns: undo against bots,
admin and batch replays. It replayed the log for display, without drawing from
the decks or advancing the PRNG, so a restored game kept its initial decks
(cards duplicated between hands and decks), rewound the random counter and
lost the players' auto-pass and production settings.

Given the seed, `replay` now re-applies the logged moves from `initGame`,
replays automatic choices as recorded and checks every regenerated entry
against the saved log, refusing rather than rewriting a history it cannot
reproduce (e.g. after a drop). Current names, settings and drops are kept;
secret-stripped logs still use the display replay. Engine 0.10.26.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 12:06:25 +02:00
f2e3e03ffb Clarify bulk purchases and restore the colony ground scene 2026-10-05 18:54:03 +02:00
0e5c173d9b fix: replace pending choices without growing the log 2026-10-05 02:04:21 +02:00
dc8bb76b9d feat: allow revising sealed bids and Mega choices 2026-10-05 01:36:03 +02:00
511d935add Simplify sealed auction logs and show winner payments 2026-10-04 14:31:21 +02:00
2f57c74d56 Reveal all completed sealed bids in auction history 2026-10-04 14:04:05 +02:00
79cc186c9b Prefer hand-capacity cards and preserve Research in auto-selection 2026-10-01 16:05:35 +02:00
48a4909e71 Add opt-in automatic production choices and persistent action settings 2026-10-01 14:37:26 +02:00
b29b826e30 Seal simultaneous production choices until everyone confirms 2026-10-01 14:23:58 +02:00
3da4d2714b Release Outpost engine 0.10.17 2026-09-27 19:32:29 +02:00
4efd60cb52 Preserve first-match exchange inference 2026-09-27 19:32:29 +02:00
c0aefa5d14 Honor exchange inferences when sampling production cards 2026-09-27 19:29:55 +02:00
9860195072 Preserve observed card and bid constraints across analysis resampling 2026-09-27 19:22:40 +02:00
46e322f98b Add observation-based ongoing analysis scenarios 2026-09-27 19:14:27 +02:00
3bdb1f9295 Support playable analyses and translated chat 2026-09-21 20:32:12 +02:00
c20c47de4d Deal four ore and two water cards at setup 2026-09-18 17:14:01 +02:00
82aa8b3324 Add guided Outpost tutorials and fix open auction feedback 2026-09-16 00:02:55 +02:00
c9377b0a30 Require sealed challengers to bid above the base price 2026-09-12 20:36:07 +02:00
bf247cdc5b Clarify auctions and era progress, add action sounds and release 0.10.12 2026-09-10 22:12:49 +02:00
fe850e9836 Release Outpost engine 0.10.11 2026-09-10 18:30:46 +02:00
6ea0353c02 Separate robot ownership from operation and require usable workers to be assigned 2026-09-10 18:28:27 +02:00
636a470ff9 Chat: auto-scroll to newest; keep Wily Trader exchanges out of chat
The chat feed stays chronological (newest last) and now scrolls to the
bottom on load and on each new message while the user is already near the
bottom — scrolling up to read history no longer gets yanked back down.

Exchange moves no longer push a message into the game chat. The engine's
state.messages drains into the platform's chat as system messages, and the
per-trade lines were pure noise there — the trade already shows in the event
log. Chat is now reserved for game-over and auction wins. Engine 0.10.10.
2026-09-10 14:32:52 +00:00
dfc3cf3f6f Show a parked exchange card in the hand, face-down, instead of a banner
Rather than a waiting-banner note, the card you received in an exchange now
appears in your hand as a face-down (unknown-value) card with a dashed gold
border and a title explaining it is parked on the Wily Trader / Merchant
House until the exchange step ends. The wrapper masks the parked card's
value from everyone — owner included — while the step runs, so it genuinely
is unknown; it resolves to a real card when the step closes. The banner note
is gone. Engine 0.10.9.
2026-09-10 00:18:16 +02:00
d2290d2e3a Mask an exchange's received card value until the exchange step ends
The received card is parked face-down on the Wily Trader / Merchant House
for the rest of the discard phase's exchange step (phase 4), so its value is
nobody's business until then. While the step runs, the exchange log entry
shows the offered card but masks the received value as "for a higher one"
for every viewer — participants included; once the step closes (and the card
lands in the giver's hand) the participants see it, others only at game end.
Added a waiting banner note so a trader sees their card is parked, not lost.
Engine 0.10.8.
2026-09-09 23:32:28 +02:00
7f44fe4a46 Buy several factories of a type in one payment, like colonists
Factory buys take a count, the same way population and robots do: one
payment covers count x cost, the cards are spent once, and the overpay is
lost. A lone Mega Titanium 44 buys 4 ore factories (cost 40) in a single
step; New Chemicals needs one research card per factory. The log reads
"builds 4 ore factories (paid 44)". Replaces the earlier one-step-per-copy
splitting, which was wrong — a card can only be spent once. Engine 0.10.7.
2026-09-09 22:21:33 +02:00
f6bb598595 Mark the era change once per transition and give it a real delimiter
The era announcement read off entry.era, which is set on every round entry —
so "Era II begins" printed on every round of era II. The round entry now
carries eraBegan only on the round the era actually advances, and the log
text uses that. The feed renders it as a full-width era-colored band (bold,
era II orange / era III purple) instead of a subtle ruled line. Engine 0.10.6.
2026-09-09 21:56:07 +02:00
14b6b8b221 Show the exchanged cards in the log to the participants, to everyone at game end
The exchange move now records the offered card (exchangeGiven: type + value)
alongside the returned card's value. The offered card's value needs no
masking once offered — it never re-enters the giver's hand (it goes to the
target, or bounces back from the parked cards at the same value). Both
values are still hidden from non-participants until the game ends, then
revealed to everyone. The log line reads "P1 trades Ore 5 with P2 for Ore 9"
for the two participants (and post-game), "P1 trades a card with P2 for a
higher one" for the rest. Engine 0.10.5.
2026-09-09 21:16:16 +02:00
0feff7acae Announce the era change in the event log
The era transition was invisible in the log (only the market contents hinted
at it). The round entry's text now opens with "Era II begins — " / "Era III
begins — " on the round the era advances (era I is the opening era, so no
announcement), and the log feed renders it as a ruled delimiter above the
round line instead of plain text. The era is public and unmasked on the round
entry, so spectators and replays get the same delimiter. Engine 0.10.4.
2026-09-09 14:25:13 +02:00
b1a47f3d72 Count Smelter's bonus ore draws in the production range; track staged manning live
productionRange ignored the Smelter kicker — it now adds the extra
floor(manned ore / 2) ore draws to min/max/avg. The other production kickers
(Ice Prospector / Refinery) draw-then-discard-cheapest: same card count, so
the range is unchanged by design.

PlayerPanel: while staging the operator assignment, your own panel shows the
production the STAGED factories would give — the min–max (~avg) line updates
with every toggle instead of only after the turn commits. Engine 0.10.3.
2026-09-07 13:25:13 +00:00
8c5bedbf99 Keep fastBid log text neutral until the auction resolves
While a sealed auction collects bids, its log entries (and the game-server's
last-move summary built from them) leaked information: the opening line
showed the auctioneer their own amount, and auto-passes printed as "X passes
on the auction" the moment they happened. Now opening/bid/pass entries all
read as a neutral sealed-auction line until the resolving move is logged;
the wrapper's reveal then restores full text (amounts, passes, outcome). A
pass that resolves the auction now carries the "wins at N" outcome line too.
Engine 0.10.2.
2026-09-07 08:04:10 +00:00
17fa32eb21 Handle autoPassBids engine-side for sealed auctions; drop the viewer send
The setting now lives entirely in fastAutoPass: a seat whose true hand value
cannot reach the list price is auto-passed (bid 0) the moment the auction
opens, recorded in info.autoPassed and applied verbatim on replay. The viewer
no longer sends anything for it — the previous client-side auto-pass raced
the host's state pushes and produced spurious "not your turn to play"
rejections. Timing may reveal that an auto-passed seat held a weak hand;
accepted (indistinguishable in the log from a public-bound or manual pass).
Engine 0.10.1.
2026-09-06 17:43:23 +00:00
679d513da3 Move auto-pass sealed bid logic from viewer to engine 2026-09-06 17:42:13 +00:00
a41d8abbcb Reveal sealed bids after the auction resolves; auto-pass unaffordable sealed bids
fastBid used to mask every sealed bid from non-bidders forever. Now the
wrapper masks a bid only while its auction is still collecting bids — once
the resolving move (info.winningBid) is logged, every bid of that auction is
revealed verbatim in the log, including losing ones (Powergrid semantics).
During the auction only participation is visible, exactly as before. The
resolving entry's describe line now shows its own amount too.

Viewer: with the autoPassBids setting on, a player whose true hand cannot
reach the list price auto-submits a sealed pass (bid 0) — indistinguishable
from a manual pass, so nothing leaks about the hand. Engine 0.10.0.
2026-09-06 16:43:19 +00:00
1545243049 Make Kicker a native BGS expansion instead of a game option
The wrapper's init now reads the expansions string[] param (same pattern as
Gaia Project's lost-fleet): expansions ["kicker"] maps onto the internal
options.kicker flag, which the engine, dev harness and saved games keep
using. The gameinfo doc declares expansions: [{ name: "kicker" }] and no
longer lists kicker among the checkbox options. Engine 0.9.9.
2026-09-05 20:26:58 +00:00
624d09252b Verify all rules data against the physical 20th Anniversary copy
Component shortage: production decks and mega cards are unlimited — a dry
deck (deck and discard both empty) produces a stand-in at the deck's average
value, a real card that spends and recycles normally; mega eligibility no
longer checks a printed pool count (megaSupply removed).

Corrected card data from the printed cards: Laboratory 80 and Ecoplants 30
(were 100/50), ore 1x6/2x8/3x8/4x8/5x6, ring ore 30x1/35x3/40x4/45x3/50x1,
moon ore 40x1/45x3/50x4/55x3/60x1, Launch Facility 60/2, Merchant House 15/1,
Refinery 15/1 (was provisional 60/1). Water, titanium, new chemicals, orbital
medicine, microbiotics and research confirmed as-is. Setup chart drops the
dead 10-player row (game is 2-9).

Also fixes a latent drawCard bug (popped from the stale array after a
reshuffle reassigned it, silently skipping draws) and teaches the AI to take
mega cards for hand-capacity relief instead of hoarding value-losing singles.

Engine 0.9.8.
2026-09-05 19:34:41 +00:00
dcdb9dd9eb Align game data and logic with physical components 2026-09-05 19:32:50 +00:00
5401bb6b5a Era transitions take effect at the colony ship, fix the era display
Rules check for kicker eras (reported: 'era 2, kicker card is still era 1'):
per the rulebook, era transitions happen during Phase 2 (Replace Purchased
Colony Upgrade Cards) — when Era I ends, its remaining Kicker cards (slots +
pile) are boxed and the slots refill from Era II. A mid-round VP change does
not advance the era until the next colony ship. The engine already did this;
the bug was the DISPLAY: the header computed the era live from current VP,
so it showed Era II mid-round while the effective era (die, kickers) was
still I.

The state now carries the effective era, fixed at round begin and recorded
on round entries for replay; the header and the supply-bar highlights show
it. refillKickers also handles a double era jump (I -> III) by boxing both
ended eras. Engine 0.9.7.
2026-08-30 15:47:09 +00:00
415d245a3f Rich card descriptions + precise Kicker pile counts
- stripSecret now sorts the face-down Kicker piles into canonical order
  instead of placeholder-masking them. The draw order stays secret, but the
  per-type counts (public info: initial copies minus the public market and
  owned cards) are now visible. The Kicker supply bar shows each pending
  card with its count, like the colony-upgrade supply bar.
- New CardEffect component renders effect text with upgrade names as
  era-badged chips, resource names as resource-icon chips, and "N X
  factories" as manned-factory icons. Used in the market, the auction
  banner, and tooltips stay plain text.
- The market card era marker now sits inline after the title.
- Capitalized resource names in effect strings so they render as chips.

Engine 0.9.6.
2026-08-29 20:26:07 +00:00
5bd19c5b98 Correct Smelter price to 15 (was 30)
Per the Kicker card data, Smelter costs 15. Also corrects the README card
list. Engine 0.9.5.
2026-08-29 19:57:01 +00:00
e5e566649d Show each colony upgrade's era in the market and supply bar
Add upgradeNumber/upgradeEra helpers (card 1-13 → Era I/II/III). The supply
bar now tags every upgrade type with a colored era badge (I blue, II orange,
III purple) so players can see the era grouping at a glance, and each market
card carries a small era badge. Engine 0.9.5.
2026-08-29 19:53:34 +00:00