Example kits keep stale item condition after a Rust update #21
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Found by the staging drill (#20, run 47, Rust staging 26341433).
RunicNPC writes its example kits into Kits' data once, on the first load (
WriteExamplesOnce,examplesWrittenin RunicNPC's state). Each item gets thecondition/maxConditionof the Rust that was running at that moment. On rust-staging the file was older than the build, and the harness'ss6.examples.fullConditionfound:The drill now boots rust-staging from empty data, so the harness no longer trips on it (#20's fix). A real operator can still hit this: a server that installed RunicNPC before a Rust update that changes item durability keeps the old values in its example kits. Its NPCs would then wear armour with 0 condition, or carry weapons at the wrong durability.
Not decided yet (a design question for the org lead):
condition/maxConditionof the example kits' items after a Rust update, but only for kits it wrote and the operator has not changed.rnpcgets a command that rewrites the example kits on request.Not yet checked: whether the 0/0 values came from an older public build, or were captured badly when the file was written (for example, before the item definitions were ready).