an addon loop reports instead of hanging the whole survey

- every addon VM runs under an instruction bound, so a non-terminating loop becomes a report — and the bound promptly caught a landed fix that had been left switched off
- an unrecognised unit token raises the client's own "Unknown unit name" error instead of answering nil
- GetBindLocation answers from a real bind point, and RequestTimePlayed round-trips with TIME_PLAYED_MSG — both halves or neither

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Sam
2026-08-14 19:02:01 +07:00
co-authored by Claude Fable 5
parent 6eae5e8507
commit acbae000a6
17 changed files with 604 additions and 64 deletions
+1 -2
View File
@@ -458,8 +458,7 @@ fn install_time(lua: &Lua) -> mlua::Result<()> {
// Against a string return, `dt["wday"]` is nil, `nil ~= 3` forever, and the addon spins
// the client — which is exactly what it did to the survey the moment a separate fix let
// Accountant reach this function at all.
if false && body == "*t" {
// TOGGLE-A/B
if body == "*t" {
let (year, month, day, hour, min, sec, wday, yday) = civil_from_epoch(secs);
let t = lua.create_table()?;
t.set("year", year)?;