Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

First time, copy of valid sheet funky, help?

1587496842

Edited 1587574258
I'm making a copy of the working FFG SW API sheet to make adjustments but I'm struggling from step one. Got my copy from here:&nbsp; <a href="https://github.com/Roll20/roll20-character-sheets/tree/master/Star%20Wars%20FFG%20API-Compatible" rel="nofollow">https://github.com/Roll20/roll20-character-sheets/tree/master/Star%20Wars%20FFG%20API-Compatible</a> I copy css and html, 100% (checked three times) The preview top looks OK, but the bottom is all garbled code: Not sure why, I tried to refresh browser, did thew clear cache. If I actually see the sheet in game, its worse: I'll assume I'm a moron, but is this anything other's have encountered and know why?
1587497036
Andreas J.
Forum Champion
Sheet Author
Translator
You didn't copy the translation.json file. Not all sheets have them, but if they have, they need to be used. that's what the third tab in the sheet editor is for. <a href="https://wiki.roll20.net/BCS#The_Sheet_Editor" rel="nofollow">https://wiki.roll20.net/BCS#The_Sheet_Editor</a>
OMG, thank you.
OK, this has all worked exactly-ish as I had hopped.&nbsp;&nbsp; I made a copy of the official Roll20 API supported SW html, css and translation. I edited the html to add a few sections, tested them, and they work. (I basically just copied the code from a different sheet) &lt;optgroup label="Magic Skills"&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;option value="!eed rollPlayer(character:@{name}|skill:intellect,rankArcana) label(skill:Force Power|Skill Name: Arcana|Power Name:@{forcepowername}) @{ForceSkillDice} @{forceavailable}w @{dicePool} (gmdice)" data-i18n="arcana"&gt;Arcana&lt;/option&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;option value="!eed rollPlayer(character:@{name}|skill:willpower,rankDivine) label(skill:Force Power|Skill Name: Divine|Power Name:@{forcepowername}) @{ForceSkillDice} @{forceavailable}w @{dicePool} (gmdice)" data-i18n="divine"&gt;Divine&lt;/option&gt; &nbsp;&nbsp;&nbsp;&nbsp;&lt;option value="!eed rollPlayer(character:@{name}|skill:cunning,rankPrimal) label(skill:Force Power|Skill Name: Primal|Power Name:@{forcepowername}) @{ForceSkillDice} @{forceavailable}w @{dicePool} (gmdice)" data-i18n="primal"&gt;Primal&lt;/option&gt; &lt;/optgroup&gt; Added the needed translation info as well. "magic-skills-list": "arcana,divine,primal", "arc": "Arc", "arcana": "Technomancy", "Arcana": "Technomancy", "arcanaint": "Technomancy (Int)", "Arcanaint": "Technomancy (Int)", "primal": "Primal", "Primal": "Primal", "primalcun": "Primal (Cun)", "Primalcun": "Primal (Cun)", "divine": "Mystic", "Divine": "Mystic", "divinewill": "Mystic (Will)", "Divinewill": "Mystic (Will)", "magicskills": "Magic Skills", and so on... The issue however is that if I edit the translation file to change "wording" i.e. switch arcana "Arcana" to arcana "Mystic" it works, but only in 95% of the locations.&nbsp; The dice boxes look good for almost all occasions, but the Force Powers skills I included above.&nbsp; Those three lines never change wording. You'll notice in the images, it shows my "new" Mystic &nbsp;Skill List wording... but in the dice box,&nbsp; Skill Name , regardless of what I do, it still says Divine, or Arcana, etc. I've tried to manually edit the words, but if I do, then the box fails to work. Ideas?
1587576865
Andreas J.
Forum Champion
Sheet Author
Translator
Hmm, considering the output comes for the API, it might not be a part of the character sheet. Or if it is, you need to check how the roll templates looks like and possibly use another kind of edit there. This could help: <a href="https://wiki.roll20.net/I18n#Roll_Templates" rel="nofollow">https://wiki.roll20.net/I18n#Roll_Templates</a>
Thank you.&nbsp; I semi-sorta wondered that, with the API, but wasn't quite brave enough to look.&nbsp; I did notice that it was only the dice boxes that were failing to change.&nbsp; So to ask, not as dig, but because I don't program these and know if it is possible, should the API be able to pick up the info from the translation table?&nbsp;&nbsp;
1587578162
Andreas J.
Forum Champion
Sheet Author
Translator
Don't know API that well, but generally no. Don't think it's impossible, but haven't heard about API interacting with language tags.