The restored rig's RunicNPC says it is already managed, so a fresh site adopts none of its profiles and its first push empties them; chat styles are never adopted either. They come from the fixture now, through Module-Rust's onDemoSeed (needs the release carrying DM26; an older module ignores these keys): - npcs.factions: bandits and guards, allied; - npcs.profiles: bandit (roamer, rnpc_raider) and guard (sentry, heavy, rnpc_campguard, heals), both on the demo server. Only the fields that differ from RunicNPC's defaults are listed; - chat: [VIP] in gold and [MOD] in green. The baseline's placements (bandit-1, bandit-2, guard-1) spawn again once the site pushes these. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
159 lines
5.9 KiB
JSON
159 lines
5.9 KiB
JSON
{
|
|
"accounts": {
|
|
"demo-admin": { "role": "admin", "password": "$env:DEMO_ADMIN_PASSWORD" },
|
|
"demo-moderator": { "role": "moderator", "password": "$env:DEMO_MODERATOR_PASSWORD" },
|
|
"demo-player": { "role": "player", "password": "$env:DEMO_PLAYER_PASSWORD" },
|
|
"play-review": { "role": "admin", "password": "$env:PLAY_REVIEW_PASSWORD", "published": false }
|
|
},
|
|
"settings": {
|
|
"site_title": "Runic Gateway Demo",
|
|
"status_message": "A public demo. Look around, change things — every change is wiped every two hours."
|
|
},
|
|
"content": {
|
|
"posts": [
|
|
{
|
|
"category": "news",
|
|
"title": "Welcome to the Runic Gateway demo",
|
|
"slug": "welcome-to-the-demo",
|
|
"body": "<p>This is a live Runic Gateway site, linked to a real Rust server. Sign in with one of the logins on the sign-in page and look around: the admin panel, the moderation queue, a player's own pages.</p><p>You can change most things. A few would break the demo for the next visitor — uploads, the server link, deleting accounts — and those answer <em>This is turned off on the demo site</em>. Everything is put back every two hours.</p>"
|
|
},
|
|
{
|
|
"category": "news",
|
|
"title": "What the Rust module adds",
|
|
"slug": "what-the-rust-module-adds",
|
|
"body": "<p>The server list, the kill feed and the leaderboard come from the game as it happens. Signed in as an admin you can manage permission groups, place NPCs, edit plugin configs and build events that run on the server.</p>"
|
|
}
|
|
],
|
|
"wiki": [
|
|
{
|
|
"slug": "about-this-demo",
|
|
"title": "About this demo",
|
|
"category": "guides",
|
|
"published": true,
|
|
"body": "<h2>The logins</h2><p>The sign-in page lists them, with a button that fills the form: an admin, a moderator and a player.</p><h2>The wipe</h2><p>The site and its Rust server go back to this starting point every two hours, on the hour, UTC. The banner says when the next one is. Anyone signed in is signed out by it.</p><h2>What is turned off</h2><p>Anything that would break the demo for the next visitor: uploads, the contact form, changing the shared logins, the site mode, the server link, and console commands that would stop the server.</p>"
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"title": "Server greeting",
|
|
"summary": "Says hello in the game chat. Run it from Admin → Events.",
|
|
"timezone": "UTC",
|
|
"spec": {
|
|
"schedule": { "kind": "manual" },
|
|
"phases": [
|
|
{
|
|
"key": "main",
|
|
"label": "Greet",
|
|
"steps": [
|
|
{
|
|
"actionId": "rust.command.run",
|
|
"params": {
|
|
"server": "demo",
|
|
"commands": ["say Hello from the Runic Gateway demo site!"],
|
|
"confirm": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"publish": true
|
|
},
|
|
{
|
|
"title": "Treasure drop",
|
|
"summary": "Starts a Dangerous Treasures event: a guarded, burning chest somewhere on the map. Run it from Admin → Events.",
|
|
"timezone": "UTC",
|
|
"spec": {
|
|
"schedule": { "kind": "manual" },
|
|
"phases": [
|
|
{
|
|
"key": "main",
|
|
"label": "Drop the treasure",
|
|
"steps": [
|
|
{ "actionId": "rust.dt.start", "params": { "server": "demo", "level": 0 } }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"publish": true
|
|
},
|
|
{
|
|
"title": "Payday",
|
|
"summary": "Pays every linked player 500 coins through Economics. Run it from Admin → Events.",
|
|
"timezone": "UTC",
|
|
"spec": {
|
|
"schedule": { "kind": "manual" },
|
|
"phases": [
|
|
{
|
|
"key": "main",
|
|
"label": "Pay",
|
|
"steps": [
|
|
{
|
|
"actionId": "rust.coins.pay",
|
|
"params": {
|
|
"server": "demo",
|
|
"amount": 500,
|
|
"recipients": "linked",
|
|
"message": "Payday! You received {amount} coins.",
|
|
"delivery": "chat"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"publish": true
|
|
}
|
|
]
|
|
},
|
|
"modules": {
|
|
"rust": {
|
|
"servers": [
|
|
{
|
|
"id": "demo",
|
|
"name": "Demo server",
|
|
"sidecarBaseUrl": "$env:DEMO_RIG_SIDECAR_URL",
|
|
"sidecarToken": "$env:DEMO_RIG_SIDECAR_TOKEN"
|
|
}
|
|
],
|
|
"links": [
|
|
{ "username": "demo-player", "steamId": "$env:DEMO_PLAYER_STEAM_ID", "serverId": "demo" }
|
|
],
|
|
"npcs": {
|
|
"factions": [{ "a": "bandits", "b": "guards", "relation": "allied" }],
|
|
"profiles": [
|
|
{
|
|
"name": "bandit",
|
|
"servers": ["demo"],
|
|
"body": {
|
|
"kits": ["rnpc_raider"],
|
|
"names": ["Bandit", "Bandit Scout"],
|
|
"role": "roamer",
|
|
"movement": { "mode": "wander", "radius": 20 },
|
|
"health": 150,
|
|
"faction": "bandits"
|
|
}
|
|
},
|
|
{
|
|
"name": "guard",
|
|
"servers": ["demo"],
|
|
"body": {
|
|
"kits": ["rnpc_campguard"],
|
|
"names": ["Camp Guard"],
|
|
"prefab": "scientistnpc_heavy",
|
|
"role": "sentry",
|
|
"health": 300,
|
|
"faction": "guards",
|
|
"kitUse": { "heal": true, "grenades": false, "melee": false, "rockets": false, "flamethrower": false }
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"chat": [
|
|
{ "serverId": "demo", "group": "vip", "style": { "Title": "[VIP]", "TitleColor": "#ffaa00", "UsernameColor": "#ffaa00", "Priority": "10" } },
|
|
{ "serverId": "demo", "group": "moderator", "style": { "Title": "[MOD]", "TitleColor": "#55ff55", "UsernameColor": "#55ff55", "Priority": "50" } }
|
|
]
|
|
}
|
|
}
|
|
}
|