Repository navigation
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.
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 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: falsewith anArrayorObjecttype) 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.
ctlib.openBugReport({ moduleId: 'your-module' });moduleId preselects your module.
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" }
}-
matchis a list of groups. The report must hit one word from every group. A single word matches the start of any word, sodeletcovers deleted and deleting; a phrase with a space must appear as written. -
modulelimits the entry to reports about that module, and to worlds where it's active. -
fixedInshows the entry only to people on an older version of that module, for bugs a release has already fixed. -
settingadds an Open the Setting button. Withmenu, it opens that settings window (the key it was registered under withgame.settings.registerMenu) and highlightskeyin it. Withoutmenu, it opens Configure Settings atmoduleand highlightskey. The button only appears for settings the reporter can change. -
linkadds a Read More button.
ctlib.suggestFixes(text, moduleId) returns the entries that match a piece of text.
Getting Started
Working With Documents
The Canvas
Interface