logigate/server/utils
Fabian @ Blax Software 596dc6827e BF memory: a newer save brings its own bits, bits reach the account when you leave, room for them
A project that comes in with the same circuit open (a newer save from
another computer, a savegame restored in place, a shared link opened
again) now runs from the bits it brings. Before, the running circuit
went on with this computer's old bits and wrote them over the newer ones
at the next save, and a savegame could not undo Power off and on.

Bits changed only by buttons or a clock are sent to the account when the
page is hidden or closed, when you leave the project, and before signing
out, so they are no longer lost by "remove from this browser" and reach
the other computer. A running clock alone still sends nothing. Bits alone
keep the project's save time, so an edit saved on another computer wins
over them and they end up in its savegames.

What circuits hold has its own room of 500 KB per project on top of the
2 MB limit, in the browser, the account and share links. When it is full,
the circuits left longest ago start from 0; a circuit that holds more than
that on its own says so once. A project can no longer become too large to
load because of its memory.

A savegame opened as a copy saves the project it leaves first, like every
other way of switching projects.

Tests now run the editor itself (in a stand-in browser with an account
server) for going into components and back, reloads, two projects, other
computers, savegames, signing out and the room limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 18:44:43 +01:00
..
accounts.ts A settings for every part, overlap-free wiring with crossing styles, accounts with sync 2026-10-20 13:09:37 +02:00
auth.ts A settings for every part, overlap-free wiring with crossing styles, accounts with sync 2026-10-20 13:09:37 +02:00
backup.ts A crash-safe storage, savegames and daily backups 2026-10-20 13:20:55 +02:00
history.ts A crash-safe storage, savegames and daily backups 2026-10-20 13:20:55 +02:00
puzzles.ts A main menu: free play, campaign, challenges and leaderboard over a circuit that builds itself 2026-10-22 12:22:35 +02:00
safe-fs.ts A crash-safe storage, savegames and daily backups 2026-10-20 13:20:55 +02:00
shares.ts BF memory: a newer save brings its own bits, bits reach the account when you leave, room for them 2026-10-26 18:44:43 +01:00