Table des matières

Language / Langue : FR | EN

Collaborative editing

Since version 4.12, the graphical editor lets you write a scenario together, in real time. A collaborative session is a temporary shared .jdrproj document with a private link: every author works in their usual editor (web or desktop) and sees the others' changes appear live.

<WRAP center round important 80%> The session saves nothing: the shared document lives in the server's memory for the duration of the session. Export or save regularly from your editor — and always before leaving. </WRAP>

Overview

Create and join (web)

  1. Open your scenario in the web editor.
  2. Tools → Create collaborative session: name the session; the share link is copied automatically.
  3. Send the link to your co-authors. The Collab status (bottom bar) shows connected participants, each with their own colour.

To join:

The session document replaces whatever was open in your editor — save your current work before joining.

From the desktop

Joining a web session

Tools → Join collaborative session, paste the link. The desktop version asks for (and remembers) the JDR-Bot web server URL if it cannot be deduced from the link.

Hosting locally

The desktop version can host the session itself, without any public server:

  1. Tools → Host local session: a collaborative server starts on your PC (TCP port 41212) and the LAN link is copied.
  2. On the same local network (home, club…), co-authors open that link in their browser or desktop app: it just works.
  3. Over the Internet, you must open/forward port 41212 on your router to your PC (same as hosting a game), then share the link with your public IP.

The desktop host and the guests (web or desktop) work in the same session with the same features. The session stops when the host closes the application.

During the session

Conflicts and synchronization

The session works with versions: every change is sent as a small patch based on the current document version.

The local draft

When a resynchronization discards your unsent changes, they are not lost: a “Collaborative resynchronization” window offers to copy or export the local copy (.jdrproj). The editor stays marked as “modified” until that draft is dealt with — closing or leaving the session will ask for confirmation.

Undo / Redo (Ctrl+Z / Ctrl+Y)

The undo history is local to each author: it stores full snapshots of your document, not the other authors' changes.

<WRAP center round tip 80%> In a collaborative session, prefer immediate undos (right after your own action) — they only touch your own changes. Warn your co-authors before a deep undo. </WRAP>

Saving and exporting

End of session

Limits and safeguards

Limit Value
Participants per session 10
Shared project size 8 MB
Single change size 256 KB (a huge paste is refused cleanly)
Change rate ~120 messages/min per author
Automatic reconnection ~20 attempts (~4 min), then stops with a message — the local document is kept

After a network drop, the editor reconnects by itself and resynchronizes. If the session expired in the meantime, a clear message says so.

Common messages

Message Meaning
Collaborative session not found or expired The token no longer matches a session (expired, server restarted, wrong link). Create/request a new link.
Collaborative session full 10 participants already connected.
Too many messages Change rate too high — wait a few seconds, everything resumes.
Document resynchronized with the session A conflict was resolved in favour of another author; your discarded changes are in the local draft.
Collaborative reconnection stopped Server unreachable after several attempts. Your local document is intact; rejoin via the link once the server responds.

See also: Editor overview · Linter and export