Working offline
- Gratuit
- Depuis la v0.6.0
Open and edit your layouts with no connection — how it works, and what it does and doesn't cover yet.
Locodex Planner keeps working without a connection. The editor loads from an on-device cache instead of the server, so you can open and edit a layout on a train, in a workshop, or anywhere the wifi drops.
How it works
#The first time you open a layout while online, the planner quietly saves a copy on your device — the layout itself, the track catalogue (so piece geometry can be rebuilt), and your account details. From then on, opening that layout works whether or not you have a connection. Once you sign out, the planner takes those account details off the device, along with its copies of layouts your account already has; edits your account hasn't received yet stay on the device until you sign back in (see Signing out on a shared computer).
Offline, your edits save to your device first. Once you're back online, they go up to your account with your next save, or as soon as you next open the layout: the planner notices this device has changes your account doesn't, opens this device's copy and syncs it, a rename or board change included. On your layouts page, a layout in that state reads Not synced yet.
Every save lands on your device before anything else, and a save that's still waiting runs straight away when you go back to your layouts or switch plans. If you reload or close the tab right after an edit, the edit is kept as the page leaves and picked up when it opens again. On a layout in your account, it goes up as soon as the layout opens.
The save indicator next to the layout name in the top bar says where things stand: Unsaved changes while an edit waits to save, Saving… while it goes through, then Saved once every change is stored. It doesn't count how long ago the last save ran: when it reads Saved, nothing is waiting.
If the plan changed somewhere else too
#Sometimes a layout changes in two places at once: you edit it offline on your laptop, and meanwhile edit it on another device or rename it on the website. Neither version overwrites the other. When you next open it online, the planner opens the version from your account and keeps this device's edits as a separate layout named "your plan (offline copy)", stored on this device. A banner says so and opens the copy, so you can compare the two and carry over what you need.
The same goes when the plan is open in two places online at once — two devices, or two browser tabs — and both edit it. The first to save wins as usual. When the second one saves, the planner sees the plan changed since it opened it: instead of overwriting the other edits, it keeps its own as an offline copy and reopens the plan with the newer version, with the same banner. From then on both places carry on from that version.
You only get a copy when something really differs. If your account already holds exactly what this device does, say because a save went through just as you reloaded the page, the plan opens as usual with no copy. A change on another device still counts, however small, and so does a rename. One set of edits only ever gets one copy.
A plan going into your account for the first time isn't one of these: if its upload was interrupted, opening it picks up where it left off, with no copy and no banner.
If cloud sync is paused
#Now and then we pause cloud sync for a little while, for maintenance, and your account can also be out of reach for a moment when the server is busy. The planner carries on as if you were offline. Your edits, renames and board changes save on your device, and the save indicator shows Save failed; hover it to see that sync is paused and your changes are kept. A new layout is made on your device and opens straight away. Once sync is back, your changes go up with your next save, or when you next open the layout, and a new layout goes up the next time the planner starts or comes back online; until then your layouts list shows it as Not synced yet.
If your sign-in expires
#Sessions renew themselves while you use the planner, so this only happens after 30 days away, or when your password was changed on another device. If it does happen while you're editing, the save indicator in the top bar shows Save failed; hover it to see why. Your changes keep saving to your device. Sign in again and open the layout, and they sync to your account.
If this device runs out of space
#The first time a plan saves on your device, the planner asks your browser to keep its storage even when the disk gets full; most browsers decide on their own, and Firefox may ask you once. Installing the app (see Install the app) helps too: an installed app gets more durable storage than a browser tab, so your layouts are less likely to be cleared.
If your device does run low, a banner warns you before saving stops working. If a save can't be written on the device at all — the storage is full, or blocked, as some private-browsing windows do — the planner says so instead of showing Saved:
- For a plan synced to your account, your changes keep going to the cloud; only the offline copy is missing.
- For a plan kept only on this device, the save indicator shows Save failed. Export the plan as a
.trackplanfile straight away (see .trackplan files) so you don't lose your changes, then free up some space.
What works offline
#- Opening any layout you've already opened online at least once.
- Placing, moving, rotating, joining, and deleting track — the full editor.
- Validation, polarity, the 2D/3D views — they all run on your device.
- Pro features: free for everyone during the open beta, and afterwards for license owners. Your license is verified on-device from a signed token (saved after you sign in online), so Pro modules and capabilities stay unlocked with no connection — there's no live licence check to fail offline.
What still needs a connection
#- A layout you've never opened on this device — there's no local copy to load yet.
- Signing in, subscribing and sharing still need the network.
New layouts made offline
#You can start a new layout with no connection. Signed out, it lives on your device, as every signed-out layout does. Signed in, it's made on your device straight away and added to your account, as the same plan, the next time you're online: no need to open it again. Until then your layouts list shows it as Not synced yet.
If your account is at its cloud limit by the time you're back online, the plan stays on your device instead, and your layouts list says so. The same goes for a plan using track that isn't in the Locodex catalogue, which can come with a .trackplan file made somewhere else: it stays on your device, and goes on working there.
If you sign out before it goes up, it stays on your device as a layout of its own, marked On this device once you sign back in: choose Add to account on its card to send it up.
If you open a layout offline that was never cached, the planner tells you it couldn't find the layout instead of showing an empty editor. Once you're back online, press Try again to open it, or go back to your layouts.