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 (Bugs)
m (General)
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{main| Character Sheet Enhancement}}
+
{{main| Building Character Sheets}}
 
{{NavSheetDoc}}
 
{{NavSheetDoc}}
  
Listing random quirks of the sheet system, especially those related to issues surrounding the [[CSE]] rollout and updated code sanitation on Roll20's part.
+
Listing random quirks of the sheet system, especially those related to coding, editing & updating character sheets.
 +
 
 +
See [[BCS/Updates]] for previously fixed bugs.
 +
 
 +
'''Note:''' The "Month Year" mention at end is a guaranteed last observation of the bug.
  
 
=Bugs=
 
=Bugs=
  
* using optgroups in select doesn't work on custom sheets, even though it works on existing sheets like [[Free Spacer]]
+
==General==
 +
Sheet code/editing bugs that doesn't fit other categories.
 +
 
 +
* '''Using the word <code>eval</code> anywhere in the sheet code will stop everything from working.''' Roll20 have put is as a security measure to prevent eval to be used even in a roundabout way. You cant have attribute or class names that includes it.
 +
** this also prevent you from import google fonts that happen to have "eval" as part of the name
 +
* '''using [[BCS#Dropdown_menu|optgroup]] in <code><nowiki><select></nowiki></code> doesn't work on custom sheets''', even though it works on existing sheets like [[Free Spacer]]
 
** {{fpl|10017485/ discussion}} May 2021
 
** {{fpl|10017485/ discussion}} May 2021
 +
** workaround: [[CSS_Wizardry#Optgroup]]
 +
* '''"Newly-dropped characters now must fully resolve before closing the window"'''
 +
** {{fpl|10066145/ rapport}} by [[Keith]] May 2021
 +
** possibly fixed
 +
* '''translation special character bug''' {{fpl|10111515 discussion}} May 2021
 +
** avoid placing symbols & special characters in translations
 +
* '''changing default value of attributes will change untouched values of existing sheet.''' May 2021
 +
** Ex. <code><input value="a"></code> to <code><input value="b"></code>
 +
** {{repo|Roll20/roll20-character-sheets/pull/8955 example of instance of this bug being reverted}}
  
 +
==Sheetworkers==
 +
Bugs in how [[sheetworkers]] function.
 +
 +
[[Sheet_Worker_Scripts#JavaScript_Restrictions|JavaScript Restrictions]]
 +
 +
* '''"Ghost Rows"''' in repeating sections when a dash '-' is used in the section name {{fpl|9643364 full description & reporduction steps}} - found by [[Peter B.]] Jan 2021
 +
* {{fpl|10270267/ Sheet workers are now both case sensitive, and case-insensitive. (probably a bug)}} [[User:1223200|1223200]] ([[User talk:1223200|talk]]) 15:34, 25 July 2021 (UTC)
 
==CSE==
 
==CSE==
Bugs related to [[CSE]].
+
Bugs related to [[CSE|Character Sheet Enhancement(CSE)]].
  
 
* 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]]) 12:57, 21 April 2021 (UTC)
 
* 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]]) 12:57, 21 April 2021 (UTC)
Line 17: Line 42:
 
* '''[[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.
 
** Only appears to happen in [[CSE]]-mode. reported by Ayethin & [[Vince]]
 
** 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 <code>&amp;quot;</code> should be changed to <code>&amp;amp;quot;</code>.
 +
** Roll20 have {{fpl|10260308/ under testing}} improvements to make html characters redundant
  
 
* in some cases, <code>.charsheet</code> needs to be added to the CSS classes, which previously worked fine with [[Legacy Sheet]]
 
* in some cases, <code>.charsheet</code> needs to be added to the CSS classes, which previously worked fine with [[Legacy Sheet]]
Line 24: Line 50:
 
** [[Chris D.]] may have uncovered strange behavior with CSS comments using multiple asterisk characters. eg <code>/******/</code>
 
** [[Chris D.]] may have uncovered strange behavior with CSS comments using multiple asterisk characters. eg <code>/******/</code>
 
** [[Scott C.]] notes that this may be an older bug{{source|https://app.roll20.net/forum/permalink/10007760/}} and suggests to use <code>#</code> instead.  eg <code>/*######*/</code>  
 
** [[Scott C.]] notes that this may be an older bug{{source|https://app.roll20.net/forum/permalink/10007760/}} and suggests to use <code>#</code> instead.  eg <code>/*######*/</code>  
 
+
* detail & summary element styling is inconsistent between browsers/versions {{fpl|10029180/ details}}
* '''fixed''' <strike>issues with @import</strike> {{fpl|10024551/ Release Note for April 27, 2021}}
+
** <strike>if a @import exists, it seems it might result in roll20 ignoring the first instance of the next css class in the file, workaround is to add an empty, "sacrificial" version of the class first that will be eaten up, and the one after will work normally </strike>
+
 
+
  
  
 
==LCS==
 
==LCS==
Bugs that only affect [[Legacy Sheet|Legacy Sheets]].
+
Bugs that only affect [[Legacy Sheet|Legacy Character Sheets(LCS)]].
  
==Sheetworkers==
+
* In legacy mode, the '''number comparison functions stop working if the number you are comparing is below zero'''. {{fpl|10147120/ mention June 2021}}
Bugs in how [[sheetworkers]] function.
+
 
+
[[Sheet_Worker_Scripts#JavaScript_Restrictions|JavaScript Restrictions]]
+
 
+
* '''"Ghost Rows"''' in repeating sections when a dash '-' is used in the section name {{fpl|9643364 full description & reporduction steps}} - found by [[Peter B.]] Jan 2021
+
  
 
==Github==
 
==Github==
Line 46: Line 64:
 
** {{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]]) 15:39, 5 May 2021 (UTC))
 +
  
 
=See Also=
 
=See Also=

Revision as of 08:45, 27 July 2021

Main Page: Building Character Sheets


Listing random quirks of the sheet system, especially those related to coding, editing & updating character sheets.

See BCS/Updates for previously fixed bugs.

Note: The "Month Year" mention at end is a guaranteed last observation of the bug.

Contents

Bugs

General

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

  • Using the word eval anywhere in the sheet code will stop everything from working. Roll20 have put is as a security measure to prevent eval to be used even in a roundabout way. You cant have attribute or class names that includes it.
    • this also prevent you from import google fonts that happen to have "eval" as part of the name
  • using optgroup in <select> doesn't work on custom sheets, even though it works on existing sheets like Free Spacer
  • "Newly-dropped characters now must fully resolve before closing the window"
  • translation special character bug discussion(Forum) May 2021
    • avoid placing symbols & special characters in translations
  • changing default value of attributes will change untouched values of existing sheet. May 2021

Sheetworkers

Bugs in how sheetworkers function.

JavaScript Restrictions

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
  • in some cases, .charsheet needs to be added to the CSS classes, which previously worked fine with Legacy Sheet
    • ex. .charsheet span{ width: 150px;}, instead of span{ width: 150px;}
  • Asterisks disappearing from CSS comments. examples & discussion(Forum)
    • Chris D. may have uncovered strange behavior with CSS comments using multiple asterisk characters. eg /******/
    • Scott C. notes that this may be an older bug and suggests to use # instead. eg /*######*/
  • detail & summary element styling is inconsistent between browsers/versions details(Forum)


LCS

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)

Github

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

  • 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. logo.jpg to logo2.jpg.


See Also