Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Character Sheet Development/Bugs & Quirks"

From Roll20 Wiki

Jump to: navigation, search
m
m (General)
 
(8 intermediate revisions by 4 users not shown)
Line 19: Line 19:
 
** workaround: [[CSS_Wizardry#Optgroup]]
 
** workaround: [[CSS_Wizardry#Optgroup]]
 
* '''"Newly-dropped characters now must fully resolve before closing the window"'''
 
* '''"Newly-dropped characters now must fully resolve before closing the window"'''
** {{fpl|10066145/ rapport}} by [[Keith]] May 2021
+
** {{fpl|10066145/ report}} by [[Keith]] May 2021
 
** possibly fixed
 
** possibly fixed
 
* '''changing default value of attributes will change untouched values of existing sheet.''' May 2021
 
* '''changing default value of attributes will change untouched values of existing sheet.''' May 2021
Line 41: Line 41:
 
* any regular attributes with {{code|_repeating}} in the attribute-name do not trigger API events. i.e. {{code|delete_repeating_rows}} will fail. {{fpl|10341225/ observation by Vince}} Aug 2021
 
* any regular attributes with {{code|_repeating}} in the attribute-name do not trigger API events. i.e. {{code|delete_repeating_rows}} will fail. {{fpl|10341225/ observation by Vince}} Aug 2021
 
* Using {{code|<nowiki><table></nowiki>}} inside [[Repeating Sections]] might interfere with [[sheetworkers]]. Details: {{fpl|10631126 Button/Sheetworker not working}} ''(Jan 2022)''
 
* Using {{code|<nowiki><table></nowiki>}} inside [[Repeating Sections]] might interfere with [[sheetworkers]]. Details: {{fpl|10631126 Button/Sheetworker not working}} ''(Jan 2022)''
 +
** '''Work around:''' If you set the action button to have {{code|position: relative;}} then action buttons work! These positions also work: {{code|absolute}} and {{code|sticky}}. All other positions seems to render the button inoperable
 +
<pre style="overflow:auto;white-space:pre-wrap;" data-language="css">
 +
div.repcontainer:not(.editmode) div.repitem td button[type="action"],
 +
div.repcontainer:not(.editmode) div.repitem th button[type="action"] {
 +
    position: relative;
 +
}</pre>
 +
* Sometimes Roll20 adds the <code>repitembroken</code> CSS class to repeating section row, which adds a red outline to the repeating item. The exact circumstances in which the repeating item is deemed broken are unclear:
 +
** [https://app.roll20.net/forum/post/3232176/cant-delete-items-in-repeating-sections-in-pathfinder-character-sheet/?pageforid=3246414#post-3246414 this forum post] from the Roll20 team says this happens when a deleted row is re-created with the same [[RowID]]
 +
** [https://app.roll20.net/forum/post/6882084/weird-red-box/?pageforid=6882372#post-6882372 this forum post] from [[Scott C.]] says this happens when creating new row and editing existing rows with a single [[Sheet Worker Scripts#setAttrs|setAttrs()]]
 +
** [https://app.roll20.net/forum/post/10384813/repeating-section-entries-duplicates-bordered-red this post] says that it happens when two rows share the same [[RowID]]. When that happens, all interactions with the repeating section using that [[RowID]] will affect both rows, since they are essentially indistinguishable.
 +
** It has also been observed when creating new, non-duplicated rows with custom [[RowID]] using [[Sheet Worker Scripts#setAttrs|setAttrs()]] in a new blank character, so there might be other circumstances that trigger this behavior
  
 
===Sheetworkers===
 
===Sheetworkers===
Line 54: Line 65:
 
Bugs related to [[CSE|Character Sheet Enhancement(CSE)]].
 
Bugs related to [[CSE|Character Sheet Enhancement(CSE)]].
  
* [[BCS/Roll Templates|Roll Template]]-styling sometimes completely disappears and doesn't work when trying to convert from [[LCS]] to CSE. [[User:1223200|1223200]] ([[User talk:1223200|talk]]) 21 April 2021  
+
* [[BCS/Roll Templates|Roll Template]]-styling sometimes completely disappears and doesn't work when trying to convert from [[LCS]] to CSE. [[User:1223200|1223200]] ([[User talk:1223200|talk]]) 21 April 2021
** {{fpl|10006227/ thread discussing issues.}}
+
** [https://app.roll20.net/forum/post/10927407/problem-with-rolltemplate-css-no-longer-showing problem with rolltemplate css] June 2022
 
** https://app.roll20.net/forum/post/10618214/roll-template-broken-in-production-but-works-as-custom-sheet-or-in-a-sandbox Jan 2022
 
** https://app.roll20.net/forum/post/10618214/roll-template-broken-in-production-but-works-as-custom-sheet-or-in-a-sandbox Jan 2022
 +
** {{fpl|10006227/ thread discussing issues.}} April 2021
  
 
* '''[[Macro_Guide#HTML_replacement|HTML replacement characters]] have been observed to sometimes be converted prematurely''' after the CSE update was made which can cause sheet roll macros to break.
 
* '''[[Macro_Guide#HTML_replacement|HTML replacement characters]] have been observed to sometimes be converted prematurely''' after the CSE update was made which can cause sheet roll macros to break.
Line 78: Line 90:
  
 
* In legacy mode, the '''number comparison functions stop working if the number you are comparing is below zero'''. {{fpl|10147120/ mention June 2021}}
 
* In legacy mode, the '''number comparison functions stop working if the number you are comparing is below zero'''. {{fpl|10147120/ mention June 2021}}
 +
 +
==API==
 +
API/Mod changes to linked token bars do not trigger sheetworkers, however Mods can be modfified to detect if a linked bar has been changed and in turn, change the linked attribute.
 +
TokenMod has been updated to detect and change linked attributes in this manner.
  
 
==Github==
 
==Github==
Line 94: Line 110:
 
* [[Building_Character_Sheets#Common_Mistakes|Common Mistakes - Character Sheet Development]]
 
* [[Building_Character_Sheets#Common_Mistakes|Common Mistakes - Character Sheet Development]]
 
* [[Character Sheet Development/Updates]] - Changelog of recent bugfixes
 
* [[Character Sheet Development/Updates]] - Changelog of recent bugfixes
 +
* [https://app.roll20.net/forum/permalink/11029363/ Bugs/Missing Feature Parity/Desired Features for Mods] Aug 2022 thread by [[Aaron]]
  
 
[[Category:Character Sheet Creation]]
 
[[Category:Character Sheet Creation]]
 +
[[Category:Character Sheet Development]]

Latest revision as of 16:00, 24 December 2023


This page lists observed Bugs and odd quirks of the Character Sheet-system, especially those related to coding, editing & updating character sheets.

  • See Restrictions for quirks that aren't explicit bugs.
  • See BCS/Updates for previously fixed bugs, of bugs that may have a fix under public testing on the Dev Server

Note: The "Month Year" mention at end is a guaranteed last observation of the bug, or when it was documented.

Contents

[edit] Bugs

[edit] General

Sheet code/editing bugs that doesn't fit other categories.

[edit] Translation

  • translation special character bug discussion(Forum) May 2021
    • avoid placing symbols & special characters in translations. CouldHTML Entities be used instead?
  • language-dependent sheet changes doesn't seem to work. See #9053 for details. Summer 2021
  • Sheet Sandbox & Translation key refresh issue -- May 2022
    • you need to manually reload page if you use getTranslationByKey() and have uploaded new translation.json in the sandbox
    • getTranslationByKey() throws a the key is not in the translation object error when the key is in the translation file, in the sandbox if you don't make the page reload.
    • seems the translation object as far as getTranslationByKey() is concerned is not updated when you use the sandbox widget to upload a fresh translation.json

[edit] Repeating Sections

div.repcontainer:not(.editmode) div.repitem td button[type="action"],
div.repcontainer:not(.editmode) div.repitem th button[type="action"] {
    position: relative;
}
  • Sometimes Roll20 adds the repitembroken CSS class to repeating section row, which adds a red outline to the repeating item. The exact circumstances in which the repeating item is deemed broken are unclear:
    • this forum post from the Roll20 team says this happens when a deleted row is re-created with the same RowID
    • this forum post from Scott C. says this happens when creating new row and editing existing rows with a single setAttrs()
    • this post says that it happens when two rows share the same RowID. When that happens, all interactions with the repeating section using that RowID will affect both rows, since they are essentially indistinguishable.
    • It has also been observed when creating new, non-duplicated rows with custom RowID using setAttrs() in a new blank character, so there might be other circumstances that trigger this behavior

[edit] Sheetworkers

Bugs in how sheetworkers function.

JavaScript Restrictions

[edit] CSE

Bugs related to Character Sheet Enhancement(CSE).

  • HTML replacement characters have been observed to sometimes be converted prematurely after the CSE update was made which can cause sheet roll macros to break.
    • Only appears to happen in CSE-mode. reported by Ayethin & Vince
    • Workaround: since nested quotes and/or queries that include special characters may break in CSE-mode, try substituting the ampersand character as well. ie &quot; should be changed to &amp;quot;.
    • Roll20 have under testing(Forum) improvements to make html characters redundant

[edit] Legacy Sheet

Bugs that only affect Legacy Character Sheets(LCS).

  • In legacy mode, the number comparison functions stop working if the number you are comparing is below zero. mention June 2021(Forum)

[edit] API

API/Mod changes to linked token bars do not trigger sheetworkers, however Mods can be modfified to detect if a linked bar has been changed and in turn, change the linked attribute. TokenMod has been updated to detect and change linked attributes in this manner.

[edit] Github

Bug affecting how sheets uploaded to the sheet repo work or function.

[edit] See Also