Skip to content

Timeline and planning tools: Chronons, Time Lab planner, Solve all, move steps - #10

Merged
OGMods merged 9 commits into
mainfrom
timeline-and-planning-tools
Oct 28, 2026
Merged

OGMods merged 9 commits into
mainfrom
timeline-and-planning-tools

Conversation

@OGMods

@OGMods OGMods commented Oct 28, 2026

Copy link
Copy Markdown
Owner

Summary

Builds on the game's new Export to Optimizer timeline section (game 1.1.11) to answer what to do next, not just what layout is best.

  • Timeline in the header. All-islands power and the Chronon count, run forward from the export: jump reward, progress to the next Chronon, earning rate now against the timeline's average, and a target countdown (time and clock time until a chosen award, quick chips sized to the award, what you'd hold after the jump, +88 for an unentered anomaly).
  • Time Lab planner. All 12 researches at the levels the game reported, a plan of levels priced against the Chronons a jump leaves. Chronon Reactor is priced in Chronons a jump and the three stat researches in power on the player's boards; economy researches get figure and cost only.
  • Solve all islands. One press solves each unlocked island in turn, keeping each one's best. Sits beside the run-length modes on desktop. The panel shows what the solves add and how much sooner the target lands.
  • Move steps. "Steps" on a solve plans the moves, replaces, builds, sells and clears from the board in Edit to the solve. It picks the nearest of the solve's tied layouts, orders greedily on power and stops at the solve's power. Each step is priced (copies across islands, the player's price research, sell refunds), and step mode shows the board after each step with the step's tiles highlighted and the rest faded.
  • Fix: the board no longer hovers through dialogs and panels.
  • Solver: a second seed one reactor tier down on terrain-bonus maps (measured, gated to Tidal), and CLI flags to solve a player's own setup (--code, --tier, --plan).

The heat and cooling links commit (c36bd14) came from a parallel session and is included as is.

Data

  • encoding/gameExport.ts reads section 7 (timeline, cash, research points, clock source); older codes read with timeline: null.
  • New hand-transcribed tables in the solver package: data/chronons.ts (award formula, threshold, projection), data/timeLab.ts (all 12 researches' costs), data/buildingPrices.ts (copy scaler, permits, replicator, refund).
  • New game-art icons: Chronon, cash, and all twelve Time Lab badges, from the extractor.

Compatibility

Everything Chronon-related needs the new game version, currently rolled out to about 25% of players. With an older game code, nothing that needs the timeline is shown; islands, roster, Solve all and Steps work as before.

Testing

  • npm test: 1103 passing, including the Chronon formula against every 1.1.11 sample's own award, the projection against a live reading and the game's measured rate (within 66 ppm), the price rules against a player's research, and the planner's ordering, replace, sell-everything and early-stop rules.
  • npm run check passes on every commit; npm run knip is clean.
  • Checked in a browser on desktop and phone: header panel, target, planner, Solve all end to end, step mode, prices, and older codes.

… the CLI

- A second seed with the top reactor one tier down, kept when it
  stabilizes higher. Gated to terrain-bonus anomalies, where it was
  measured to help; neutral on the base maps.
- solve CLI: --code solves a pasted board with its own anomaly and Time
  Lab research, --tier holds a building below its last tier, --plan adds
  upgrade-plan steps. --attempts now reports worst, median and best.
- The Time Lab has twelve researches: Chrono Seed (skip_city) sets the
  City level a timeline starts at, and changes no layout.
Game 1.1.11 appends section 7 to the Export to Optimizer code: export
time, Chronon balance, timeline energy and elapsed time, the game's own
jump award, the anomalies whose first-entry bonus is spent and the
generation, then the signed cash balance (negative on build credit),
research points, and a byte saying whether "Exported at" is server time
or the device clock. Codes from before it read with timeline: null, and
a section that ends early reads the later fields as null.

The fixtures are the developer's 1.1.11 samples, ending with the clock
byte, with server-stamped copies of three saves; owner_editor_save is the
one real code that ends at research points. Two are a player's save. One
sample has buildings on the transformer cells of areas 6-8, which the
import drops; the test pins it.

The spec records what the samples measured and the drift the game's
developer found: its ticks run about 0.3% slow while it is open, so a
projection on the real clock leads the game by that much of its online
time. That is the game's to fix and is not modelled.
- @reactor2/solver gains data/chronons.ts: the game's award formula, its
  inverse, the jump threshold by generation, the first-entry bonus and
  projectTimeline, which runs an export's timeline forward from its
  export time. Held to the award in every 1.1.11 sample and to a live
  reading on a player's save.
- timelineState adds up every game island's power live (the board on
  screen from its placements, the rest from their saved layouts) and
  projects the Chronon count at the power the game's own boards made.
- A game import is now kept as the game had it (game_import): the full
  research map, research in progress, obstacles being cleared, each
  island's board, the export and import times and the timeline, for the
  planned move list and spending tools.
- The header shows both in a pill whose panel adds the next Chronon, the
  jump threshold, the first-entry bonus still available, Chronons held
  and the timeline's length. The Chronon icon is the game's own.
  When the export was stamped by the device clock rather than server
  time, the panel says the countdown may be off.
Hovering a building, or pinning one on touch, draws dashed lines along the
ground to every building it actually exchanged heat or cooling with, the
dashes marching from supplier to receiver. The pairs come from the scorer's
own distribution (simulateIsland gains an optional, read-only flows output),
so an idle reactor beside a full generator gets no line.

A Settings switch, "Follow connections" (on by default), carries the lines on
through linked buildings so the whole network shows, fainter past the first
step. The layer is hidden while the board is exported as an image.
The timeline panel opens on what a jump would pay now, with the game's
own bar toward the next Chronon ("Next in 2m 30s of 4m 41s"), and keeps
everything else to a line: power with the game's figure beside it when
the boards here differ, Chronons held, the timeline's length.

- Target: type the award you are waiting for, or tap a chip sized to
  today's award (11,483 gives 12k, 15k, 20k; 723 gives 730, 750, 800).
  It shows how long until the game pays it, the clock time, and what you
  would hold after the jump, with the +88 while an anomaly is unentered.
  An empty field reads today's award. The field is bare digits while
  focused, comma-grouped after, and live as it is typed. A new import
  clears the target. A target more than a year out says so.
- Pace: Chronons an hour now against this timeline's average. Every
  Chronon takes longer than the last, so once the first falls below the
  second a fresh timeline like this one would earn faster.
- With solves: every island with its stored solve built, re-scored
  under today's roster, and how much sooner the target lands if the game
  ran them. A solve weaker than its board is ignored.

data/chronons.ts gains secondsUntilAward and the projection's progress
toward and length of the Chronon under way. The game's slow ticks are
neither modelled nor mentioned.
"Solve all islands" (Setup's Islands tab, and the timeline panel's new
Solves row) solves each island the game has unlocked in turn at the
chosen solve mode, keeps each one's best, and returns to the island the
player started on.

It walks the islands rather than solving them off screen: each is opened
as the island list opens one and run through the same runOptimizer the
Run button uses, so the defence of a held layout, the per-island merge
and filing under the right island all carry over unchanged. A stored
solve is defended whenever it was searched under the same anomaly and
plan. Stop ends the batch after the island running, a hidden tab holds
the next one back, and the readout's run chip counts "3/8".

Never automatic: a solve takes every core for its budget, and Quick
often loses to a hand-built board.
Pixi listens for pointer moves on the whole document and hit-tests the
board wherever the pointer is, so with a dialog or the timeline panel
open, tiles under it still lit up, the inspector followed the cursor and
heat links drew beneath the overlay.

PixiCanvas now tracks whether the pointer is over the board's own
element from its native enter and leave events, clears the hover on
leave and ignores Pixi's hover while outside. The last tile hovered
while outside is replayed on re-entry. Touch is unaffected.
The Time Lab planner (the timeline panel's Time Lab row, and Setup's
Time Lab tab) lists all twelve researches at the levels the game
reported, and plans levels on top of them against a budget: what the
panel's target says a jump would leave, plus the +88 when an anomaly is
left to enter. Planned and left update as levels are added.

It prices only what it can measure. Chronon Reactor's next level is
priced in Chronons a jump at the jump's energy; the three stat
researches in power, by re-scoring the player's boards as built at the
higher level (a floor); the economy researches get their figure and
cost only.

- data/timeLab.ts: every research's per-level Chronon cost and values,
  transcribed from the extractor's record and held to PRESTIGE_UPGRADES
  and the Chronon multiplier by tests. Chrono Seed carries its six
  purchases.
- boardPowers scores one board under several research sets on a single
  island context.
- All twelve Time Lab badges now ship from the extractor.
"Steps" in the readout turns the solve on screen into what to do in the
game, starting from the board in Edit. The kinds are what the game
allows: move a building, replace one by building on top of it, sell,
build, and clear an obstacle first; the clears come from the game's
board as imported, since a tile cleared here may still stand in the
game. When the island changes almost entirely, one "sell everything"
and the builds is planned instead, whichever is shorter.

Kept short: of the solve's tied layouts, the one nearest the island is
put on screen and aimed at, and since the order is greedy on power the
plan stops once the island makes the solve's power.

Step mode shows the island after each step in the HUD's place, with the
step in words and game coordinates, the power after it, and arrows (that
repeat while held), a slider and the arrow keys to move through it. The
board fades everything but the step's tiles, drops the gauges, icons and
pulse, marks where things arrive and leave, and draws an arrow for a
move.

Every step carries its cash: a build at the next copy's price, a sale
refunding Salvage Protocols' share of the current price, a replace as
both, a move free; copies count across all islands and move with each
step. data/buildingPrices.ts holds the rules, transcribed from the
progression record. The bar shows each step's cost and refund, and for
the plan the cash needed, refunded and needed on hand at once, with the
game's cash icon. None of it is set against the export's cash, a
snapshot stale as the game earns and doubled by rush hours.

createBoardScorer scores many versions of one board on a single island
context, about 0.2ms each, so planning a typical island takes well
under a second.

On a wide screen "Solve all islands" moves to Setup's footer beside the
run-length modes; a phone keeps it at the head of the island list. A
game code without a timeline section shows nothing that needs one.
@OGMods
OGMods merged commit 790963c into main Oct 28, 2026
3 checks passed
@OGMods
OGMods deleted the timeline-and-planning-tools branch October 28, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant