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
 
(16 intermediate revisions by 5 users not shown)
Line 7: Line 7:
 
* See '''[[Character_Sheet_Development/Feature_Updates|BCS/Updates]]''' for previously fixed bugs, of bugs that may have a fix under public testing on the [[Dev Server]]
 
* See '''[[Character_Sheet_Development/Feature_Updates|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.
+
'''Note:''' The "Month Year" mention at end is a guaranteed last observation of the bug, or when it was documented.
  
 
=Bugs=
 
=Bugs=
 +
 +
* {{fpl|11907543/ Inline Styles Sanitization}} - Uploading new sheets to roll20 causes any inline CSS in the HTML to no longer work, and this isn't seen in Sheet Sandbox. -  May 2024
 +
** Roll20 is working on a fix{{source|https://app.roll20.net/forum/permalink/11911428/ May 22nd}}
 +
 +
==Jumpgate==
 +
* issues with character sheets, both with the old system and the [[Beacon SDK]] comes and goes with Jumpgate being updated. Sometimes issues only occur in Jumpgate games, but in rare cases issues might have also affected non-jumpgate games.
 +
 +
==Beacon==
 +
??
  
 
==General==
 
==General==
Line 19: Line 28:
 
** 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 26: Line 35:
 
* {{fpl|10308595/ Unicode character in CSS "content" breaks roll templates}} [[User:1223200|1223200]] ([[User talk:1223200|talk]]) 14:49, 12 August 2021 (UTC)
 
* {{fpl|10308595/ Unicode character in CSS "content" breaks roll templates}} [[User:1223200|1223200]] ([[User talk:1223200|talk]]) 14:49, 12 August 2021 (UTC)
 
* [https://app.roll20.net/forum/post/10576120/cant-appear-to-use-certain-emojis-in-a-character-sheet certain emojis & unicode characters are removed] from character sheets, so can't be reliably used. Use images instead. Dec 2021
 
* [https://app.roll20.net/forum/post/10576120/cant-appear-to-use-certain-emojis-in-a-character-sheet certain emojis & unicode characters are removed] from character sheets, so can't be reliably used. Use images instead. Dec 2021
* '''[[i18n|translation]]'''
+
===[[i18n|Translation]]===
** '''translation special character bug''' {{fpl|10111515 discussion}} May 2021
+
* '''translation special character bug''' {{fpl|10111515 discussion}} May 2021
*** avoid placing symbols & special characters in translations. Could[[HTML Entities]] be used instead?  
+
** avoid placing symbols & special characters in translations. Could [[HTML Entities]] be used instead?  
** language-dependent sheet changes doesn't seem to work. See [https://github.com/Roll20/roll20-character-sheets/issues/9053 #9053] for details. Summer 2021
+
* language-dependent sheet changes doesn't seem to work. See [https://github.com/Roll20/roll20-character-sheets/issues/9053 #9053] for details. Summer 2021. Discussions of the bug:
 +
** [https://app.roll20.net/forum/permalink/11002727/ Language specific styling?] July 2023
 +
** [https://app.roll20.net/forum/post/11920498/css-language-specific-styling-lang-undefined-kludge CSS language specific styling (lang-undefined). Kludge.] - June 2024
 +
* '''Sheet Sandbox & Translation key refresh issue''' -- May 2022
 +
** you need to manually reload page if you use {{c|getTranslationByKey()}} and have uploaded new {{c|translation.json}} in the sandbox
 +
** {{c|getTranslationByKey()}} throws a {{c|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 {{c|getTranslationByKey()}} is concerned is not updated when you use the sandbox widget to upload a fresh {{c|translation.json}}
  
 
===[[Repeating Sections]]===
 
===[[Repeating Sections]]===
Line 38: Line 53:
 
* 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 51: Line 77:
 
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 75: Line 102:
  
 
* 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 81: Line 112:
 
* '''replacing sheet images on github doesn't always update on sheet''' to make sure images change on sheet when updating/replacing them, change their name/reference in the code, eg. <code>logo.jpg</code> to <code>logo2.jpg</code>.
 
* '''replacing sheet images on github doesn't always update on sheet''' to make sure images change on sheet when updating/replacing them, change their name/reference in the code, eg. <code>logo.jpg</code> to <code>logo2.jpg</code>.
 
** {{repo|Roll20/roll20-character-sheets/issues/8380 discussion on the bug}}
 
** {{repo|Roll20/roll20-character-sheets/issues/8380 discussion on the bug}}
** This minor bug have been observed occasionally since 2019(?) ([[User:1223200|1223200]] ([[User talk:1223200|talk]]) 15:39, 5 May 2021 (UTC))
+
** This minor bug have been observed occasionally since 2019(?) ([[User:1223200|1223200]] ([[User talk:1223200|talk]]) May 2021 )
 
+
* '''Sometimes merged updates don't go live on Roll20''' - have happened both to updates of existing sheets, as well as new sheets not appearing in the sheet menu even if merged & .yaml was updated. (First case Q4 2021 or earlier)
 +
** past instances: Github Issues: [https://github.com/Roll20/roll20-character-sheets/issues/10367 #10367 The Between], [https://github.com/Roll20/roll20-character-sheets/issues/10188 #10188 Mutant Year Zero], [https://github.com/Roll20/roll20-character-sheets/issues/9948 #9948 Vast Grimm], [https://github.com/Roll20/roll20-character-sheets/pull/10419 PR #10419 - ADnD 2E Revised]]
 +
** [https://github.com/Roll20/roll20-character-sheets/pull/10419#issuecomment-1088006100 renaming files & folders on github] might have higher risk of causing this
 +
** ''Suspicion: it's a bug in roll20's sheet update services that was introduced in [[BCS/Updates#March_2|March 2021]] [[User:1223200|1223200]] ([[User talk:1223200|talk]]) 10:06, 5 April 2022 (UTC)''
  
 
=See Also=
 
=See Also=
Line 88: Line 122:
 
* [[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 09:59, 17 November 2024


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

  • Inline Styles Sanitization(Forum) - Uploading new sheets to roll20 causes any inline CSS in the HTML to no longer work, and this isn't seen in Sheet Sandbox. - May 2024

[edit] Jumpgate

  • issues with character sheets, both with the old system and the Beacon SDK comes and goes with Jumpgate being updated. Sometimes issues only occur in Jumpgate games, but in rare cases issues might have also affected non-jumpgate games.

[edit] Beacon

??

[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. Could HTML Entities be used instead?
  • language-dependent sheet changes doesn't seem to work. See #9053 for details. Summer 2021. Discussions of the bug:
  • 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