fix(feed): print weapons by name, not "ak47u entity" #60
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/weapon-names"
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 & why
Found while taking runicgateway.com's phase 18 screenshots (runicgateway.com#39). The bridge names a kill's weapon by the held entity's short prefab name (
ak47u.entity), and the feed printed it with the dots turned to spaces: "with ak47u entity". The org lead chose a game-name table with a stripped fallback, kept in one place on the server (2026-10-23).server/model/titles/weaponNames.js(new) holds the game's own English name for the 53 ranged weapons: guns, bows, crossbows, launchers and flamethrowers.AttackEntity, with its short prefab name and English display name. It's the same walklists.jscame from. The probe is deleted..entity/.weaponending dropped:salvaged_sword.entity→ "salvaged sword".frame.weaponNameinevents.model.jsshape().frame.weapon(the prefab name) stays, because the title lists count by it.weaponName(format.jsweapon(), used byfeed.js). For a server too old to send it, it falls back to the same stripping.swagger-fragment.jsonis regenerated.The app gets the same
weaponName-with-fallback in the Android vocabulary sweep (separate PR intoAndroid-appedge).How it was tested
weaponNames.test.jscovers the table, the fallback, that no table name carries a prefab ending, and thatshape()adds the name and leaves a frame without a weapon alone.weapon()and the kill line.check:imports,check:swagger,vite buildandcheck:externalsall pass.GET /public/rust/servers/rust-oxide/eventsreturns"weapon":"thompson.entity" … "weaponName":"Thompson", and the feed's Kills filter reads "with Thompson", "with Bolt Action Rifle", "with Assault Rifle", "with MP5A4", "with Semi-Automatic Rifle" and "with LR-300 Assault Rifle".Checklist
AI-assisted contributions (required)
Claude Code (Claude Opus 5.5). I have reviewed and understand every change, and take responsibility for it. AI-authored commits are marked with aCo-Authored-Bytrailer.🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY