feat: stage 3, the /rnpc commands in game #5
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/stage-3-in-game"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
This is stage 3 of
docs/runicnpc/PLAN.md: every verb of §5 as/rnpc <verb>in chat andrnpc.<verb>in a console, behindrunicnpc.placeandrunicnpc.admin(admin includes place; the server console has both).place/heretakekey=valueoptions in any order (D242):count= respawn= mode=each|group move=wander|monument|route:<name> radius=. A placement made in game is named<profile>-<n>(D241), andrenamerenames it; the live NPCs keep their placement and move their owner with it.remove [placement],near,info(the NPC you look at),profiles,tp,respawn <placement|all>,clear <owner>, andrnpc.profile create|show|set|deletefor a standalone server. The last is console only, and is refused while the website manages profiles (D221).path record / point / undo / save [loop|back] / cancel / list / delete(D240). Nothing is drawn on screen.Behaviour the tests forced
notesays so) and returns to its spot once the floor is rebuilt.path pointrefuses a point an NPC cannot walk to from the previous one, using Rust's own path query, andsave looprefuses a loop that cannot close. The first test route climbed a hill a player can walk, and its first point sat on a navmesh island on a rock top: the patrol never moved.RunicNpc_SetPlacementnow refuses a roamer off the navmesh, as the command does. API.md is updated; the API stays at 2, which has not been released.Pos.VandProfile.IsSentrywere being written into every JSON file and API answer. They are[JsonIgnore]now.StringView[]in the current build, so the console verbs read each one throughGetString.One addition for your call
The server console has no position, so there
place,hereandpath pointacceptat=x,y,z(andyaw=). This is also how the harness drives them. In game, these options are refused.Tested
The harness gains
cmd(57 checks) andfloor(7), including the chat path driven as a stand-in player: nothing happens without the permission, andhereandremovework once it is granted.rnt.run all(stage 2's groups + cmd + floor)rnt.afterserver.save+ restart →rnt.afternode scripts/checkPlugin.jsand its tests pass. Both rigs are cleaned: the harness and its data are removed, and RunicNPC's data is restored to empty and unmanaged. This build stays loaded, and thernhrevolvertest kit is still in Kits for the walk.Still to do: the in-game walk, which needs a player. The checklist is in the docs PR (PLAN.md stage 3).
Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY