GhiaccioScripts

Weapon Editor

Commands & permissions

Commands, self-test, and the (absence of) public exports and events.

#Commands

CommandWherePermissionDescription
/weaponeditorIn gameuse or higherOpens the editor. Name set by Config.Command
/weaponeditor_closeIn gamenoneEmergency exit if the mouse stays locked
/gwe_rescanServeradminRescan the weapon resources running on the server
/wepeditor_selftest [id] [check]ServeradminPASS / FAIL / INFO report in the server console

From the server console pass the id of a connected player: wepeditor_selftest <id>.

#Self-test

/wepeditor_selftest checks:

  • LIVE (S1/S2): damage modifier and getter, spread, recoil, explosion radius, global natives, state bag read.
  • S5 (INFO): data_file_extra format and io.popen listing. If unavailable use Config.ExtraMetaFiles.
  • S6: SaveResourceFile into the patch. Prints the add_filesystem_permission line to add if denied.
  • S3 (INFO): reports that hot reload does not work on build 3258.
  • S7 (instructions): set the Pistol ClipSize to 50 in the editor, save, reconnect, then run /wepeditor_selftest check (console: wepeditor_selftest <id> check). It compares the client values with the saved override.

The self-test never changes Config.HotReload.

#Exports

The Weapon Editor registers no public exports.