Difference between revisions of "Using Custom Character Sheets"
From Roll20 Wiki
Andreas J. (Talk | contribs) m (Legacy Sheet mention) |
m (→The Sheet Editor) |
||
(14 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | {{NavSheetDoc}} | + | {{Revdate}}{{BCS}}{{NavSheetDoc}}{{pro features}} |
− | {{pro only}} | + | {{pro only|page}} |
''Main Page:'' '''[[Building Character Sheets]]''' | ''Main Page:'' '''[[Building Character Sheets]]''' | ||
==Using Custom Character Sheets== | ==Using Custom Character Sheets== | ||
− | There are two methods of using Custom Character Sheets, The "[[Sheet Editor|The Sheet Editor]]", and the "[[Custom Sheet Sandbox|Sheet Sandbox]]". | + | There are two methods of using Custom Character Sheets, The "[[Sheet Editor|The Sheet Editor]]"(for your normal games), and the "[[Custom Sheet Sandbox|Sheet Sandbox]]"(for better & quicker sheet testing). |
− | The former is accessed and used in campaign where the character sheet option have been set to "Custom" in the [[Game_Settings_Page#Character_Sheet_Template|Game Settings]] page, and the latter is a tool used for | + | The former is accessed and used in [[campaign]] where the character sheet option have been set to "Custom" in the [[Game_Settings_Page#Character_Sheet_Template|Game Settings]] page, and the latter is a tool used for [[Character Sheet Development]], where you upload your code as files. Either one can only be accessed by the [[Creator]] of the game. |
+ | __TOC__ | ||
=== Find Code=== | === Find Code=== | ||
− | The sourcecode to all community-created Roll20 sheets can be found on {{repo|Roll20/roll20-character-sheets Github}}. The code for each sheet are organized in folders, and each sheet consists of a <code>.html</code>-file, a <code>.css</code>-file, and possibly a <code>translation.json</code>file located in the root folder for the sheet. There are also other files there, but those are optional files used for sheet development, and not needed when using custom sheets in a game. | + | The sourcecode to all community-created Roll20 sheets can be found on {{repo|Roll20/roll20-character-sheets (Github)}}. The code for each sheet are organized in folders, and each sheet consists of a <code>.html</code>-file, a <code>.css</code>-file, and possibly a <code>translation.json</code>file located in the root folder for the sheet. There are also other files there, but those are optional files used for sheet development, and not needed when using custom sheets in a game. |
To get the code: | To get the code: | ||
* download the files and copy the code from the files when you paste them to the correct sections in the [[Sheet Editor]], | * download the files and copy the code from the files when you paste them to the correct sections in the [[Sheet Editor]], | ||
− | * or navigate to the individual file's page on github, and press on the "show raw" button, and press | + | * or navigate to the individual file's page on github, and press on the "show raw" button, and press {{button|Ctrl}}+{{button|A}}(select all), then {{button|Ctrl}}+{{button|C}} to copy, and then go to the Sheet Editor and {{button|Ctrl}}+{{button|V}} to paste the code in the corresponding tab. |
+ | The latest code for '''Official Roll20 sheets''' (those with a '''by Roll20''' in their name ) in the "character sheet template"-dropdown aren't unfortunately public, but for some of them, an older version(from March 2020) can be found: | ||
− | + | '''(Old) sourcecode for "by Roll20"-char sheets:''' | |
− | * [[D&D 5E by Roll20]] - {{ | + | * [[D&D 5E by Roll20]] - code: {{repo|Roll20/roll20-character-sheets/tree/master/DD5thEditionLegacy D&D 5E by Roll20}} | (very outdated) |
− | * [[PF2E]] {{ | + | * [[PF2E|Pathfinder Second Edition]] - code: {{repo|Roll20/roll20-character-sheets/tree/master/Pathfinder%20Second%20Edition%20by%20Roll20 Pathfinder 2E by Roll20}} | (very outdated) |
− | * [[Pathfinder_Official|Pathfinder by Roll20]] - {{ | + | * [[Pathfinder_Official|Pathfinder by Roll20]] (1E) - code: {{repo|Roll20/roll20-character-sheets/tree/master/Pathfinder%20by%20Roll20 Pathfinder by Roll20}} | (mostly up to date) |
− | * [[Starfinder Official|Starfinder by Roll20]] {{ | + | * [[Starfinder Official|Starfinder by Roll20]] - code: {{repo|Roll20/roll20-character-sheets/tree/master/Starfinder%20by%20Roll20 Starfinder by Roll20}} | (mostly up to date) |
+ | * Gumshoe by Roll20 - code: {{repo|Roll20/roll20-character-sheets/tree/master/Gumshoe%20by%20Roll20 sourcecode}} | unknown | ||
− | + | {| role="presentation" class="wikitable mw-collapsible mw-collapsed" | |
− | + | |'''sourcecode for "by Roll20"-char sheets that isn't outdated:''' | |
+ | |- | ||
+ | |These are "by Roll20"-sheet that Roll20 created long ago, and haven't updated in years, so should be 1-to-1 with the version from the menu. | ||
+ | * 13th Age by Roll20 - code: {{repo|Roll20/roll20-character-sheets/tree/master/13th%20Age%20by%20Roll20 sourcecode}} | ||
+ | * Burn Bryte(old playtest 2019)- code: {{repo|Roll20/roll20-character-sheets/tree/master/Burn%20Bryte%20by%20Roll20 sourcecode}} | ||
+ | * Chronicles of Darkness by Roll20 - code: {{repo|Roll20/roll20-character-sheets/tree/master/Chronicles%20of%20Darkness%20by%20Roll20 sourcecode}} | ||
+ | ** The '''Chronicles of Darkness''' sheet is a better version of the sheet, as it's maintained & updated by the community, while the "by Roll20"-version haven't been updated since Oct 2019 {{repo|Roll20/roll20-character-sheets/tree/master/Chronicles%20of%20Darkness sourcecode}} | ||
+ | * Cypher Systems by Roll20 - code: {{repo|Roll20/roll20-character-sheets/tree/master/Cypher%20Systems%20by%20Roll20 sourcecode}} | ||
+ | * Dungeon World by Roll20 - code: {{repo|Roll20/roll20-character-sheets/tree/master/Dungeon%20World%20by%20Roll20 sourcecode}} | ||
+ | * Star Trek Adventures by Roll20 - code: {{repo|Roll20/roll20-character-sheets/tree/master/Star%20Trek%20Adventures%20by%20Roll20 sourcecode}} | ||
+ | |} | ||
=== The Sheet Editor === | === The Sheet Editor === | ||
− | ''Main Article:'' '''[[Sheet Editor]]''' | + | [[File:Game Settings Menu Options.jpg|350px|thumbnail|left]]''Main Article:'' '''[[Sheet Editor]]''' |
− | + | ||
− | + | <br><br> | |
− | To | + | To use a custom character sheet in an existing game: |
'''1.''' Go to a Campaign's/Game's [[Game_Management#Game_Details_Page|Details Page]]. | '''1.''' Go to a Campaign's/Game's [[Game_Management#Game_Details_Page|Details Page]]. | ||
Line 33: | Line 46: | ||
'''2.''' Click the [[Game Management#Settings|Settings]]-button, and select [[Game_Settings_Page|Games Settings]]. | '''2.''' Click the [[Game Management#Settings|Settings]]-button, and select [[Game_Settings_Page|Games Settings]]. | ||
− | '''3.''' On the Game settings page, you select '''"Custom"''' from the [[Game_Settings_Page#Character_Sheet_Template|Character Sheet Template]] menu. | + | '''3.''' On the Game settings page, you select '''"Custom"''' from the [[Game_Settings_Page#Character_Sheet_Template|Character Sheet Template]] menu.<br clear=left> |
+ | [[File:Legacy-Sanitization-checkbox.png|thumbnail|550px|left| Check the box if you want to use (older) [[LCS|legacy code]]. ]] | ||
+ | <br><br>'''4.''' If you want to use char sheet code that made prior March 2021, check the box for [[Legacy Sanitization]]. If you leave it unchecked, you can use code compatible with the [[Character Sheet Enhancement]] Update. | ||
+ | <br clear=left> | ||
+ | [[File:Custom-sheet-editor-tabs.gif|thumbnail|600px|left| The 4 tabs of the [[Sheet Editor]]. Remember that the [[#Preview Panel|Preview]]-tab is almost never accurate.]] | ||
+ | <br><br><br><br> | ||
+ | The editor (shown below) has four tabs: '''HTML Layout''', '''CSS Styling''', '''[[Character Sheet Translation|Translation]]''', and '''Preview'''. | ||
+ | You copy your HTML and CSS to their respective tabs, and if the sheet has translation files, you copy the content of the default translation file(usually English), or for the language you want. | ||
− | + | Then scroll down the page and press the <span style="color: white;background-color: #02baf2;border: 1px solid transparent;font-size: 16px;line-height: 1.6;border-radius: 4px;padding: 7px;border-color: #2e6da4;margin-bottom: 0;font-size: 14px;font-weight: normal;line-height: 1.42857143;text-align: center;white-space: nowrap;vertical-align: middle;background-image: none;text-decoration: none;font-family: Helvetica,Arial,sans-serif;cursor: pointer;">Save Changes</span> button. | |
− | [[File: | + | |
+ | <br clear=right> | ||
+ | [[File:Char-sheet-no-translations.png|thumbnail|450px|right| Example of a character sheet template, missing it's translation file. {{repo|Roll20/roll20-character-sheets/tree/master/cepheus-atom Cepheus Atom}}]] | ||
+ | <br clear=left> | ||
+ | ==== Common Mistake ==== | ||
+ | {{orange|'''Common Mistake:''' If the sheet needs the [[Character Sheet Translation|translation file]], and you don't copy it to your game, all/most text on it will show red text and the name of the language tag for each section, as seen in the example.}} | ||
+ | <br clear=all> | ||
− | |||
− | |||
==== Preview Panel ==== | ==== Preview Panel ==== | ||
[[File:Preview-panel.png|500px|thumbnail|right|The "Preview Panel/Sheet Editor" showing a preview of a character sheet. This preview is not identical to how the sheet looks in Roll20, and is only an approximation.]] | [[File:Preview-panel.png|500px|thumbnail|right|The "Preview Panel/Sheet Editor" showing a preview of a character sheet. This preview is not identical to how the sheet looks in Roll20, and is only an approximation.]] | ||
− | {{ | + | |
+ | {{orange|'''Warning:''' The preview panel does not have all the behavior of an actual roll20 instance. Sheet worker scripts and other JavaScript based features (including repeating sections) will not work correctly in the Preview.}} | ||
The preview panel updates in real-time whenever you change the <code>HTML</code>, <code>CSS</code> or "Translation" of your sheet, to show you an ''approximation'' of what sheet would look like in-game. It's useful for quickly checking superficial change while you're editing, but to be sure of the actual end-result, you need to enter the game and open the sheet itself. | The preview panel updates in real-time whenever you change the <code>HTML</code>, <code>CSS</code> or "Translation" of your sheet, to show you an ''approximation'' of what sheet would look like in-game. It's useful for quickly checking superficial change while you're editing, but to be sure of the actual end-result, you need to enter the game and open the sheet itself. | ||
Line 52: | Line 77: | ||
If you make any changes in the character sheet editor while in the game, you must save your changes and refresh the active Roll20 game. In addition, if the character sheet contains <code><rolltemplate></code>, the code for it will be seen unprocessed in the preview window. It's recommended that [[Building_Character_Sheets/Roll_Templates|roll templates]] are placed at the end of the sheet's code so they don't obscure the sheet's visuals when using the preview panel. | If you make any changes in the character sheet editor while in the game, you must save your changes and refresh the active Roll20 game. In addition, if the character sheet contains <code><rolltemplate></code>, the code for it will be seen unprocessed in the preview window. It's recommended that [[Building_Character_Sheets/Roll_Templates|roll templates]] are placed at the end of the sheet's code so they don't obscure the sheet's visuals when using the preview panel. | ||
− | + | ==Editing Sheet Code== | |
− | '''[[Building Character Sheets]]''' is the central page detailing how the Roll20 Character sheet code works, what components it consists of, examples and so forth. The page links to every relevant page. | + | '''[[Building Character Sheets]]''' is the central page detailing how the Roll20 Character sheet code works, what components it consists of, examples and so forth. The page links to every relevant page, as does the sidebar here. |
+ | |||
+ | The '''Community Wiki articles on [[Building Character Sheets]] is much more comprehensive than the [[Help Center]]-pages.''' ([[User:1223200|1223200]] ([[User talk:1223200|talk]]) 12:29, 5 May 2021 (UTC)) | ||
+ | |||
+ | |||
+ | ==[[Sheet Sandbox]]== | ||
+ | {{main|Sheet Sandbox}} | ||
− | + | When testing sheet code, it's smart to use the [[Sheet Sandbox]], instead of the normal [[Sheet Editor]], as the Sheet Sandbox is designed for streamlining custom sheet testing, and is quicker to update. | |
− | + | Only drawback with Sheet Sandbox is that you can't inviting other people to test, so you'd need to make a normal game if you want others to test the sheet. | |
==See Also== | ==See Also== | ||
Line 64: | Line 95: | ||
** [[Add Character Sheets]] | ** [[Add Character Sheets]] | ||
* '''[[Building Character Sheets]]''' - coding | * '''[[Building Character Sheets]]''' - coding | ||
− | ** [[ | + | ** [[Sheet_Mistakes|Common Mistakes]] |
− | ** [[Building_Character_Sheets#Restrictions|Restrictions]] | + | ** [[Building_Character_Sheets#Restrictions|Code Restrictions]] |
** [[Sheet Author Tips]] | ** [[Sheet Author Tips]] | ||
* [[Pro]]-subscription | * [[Pro]]-subscription | ||
Line 74: | Line 105: | ||
[[Category:Pro]] | [[Category:Pro]] | ||
[[Category:Character Sheets]] | [[Category:Character Sheets]] | ||
+ | [[Category:FAQ]] | ||
+ | [[Category:Language]] |
Latest revision as of 19:01, 4 March 2023
Page Updated: 2023-03-04 |
This is related to Editing(coding) Character Sheets, which require Pro info to be able to use.Main Page: Building Character Sheets |
Character Sheet Development
Getting Started
- Using Custom Sheets
- Building Sheets
(Main Page) - Glossary
- Code Restrictions
- Best Practice
- Common Mistakes
- Tutorials
- Examples, Templates
- Pattern Libraries
- HTML & storing data
- CSS & Styling
General
- Updates & Changelog
- Known Bugs
- Character Sheet Enhancement(CSE)
- Custom Roll Parsing
- Legacy Sheet(LCS)
- Beacon SDK
Reference
- Buttons
- Repeating Sections
- Sheetworkers
- Roll Templates
- sheet.json
- Translation
- Auto-Calc
- Advanced
- All SheetDev Pages
Tools & Tips
Other
- Dynamic Lighting
- Custom Character Sheets
- Mod Scripts
- Transmogrifier
- Character Vault
- Game Rollback
- Roll20 Reserve
- Custom Fx
- External Journal
- Early Access
- Increased Storage(6Gb)
- Pro User Forum(Forum)
- Pro Token Sets(Market)
This page is about a Roll20 feature exclusive to Pro-subscribers (and often to players in a Game created by a Pro-subscriber). If you'd like to use this feature, consider upgrading your account. |
Main Page: Building Character Sheets
[edit] Using Custom Character Sheets
There are two methods of using Custom Character Sheets, The "The Sheet Editor"(for your normal games), and the "Sheet Sandbox"(for better & quicker sheet testing).
The former is accessed and used in campaign where the character sheet option have been set to "Custom" in the Game Settings page, and the latter is a tool used for Character Sheet Development, where you upload your code as files. Either one can only be accessed by the Creator of the game.
Contents |
[edit] Find Code
The sourcecode to all community-created Roll20 sheets can be found on (Github). The code for each sheet are organized in folders, and each sheet consists of a .html
-file, a .css
-file, and possibly a translation.json
file located in the root folder for the sheet. There are also other files there, but those are optional files used for sheet development, and not needed when using custom sheets in a game.
To get the code:
- download the files and copy the code from the files when you paste them to the correct sections in the Sheet Editor,
- or navigate to the individual file's page on github, and press on the "show raw" button, and press Ctrl+A(select all), then Ctrl+C to copy, and then go to the Sheet Editor and Ctrl+V to paste the code in the corresponding tab.
The latest code for Official Roll20 sheets (those with a by Roll20 in their name ) in the "character sheet template"-dropdown aren't unfortunately public, but for some of them, an older version(from March 2020) can be found:
(Old) sourcecode for "by Roll20"-char sheets:
- D&D 5E by Roll20 - code: D&D 5E by Roll20 | (very outdated)
- Pathfinder Second Edition - code: Pathfinder 2E by Roll20 | (very outdated)
- Pathfinder by Roll20 (1E) - code: Pathfinder by Roll20 | (mostly up to date)
- Starfinder by Roll20 - code: Starfinder by Roll20 | (mostly up to date)
- Gumshoe by Roll20 - code: sourcecode | unknown
sourcecode for "by Roll20"-char sheets that isn't outdated: |
These are "by Roll20"-sheet that Roll20 created long ago, and haven't updated in years, so should be 1-to-1 with the version from the menu.
|
[edit] The Sheet Editor
Main Article: Sheet Editor
To use a custom character sheet in an existing game:
1. Go to a Campaign's/Game's Details Page.
2. Click the Settings-button, and select Games Settings.
3. On the Game settings page, you select "Custom" from the Character Sheet Template menu.
4. If you want to use char sheet code that made prior March 2021, check the box for Legacy Sanitization. If you leave it unchecked, you can use code compatible with the Character Sheet Enhancement Update.
The editor (shown below) has four tabs: HTML Layout, CSS Styling, Translation, and Preview.
You copy your HTML and CSS to their respective tabs, and if the sheet has translation files, you copy the content of the default translation file(usually English), or for the language you want.
Then scroll down the page and press the Save Changes button.
[edit] Common Mistake
Common Mistake: If the sheet needs the translation file, and you don't copy it to your game, all/most text on it will show red text and the name of the language tag for each section, as seen in the example. |
[edit] Preview Panel
Warning: The preview panel does not have all the behavior of an actual roll20 instance. Sheet worker scripts and other JavaScript based features (including repeating sections) will not work correctly in the Preview. |
The preview panel updates in real-time whenever you change the HTML
, CSS
or "Translation" of your sheet, to show you an approximation of what sheet would look like in-game. It's useful for quickly checking superficial change while you're editing, but to be sure of the actual end-result, you need to enter the game and open the sheet itself.
The Preview panel applies all the same security precautions and filtering as the main Roll20 application. Be sure to right-click and Inspect Element if you are seeing strange behavior (e.g. your styles aren't being applied correctly) -- it may be that there is a security filter that is changing the name of a class or something similar.
If you make any changes in the character sheet editor while in the game, you must save your changes and refresh the active Roll20 game. In addition, if the character sheet contains <rolltemplate>
, the code for it will be seen unprocessed in the preview window. It's recommended that roll templates are placed at the end of the sheet's code so they don't obscure the sheet's visuals when using the preview panel.
[edit] Editing Sheet Code
Building Character Sheets is the central page detailing how the Roll20 Character sheet code works, what components it consists of, examples and so forth. The page links to every relevant page, as does the sidebar here.
The Community Wiki articles on Building Character Sheets is much more comprehensive than the Help Center-pages. (Andreas J. (talk) 12:29, 5 May 2021 (UTC))
[edit] Sheet Sandbox
Main Page: Sheet Sandbox
When testing sheet code, it's smart to use the Sheet Sandbox, instead of the normal Sheet Editor, as the Sheet Sandbox is designed for streamlining custom sheet testing, and is quicker to update.
Only drawback with Sheet Sandbox is that you can't inviting other people to test, so you'd need to make a normal game if you want others to test the sheet.
[edit] See Also
- Character Sheets - general info
- Game Management
- Building Character Sheets - coding
- Pro-subscription