Skip to content

Error console: a screen of the game's Lua errors, with a badge of the new ones - #170

Open
vadi2 wants to merge 1 commit into
mainfrom
ccr-14671218-tf96z6-error-console-ui
Open

vadi2 wants to merge 1 commit into
mainfrom
ccr-14671218-tf96z6-error-console-ui

Conversation

@vadi2

@vadi2 vadi2 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Brief overview of PR changes/additions

  • A screen per game showing its error console as desktop's editor does: Lua errors, printError() and debugc() lines, newest at the foot, each with its time, the item that raised it and the line.
  • Tap an entry raised by an item to open that trigger, alias, script, timer, key or button in the script library.
  • Copy all (the newest entries that fit in 100000 characters, well under Android's clipboard limit) and Clear, both in the title bar.
  • A badge counting the errors not yet seen (debugc() lines not counted), on the game's Scripts button and on the script library's new Errors button. TalkBack reads it with the button's name.
  • While the screen is open, TalkBack reads each new error once, and the list follows new entries while the newest is in view.
  • The game's console reads its line count once per composition: a clear between composition and layout (a new engine instance) gave two items its tail's key and crashed.

Motivation for adding to Mudlet

A player whose script fails on a phone needs to see what failed and go to it, as on desktop. This is the screen on top of the engine's list from #150.

Other info (issues closed, discussion etc)

🤖 Generated with Claude Code

https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J

@vadi2
vadi2 force-pushed the ccr-14671218-tf96z6-error-console-ui branch 3 times, most recently from e015fd1 to 579d71a Compare November 18, 2026 02:14
… new ones

The script library's title bar gets an Errors button that opens the profile's error console: each Lua error,
printError() and debugc() since the profile loaded, newest at the foot, with when it came, what raised it and Lua's
message. An entry raised by an item opens that item's page. Copy all puts the newest entries that fit the clipboard
on it, and Clear asks the engine to empty the console. The game's Scripts button and the Errors button carry a badge
of the errors not yet seen, which TalkBack reads with the button's name, and while the console shows TalkBack says
each new error once.

The game's console reads its line count once per composition: its keys read the live count at measure time, so
lines cleared in between, as a new engine instance does, gave two items the tail's key and crashed the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ujaeFyaqXXDx8xjoThE6J
@vadi2
vadi2 force-pushed the ccr-14671218-tf96z6-error-console-ui branch from 579d71a to 074c813 Compare November 18, 2026 03:08

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants