Epoch Street records every match automatically, and you can watch it again later in Replay. Since test build 2.0.2-test0, turning on Test mode in the settings lets you open replays from Records. In this post we show, with real screens, how replay mode came together and what it looks like now.
The replay screen. The control bar at the bottom handles play, pause, speed and the move counter (work-in-progress screen)Where it stands
- In test builds (from 2.0.2-test0), Records → Replays appears only when Test mode is on. It is not in the release build yet
- Sphere Battle effects, and checking the map and data while paused, are being built for the next test build. Some images in this post show work-in-progress screens
Every match is recorded
- Once a match starts, it is recorded without you doing anything. There is no record button. Matches you quit halfway are kept too
- The most recent 30 matches are kept automatically (you can change this to 5–100 or unlimited in the list). Star a replay with ★ and it stays forever, whatever the limit
- A replay is a single .esrep file. A file someone sends you can be brought in with "import from a file" in the list, or by dragging and dropping it onto the menu screen
- Replays are tiny: about 100 KB for a match of around 70 moves
The "Replays — match records" list. Starred replays are never deletedControls like a video player
Replay controls are meant to feel like a video player. Everything on the control bar can be clicked with the mouse, and the keyboard and gamepad can do the same.
- Play / pause, with speeds of ×1, ×2, ×4 and ×8. The fast-forward key speeds things up only while you hold it
- Step forward or back one action at a time, or one move at a time. The "Move" counter at the bottom right is the same number as the move counter in the sidebar during a match
- Type a move number to jump there. Clicking or dragging on the timeline also takes you straight to that point
- Sound can be muted separately for master, BGM and sound effects. We split them so that, for example, streamers can turn off just the music
- While you watch a replay, a REPLAY badge stays in the top left so it can't be mistaken for a live match
Watching it like a spectator
The first version of replay simply applied one action roughly every half second and redrew the board. Pieces teleported from square to square, and there were no dice or stock panels.
So we rethought a replay as a spectator whose feed comes from a file, and rebuilt it on the same machinery as spectating an online match.
- Pieces walk one square at a time, dice roll, coins fly, and when a stock price moves, the panel appears
- Pacing follows the recording's own clock. Long thinking time is capped at two seconds
- At ×4 and above, and when jumping or dragging, the effects are skipped so you get to the next moment right away
- The camera follows the player whose turn it is
When a stock price rises, the same panel as in a live match appears
Payments when someone lands on a rival's shop are shown with the amountThe screens the player saw
To feel like spectating, one thing was still missing: the screens the player on turn was looking at. How many shares to buy, which chance card to flip — those screens can't be shown from the list of actions alone.
- Recordings now also store the screens the player on turn saw, and the replay shows them as they were
- Replays recorded on a version with a different screen layout are matched up by name, and whatever can be shown is shown
- For replays without those screens (older replays, or ones sent by other people), the screens are rebuilt from the recorded actions: yes/no questions, chance cards and their results, buying and selling stock, slots, the investment effect, the salary breakdown and more
- Payments, days off, level-ups and similar notices are shown for every seat, not just people
The "Enter the number of shares to buy." screen the player on turn saw
A 5x buyout. The same announcement as in a live match appearsResults and achievements
Watch to the end and you get the same results screen as in a live match. The Achievements page lists what was earned in that match. In a replay it is display only; nothing is added to your achievement records.
The results' Achievements page. In a replay it is display onlyHow it reproduces matches exactly
A replay is not a video of the match.
- A recording holds the match settings, the random seed, and a log of who chose what, and when. Dice rolls and chance cards come out of the same seed in the same order, so following the choices reproduces the whole match. That is why replays are so small
- In exchange, every action also records a fingerprint of the entire board, and playback checks it as it goes. If a newer version of the game makes the result differ even slightly, the replay doesn't quietly show you a different match; it stops right there and tells you it can't be played correctly on this version
- Rewinding and jumping start from a remembered board partway through and run forward without drawing anything, so you can reach any move right away
That check also makes bugs easier to find. For example, on boards whose layout changes during a match (such as a switch that changes the road), rewinding to before the change stopped the replay. Because the check pointed to exactly where things went wrong, we tracked down the cause and fixed it in 2.0.2-test0.
What's next
- For the next test build, we're adding Sphere Battle effects to replays (Sphere Dice, the "got a Sphere" display, and choosing who to use it on)
- We're also adding the map (V) while paused, and Data with the same items as during a match (basic data, overall standings, the log and more), all as of that point in the replay
- An IF mode, where you try a different choice partway through a replay to see "what if", has been designed but not built yet
The map opened with V while paused (work-in-progress screen)Closing
Replay is there for looking back at your own matches and showing others a move that worked out. If you're trying it in a test build, we'd be grateful to hear about hard-to-follow moments or replays that stop playing, through "Review the game / Report a bug" on the mode-select screen.