Bug reports
If your plugin has its own "Report a bug", it can add what AXIOM NAV knows. Both calls use a dot, not a colon, answer at once and never throw.
report_state()
What navigation is doing now: at most 12 keys of short strings and rounded numbers.
local s = _G.AXIOM_NAV and _G.AXIOM_NAV.report_state()
-- { version = "v0.24", doing = "walking", state = "navigating.following_path",
-- trip = "to 10200, 2601, 1330 (100 yd left)", pos = "10130.6, 2529.2, 1324.3",
-- map = 530, last_command = "move_to, 66 s ago", stucks = 2, last_error = "unreachable",
-- server = "ok (hosted)", logs = "on" }doing is one of idle, walking, stuck, asking_route, waiting_cast, swimming, riding, arrived, failed.
logs is on (log files are written), off or missing, followed by , kept for reports when no log files are
written but the rows are still kept for report_logs() (the loader's or AXIOM's Debug Mode off). Since v1.32.
report_logs(opts)
AXIOM NAV's log rows for the whole game session, through every F6 (kept on disk per game window, 64 MB at most).
local logs = _G.AXIOM_NAV.report_logs({ since_s = 600 }) -- the last 10 minutes
for name, text in pairs(logs.files) do
-- name: "navigation", "decisions", "lifecycle", ...; text: the rows, one per line
end| Field | Meaning |
|---|---|
files | One entry per log file, rows joined |
names | The file names, sorted |
rows, bytes, warn, error | Counts |
from_t, to_t | First and last row, seconds since this load (negative: from before an F6) |
loads | How many loads (F6s) the rows come from |
cut | Older rows were left out |
window | The game window's id |
| Option | Meaning |
|---|---|
max_bytes = n | The newest rows up to n bytes (default 20 MB, at most 64 MB) |
since_s = s | Only the rows of the last s seconds |
Empty while the player's Debug setting is off. With it on, the rows are kept even while the loader's or AXIOM's Debug Mode is off (then no log files are written, but a report still has the rows). Since v1.32.
perf_state()
For a profiler, once a second: two plain values, the state in full and how many requests wait for the server.
local state, waiting = _G.AXIOM_NAV.perf_state() -- "navigating.awaiting_path", 1AXIOM NAV's own button
Without AXIOM, AXIOM NAV shows its own small Report a bug button and sends reports to the AXIOM Discord. With AXIOM loaded it shows none: AXIOM's own box has an AXIOM_NAV choice.