Skip to content

Bug Reports

TheGenieOfTheCode edited this page Oct 3, 2026 · 1 revision

Bug Reports

CTLib gives every module that uses it a bug report window. Players and Directors open it from the bug icon among the chat controls, or from Report a Draw Steel Module Bug in the Settings sidebar.

What your module needs

Nothing, as long as it lists CTLib in relationships.requires and has a public issues page. The window offers every active module that requires CTLib, and sends each report to that module's issues page: the bugs field of its module.json, or url plus /issues when url is a GitHub repository.

"url": "https://github.com/you/your-module",
"bugs": "https://github.com/you/your-module/issues"

A module with neither is treated as unreleased: the window never offers or names it.

What a report contains

  • What went wrong, the steps to reproduce it, and a preferred name or Discord username, if the reporter gives one.
  • The Foundry and Draw Steel versions, the browser, OS and GPU, and whether the reporter is the Director or a player.
  • Every released module that uses CTLib with its version, and the other active modules.
  • The chosen module's settings that differ from their defaults. Settings that hold stored data (config: false with an Array or Object type) are left out.
  • Recent errors from the browser console, which the reporter can leave out.

No world, user, actor or scene names, and no chat content.

Opening it from your module

ctlib.openBugReport({ moduleId: 'your-module' });

moduleId preselects your module.

Known answers

As the reporter types, the window looks for reports that are already answered: behaviour a setting controls, or a bug fixed in a newer version. The list is src/known-issues.json in the CTLib repository. The window reads it from GitHub when it opens, so a new entry reaches everyone without a release, and falls back to the copy that ships with CTLib.

{
  "id": "ct-areas-cleared",
  "module": "draw-steel-combat-tools",
  "match": [["template", "area"], ["delet", "disappear", "vanish", "remov"]],
  "text": "Combat Tools clears an ability's area off the map ... That's the Clear Placed Areas setting.",
  "setting": { "menu": "draw-steel-combat-tools.abilityAutomationSettings", "key": "abilityTemplateCleanup" }
}
  • match is a list of groups. The report must hit one word from every group. A single word matches the start of any word, so delet covers deleted and deleting; a phrase with a space must appear as written.
  • module limits the entry to reports about that module, and to worlds where it's active.
  • fixedIn shows the entry only to people on an older version of that module, for bugs a release has already fixed.
  • setting adds an Open the Setting button. With menu, it opens that settings window (the key it was registered under with game.settings.registerMenu) and highlights key in it. Without menu, it opens Configure Settings at module and highlights key. The button only appears for settings the reporter can change.
  • link adds a Read More button.

ctlib.suggestFixes(text, moduleId) returns the entries that match a piece of text.

Related Pages

Clone this wiki locally