A Fortnite companion that reads your screen, not your memory.
Doubloon watches a small region of your screen, reads the +600 XP CHEST pop-up the
game already shows you, and keeps an append-only ledger of every chest. It reads
your pass screens with the OCR engine Windows already ships, tracks the Battle,
Music and OG Pass, and tells you the truth about the token odds: 1 in 137,500 per
chest, no matter how many you open.
It is a Rust binary with a Win32 overlay and a local dashboard. It does not touch the game process, inject a DLL, hook the swap chain, or synthesise input.
Counts chests while you play. Capture → change gate → Windows' own OCR →
strict pop-up classifier → one debounced ledger row. The overlay updates when the
number changes, not on a frame timer. It shows one number and a +1 pulse; the
rest waits until after the match.
Reads the screen for real. The Scan tab OCRs the whole game window and shows
every line it recognized in a box over the captured frame. Pass levels and track
lengths are parsed out of the text (LEVEL 63, 63 / 100, TIER 28), shown with
the line that produced them, and written to the ledger only when you press Use.
A screen that says nothing is not guessed at.
Tracks the three passes you are already grinding. Battle Pass, Music Pass and
OG Pass get one card each: level, track length, progress and what is left. Every
pass levels from the same Season XP, so one match moves all of them, but the tracks
differ — 80,000 XP per Battle/OG level once the Battle Pass's early curve flattens,
160,000 per Music tier. Track lengths change between seasons and are editable;
the card labels a shipped number as default until you correct it.
Separates the two lanes. The collection (25 cosmetics) gets progress language, a checklist and a completion bar, because it is finite. The token gets one percentage and no bar, because chests are independent trials and "progress toward the token" would be a lie with an animation.
Keeps the history you can check. Session history is grouped from the ledger by match id, not from a summary record, so a superseded or compacted match cannot leave a ghost session behind. Everything exports: the raw JSONL ledger, or a CSV of chest rows for a spreadsheet.
| Passes | Scan |
|---|---|
![]() |
![]() |
| Insights | Odds |
|---|---|
![]() |
![]() |
Grab doubloon.exe from Releases. It is a single unsigned
Windows binary — no installer, no runtime, no model files. Windows SmartScreen will
warn about an unsigned executable; that is expected.
Requirements:
- Windows 10 or 11, 64-bit.
- Windowed Fullscreen (borderless). True exclusive fullscreen bypasses DWM: it cannot be captured and no overlay can draw over it.
- An OCR recognizer for your HUD language. English (United States) is installed on
most machines; if not, Settings → Time & Language → Language → English (US) →
Optional features → OCR.
doubloon selftesttells you what it found.
git clone https://github.com/bindlez/doubloon
cd doubloon
cargo build --release
./target/release/doubloon.exe selftestRust 1.82 or newer. The only Windows dependency is the WinRT OCR API, which is part of the OS.
./target/release/doubloon.exe runIt prints a dashboard URL with a random session path and opens it.
- Setup → Grab frame. It asks the game window for its own surface
(
PrintWindow), so it sees the game even though the browser is in front. - Drag a box around the
+600 XP CHESTline. Save the region. It is stored as a fraction of the client area, so resolution and HUD-scale changes do not break it. - Test read. It captures that region once and runs OCR. You should see the
pop-up text and
counted as chest. - Play. The overlay sits in a corner of the game window and pulses
+1when a chest lands.
For passes: open the pass screen in Fortnite, switch to Scan, press Read screen, and press Use beside each reading you want to keep. Nothing is saved until then.
The dashboard also has deep links (#passes, #scan, …) and number-key shortcuts
1–7, and remembers the tab you were on.
The screen reader captures the game window's client area at native resolution, downscales only if the OCR engine's 2600 px limit requires it, and keeps every recognized line with its bounding box. The boxes are drawn over the capture, so a bad read is visible rather than mysterious.
The parser is deliberately small and conservative:
- a pass is named only by a heading it recognizes (
BATTLE PASS,MUSIC PASS,FESTIVAL,OG PASS); - a level comes from
LEVEL n,TIER norLVL n; - a
level / trackpair is only trusted inside a named pass, or when the wordLEVEL/TIERis on the same line; - both sides of a pair must be between 1 and 500, so
43,200 / 80,000 XPcan never be read as level 43 of 100; - the first number wins when a screen disagrees with itself, and the line it came from is shown next to the reading.
No OCR path writes to the ledger. Applying a reading is one POST per press.
doubloon bench on a composited 1920×1080 window, release build:
| Stage | Cost | Notes |
|---|---|---|
| Capture (653×130) | 6.9 ms wall, ~0.3 ms CPU | Flat with region size: an 8×8 grab costs the same as a 653×130 one. It is the compositor handing over a frame, not a pixel copy. |
| Frame fingerprint | 0.36 µs | 192 luma samples, FNV-1a. This runs on every captured frame. |
| OCR, 2× upscale | 12.5 ms | One pass per changed frame, at the capture rate. |
| Idle (game not foreground) | 0.0 ms of CPU in a 12 s run | No capture, no OCR, just a window check twice a second. |
| Playing, at 3 Hz | 3.9% of one core | The number that matters: the loop is reading, not sleeping. |
| Full-screen scan (manual) | 13–120 ms | Only when you press Read screen. A 1080p client area measured about a tenth of a second. |
| Release binary | ~830 KB | No runtime, no model files, no installer. |
The sampling rate is the only real knob, and it is deliberately low: a chest
pop-up lives for seconds, so 3 Hz is plenty and 30 Hz would cost ten times the CPU
for latency nobody can perceive. The first version of this gate waited for the
region to go still before reading, which a live 3D scene never does — measured at
1,003 captures and zero reads in a 45-second run. The gate fires on change,
rate-limited, on a THREAD_PRIORITY_BELOW_NORMAL worker. When the game is not
foreground it captures nothing and runs no OCR.
Measured, not asserted — run doubloon bench yourself, on your machine, with your
resolution and HUD scale.
One append-only JSONL file (%LOCALAPPDATA%\Doubloon\ledger.jsonl), folded into
memory on start:
{"op":"chest","event":{"match_id":"live-…","container_id":"live-000012", … }}
{"op":"find","find":{"item_id":"jam-london","source":"manual", … }}
{"op":"pass","id":"battle","level":42,"target":100}
Rules that exist because of specific failures:
- Append-only. A bad reading is superseded, never subtracted. Subtraction is how counters go negative after a patch.
- Dedupe on
(match_id, container_id, source). Rescanning the same data must add zero rows; a silent double-count is the worst bug a probability tool can have. - Replay supersedes live for a match, via one
supersederecord that seals the match so no later live row can sneak back in. - A pass update never clamps the level to the track. Lowering a track length
keeps progress you already earned; the bar caps at 100% and the card says
track completeorn past the end. - Atomic compaction writes a temp file, fsyncs, and keeps the old ledger as
.bak. An unreadable ledger restores from the backup rather than resetting to zero.
The in-game quest counter is the oracle: it counts searched normal, rare and
Sprite chests separately. Doubloon keeps disposition on every row, so a mismatch
is explainable rather than mysterious — broken chests are counted by the ledger and
not by the quest. The token odds count every chest row, smashed or not: a smashed
chest still drops its contents, so only the quest counter treats them differently.
Chests are independent trials. The only honest number is
P(at least one) = 1 − (1 − p)^n, computed in log space:
P = 1 − exp(Σ nᵢ · ln(1 − p·mᵢ))
so a chest opened during a Treasure Hours window is combined with the multiplier
that was actually live at that timestamp, not with today's. doubloon selftest
checks the 50% point at 1 in 137,500 is 95,307±2 chests, and that the pool
arithmetic reproduces Epic's published 1-in-62 normal week and 1-in-21 Golden Week.
Projections are withheld below 5 chests and 10 minutes of data, and the projection panel starts at 100 chests rather than at your whole history: "the next N chests" is a session question.
| Command | What it does |
|---|---|
doubloon run |
Live counter + dashboard. --port, --no-overlay, --no-open, --no-live, --window NAME. |
doubloon bench |
Capture/fingerprint/OCR percentiles and the steady-state CPU cost. |
doubloon selftest |
Odds identities, catalogue, ledger round-trip, classifier, OCR availability, capture, and a rendered pass screen read end to end. |
doubloon where |
Print the data directory and file paths. |
Config and ledger live in %LOCALAPPDATA%\Doubloon; set DOUBLOON_HOME to
override (portable install, or a scratch ledger for testing).
crates/doubloon-core pure, #![forbid(unsafe_code)], 85 unit tests
odds.rs survival functions, ladders, pool arithmetic
catalog.rs the 25 cosmetics + 5 gizmos, rates, reachability
ledger.rs append-only log, dedupe, supersede, compaction
stats.rs totals, sessions, session history, the rate gate
vision.rs normalised ROI, frame fingerprint, change gate, classifier, debounce
passes.rs the three tracks and their update invariants
scan.rs pass-screen text parser (headings, levels, ratios, evidence)
schedule.rs season windows and multipliers, as data
crates/doubloon the Windows shell
sys.rs hand-written Win32 FFI (no wrapper crate)
capture.rs BitBlt for the live loop, PrintWindow for calibration and scans
ocr.rs Windows.Media.Ocr, text and line boxes
overlay.rs layered click-through window, GDI text, event-driven paint
live.rs the pipeline: capture → gate → OCR → ledger
server.rs small HTTP server on 127.0.0.1 with a session path
api.rs the JSON the dashboard reads
assets/ the dashboard (vanilla HTML/CSS/JS, embedded in the binary)
The core has no Windows in it, which is why the maths, the ledger rules, the
pop-up state machines and the pass-screen parser can be tested without a screen
or a game. doubloon selftest goes further: it renders +600 XP CHEST and a fake
pass screen with GDI, pushes those pixels through the real OCR engine, and asserts
the classifier and parser produce the right numbers on your machine.
Everything stays on this computer. The dashboard is bound to 127.0.0.1 behind a
random session path; there is no telemetry, no update check, and no network call
other than the loopback page you are reading. There is no account and no cloud.
- Live counting only. Replay ingestion (exact post-match truth, attribution)
is deliberately out of scope:
LED-N/Fortnite-ChestCounteralready does it, and the ledger'ssupersederecord is the hook to reconcile it later. - The pop-up classifier is tuned to the English HUD strings
+N XP CHEST,… SPRITE CHEST,… RARE CHEST. A localised client needs a different pattern; OCR language can be pinned inconfig.json. - The pass parser knows the words it knows. A localized pass screen will show its text and boxes but will not produce a reading; type the level instead.
- The pass reader has not seen a live Fortnite pass screen. It is verified on
rendered text in
selftestand on a synthetic pass window; a real screen with Fortnite's fonts, background and layout is the first test only you can run. - Exclusive fullscreen cannot be captured. Windowed fullscreen is required.
- The overlay's pixels have not been photographed here. Its geometry, fonts and click-through styles are exercised, but whether it reads well over your HUD is a judgement only you can make in a match.
- An unsigned overlay is visible to Easy Anti-Cheat. Epic explicitly declines to say whether any third-party tool can get you banned. Replay-only tools have the smallest surface; this one reads pixels. That is the trade, stated plainly.
MIT. See LICENSE.
Doubloon is not affiliated with, endorsed by, or sponsored by Epic Games. Fortnite is a trademark of Epic Games, Inc.




