session_administration - ryzom/ryzomcore GitHub Wiki
title: Ring Session Administration description: For shard operators and developers - the services and messages behind Ring sessions, the session database, hibernation files, Ring access overrides, variables and console commands published: true date: 2026-11-16T00:00:00.000Z tags: ring editor: markdown dateCreated: 2026-11-16T00:00:00.000Z
This page is for whoever runs a shard with the Ring, or works on its code. The player's side is in Ring Session Management and the pages it links.
| Service | Dashboard (quick start) | Part in the sessions |
|---|---|---|
Shard unifier (su), module rsm (RingSessionManager) |
Unifier | Owns the session database. Schedules and starts sessions on a scenario service, keeps invitations and kicks, admits characters (with the welcome service of the target shard), keeps the session log and ratings |
Session Browser Service (sbs_ring, module sbs) |
Ring | Answers the client's lists: the sessions a character may see, the characters of a session, the ratings. Reads the session database directly and forwards changes to the shard unifier |
Scenario service (dss), modules ServerEditionModule and ServerAnimationModule
|
Ring | Runs the sessions: one scenario tree per edition session, the roles of the characters inside, tests, animations, saving and hibernation |
AI service (ais) |
Ring | One AI instance per running scenario; a linked animation session shares the instance of its edition session |
Entities game service (egs_ring) |
Ring | The characters: Adventure Master and editor rights (invisible, invulnerable), the scores of an animation, the return to the previous session |
Welcome service (rws_ring) |
Ring | Admits the character into the Ring shard |
Ring web pages, web/public_php/ring/
|
Web | The Ring window in the game |
Opening the editor (character selection, SCENARIO EDITOR):
- The client asks the session browser to join its edition session (
joinEditSession). The shard unifier answers 2 when the character has none and 15 when it is not running. - On 2, the client schedules an
st_editsession (scheduleSession), invites the character into it and starts it. On 15, it starts it. Then it asks again. -
startSessionmakes the shard unifier pick a scenario service and send itcreateSession. The scenario service creates the session (waking it from its hibernation file if there is one) and answerssessionCreated; the session becomesss_open. - Joining (
joinSession): the shard unifier checks the character, sets its role from its invitation, tells the scenario service (addCharacterInSession, with the role and the Ring access) and asks the welcome service to admit the character. The client gets the front end's address and teleports there.
Launching at a terminal does the same with an st_anim session, after hibernateEditSession for the owner, then setSessionStartParams (island, entry point and season from the scenario header) and the owner's invitation. When the owner's client uploads the scenario and it starts, the scenario service announces it to the EGS (animSessionStarted) and to the shard unifier (scenarioStarted, which creates the session log). When the session ends, the EGS sends the shard unifier scenarioEnded with the participants and the points, and the scenario service reports the closing (ss_closed).
When a scenario service goes down, the shard unifier locks its sessions (ss_locked). When it registers again, the sessions it still hosts open again and the others are closed. At startup the shard unifier locks every open session until its scenario service reports.
The shard unifier's database (ring_<domain> in a default setup) holds, among others:
| Table | What it holds |
|---|---|
sessions |
One row per session: type, state, owner, title and description, level, rule type, access type (public with Auto invite), duration, anim mode, filters, language, orientation, newcomer flag, subscription_closed, the host shard, dates |
session_participant |
The invitations: session, character, status (sps_*), kicked |
session_log |
One row per animation session that started: scenario, participants, Ring points and scenario points scored, time taken, owner, guild |
scenario |
One row per scenario played, by the md5 of its body: title, author, level, orientation, total Ring points, and allow_free_trial, which lets free trial accounts join its sessions |
characters |
Per character: current_session (the session it is in, which character selection reads for Resume Scenario) and the Ring points earned as author, Adventure Master and masterless owner (rrp_author, rrp_am, rrp_masterless) |
ring_users |
Per account, Ring data used when joining |
Session levels are sl_a to sl_f (character levels up to 20, 21-50, 51-100, 101-150, 151-200, above 200), rule types rt_strict (mastered) and rt_liberal (masterless), durations et_short, et_medium, et_long.
| File | What it is |
|---|---|
r2/sessions/r2_session_<session>_<owner>.dat |
An edition session's save (both numbers on 8 digits): the scenario tree, its mode and starting act. Written every minute while the scenario changes, and at hibernation; read back when the session is created again. Deleted when the session is closed for good (NEW SCENARIO) or the character is deleted. A file that cannot be read is kept aside as .unreadable_<stamp>. |
r2/override_ring_access.txt |
The Ring access overrides (Version 3, then one charId access line per character) |
When the scenario service shuts down, it hibernates every edition session first.
A character's Ring access is a list of packages with a level, such as a1:j1:f1:. The scenario service builds it in three steps:
- The value from the shard unifier, raised package by package to at least
DefaultCharRingAccess. - An account privilege starting with
R2A_replaces it (underscores become colons). - An override saved with
setCharOverrideRingAccessreplaces it again.
The scenario's islands and creatures name the package and level they need (r2_ring_access.xml for the creatures). With MustVerifyRingAccessWhileLoadingAnimation on, the scenario service refuses to start a scenario (an animation or a test) whose content is above the access of the character who starts it.
Scenario service (dss, section DSS):
| Variable | Default | |
|---|---|---|
MaxNpcs, MaxStaticObjects
|
100, 100 | NPCs and objects allowed in an act. The editor counts them apart; when a scenario starts, the scenario service allows their sum plus 5 per act. |
TimeBeforeAutoSaveTimeEditionSession |
60 | Seconds between saves of a changed edition session |
TimeBeforeAutoHibernateEditionSessionWithNoPlayer |
900 | An empty edition session hibernates after this many seconds |
TimeBeforeStopTestInEditionSessionWithNoPlayer |
300 | A test in an empty, unlinked edition session stops after this many seconds |
TimeBeforeAutoCloseAnimationSessionWithNoPlayer |
900 | An empty animation session closes after this many seconds |
TimeBeforeDisconnectionAfterKick |
30 | Seconds a kicked character has to leave |
DssUseBs |
true | Save and hibernate edition sessions on the backup service |
DefaultCharRingAccess |
a1 |
The least Ring access of every character |
MustVerifyRingAccessWhileLoadingAnimation |
false | Check the Ring access of the character who starts a scenario (an animation, or a test) against its content |
OverrideRoSValue |
-1 | Forces the newcomer (Ruins of Silan) state of every character for the trial check: 0 or 1; -1 uses the real one |
DontUseSU |
false | Run without a shard unifier |
AutoCreateSession, AutoCreateAnimationSession, AutoCreateAddCharacter, AutoCreateSessionMultiChar
|
false | Local testing without a shard unifier: a session is made for each client (AutoCreateRole, ur_editor by default, gives the role) |
Shard unifier (su):
| Variable | Default | |
|---|---|---|
DomainName |
ryzom |
The domain whose permissions are checked when joining |
PrivilegeForSessionAccess |
:GM:SGM: |
Accounts with one of these privileges enter any session without an invitation and are not held back by kicks |
ForceWelcomerShard, PreferLastPlayedShard
|
0, true | Which mainland shard a character joining "any mainland" is sent to |
Scenario service, edition module (ServerEditionModule.<command>):
| Command | |
|---|---|
listSessions |
The loaded sessions: type, characters, AI instance, owner, linked session |
displaySession <id> [1|2], dumpSession
|
One session; 1 adds the scenario tree, 2 the run-time data |
listPioneers, displayPioneer <charId>, listAllowedPioneers
|
The characters in sessions, and the ones admitted but not yet arrived |
hibernateSession <id> |
Saves and unloads a loaded edition session |
wakeUpSession <id> <ownerCharId> |
Loads a hibernated edition session |
closeSession <id> |
Closes a session: its characters are sent back, an edition session's save is deleted |
resetSession <id> |
Empties the scenario and stops the test; the characters reconnect |
reconnectSession <id> |
Reconnects the characters of a session |
kickPioneer <id> <charId>, unkickPioneer <id> <charId>
|
Kick and unkick inside the scenario service only (the shard unifier's invitation keeps its own state) |
teleportOneCharacterToAnother <id> <charId> <targetCharId> |
|
displayCharRingAccess <charId>, setCharRingAccess <charId> <access>
|
The Ring access in memory, until the character connects again |
setCharOverrideRingAccess, displayCharOverrideRingAccess, listCharOverrideRingAccess, removeCharOverrideRingAccess
|
The saved overrides |
resetKeyPolicies, setDefaultKey, addKeyPolicy
|
Which scenario and component files the clients may load, by the key they were signed with (every file by default) |
createSession, addCharacterInSession, setSessionStartParams
|
Simulate the shard unifier's messages, for tests |
Scenario service, animation module (ServerAnimationModule.<command>): displayMissionItems, displayUserTriggers, triggerUserTrigger <id> <act> <trigger>, and lower-level tools for developers.
Shard unifier (rsm.<command>): dump (the module's state), banCharFromSession <charId> <sessionId> (marks the character's invitation kicked and tells the scenario service), setWSState <shard> OPEN|DEV|RESTRICTED|CLOSED <message> (who the welcome service of a shard admits).
web/public_php/ring/ serves the Ring window of the game (RingMainURL), for the character in game (?charSlot=):
| Page | |
|---|---|
web_start.php |
The start page: the character's sessions (start, cancel, invite, join, close) and invitations (join) |
join_session.php |
Joins a session, then hands the teleport to the client |
edit_session.php |
Finds, creates or starts the character's edition session, then joins it |
plan_edit_session.php, send_plan_edit_session.php
|
Schedules an edition or animation session |
start_session.php, cancel_session.php, close_session.php
|
|
invite_pioneer.php |
Invites a character by name |
join_shard.php |
Joins a mainland shard |