From 38aef5964e5280ecb00d7ece69cbb549be096513 Mon Sep 17 00:00:00 2001 From: wtclaude Date: Tue, 27 Oct 2026 20:16:27 -0500 Subject: [PATCH] feat(demo): seed the default set's NPC profiles, factions and chat titles (DM26) 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 Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY --- deploy/demo/seed.json | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/deploy/demo/seed.json b/deploy/demo/seed.json index 03040a1..5921b23 100644 --- a/deploy/demo/seed.json +++ b/deploy/demo/seed.json @@ -118,6 +118,40 @@ ], "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" } } ] } }