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

Character sheet attributes not displaying (custom sheet error)

April 05 (10 years ago)

Edited April 05 (10 years ago)
EE
Pro
Hey, so I'm having an issue with a custom fork of the Dark Heresy 2nd ed. character sheet. Due to the inability to call repeatable field attributes outside of the sheet I added a few sections of the repeatable weapons but as normal fields. While these display fine and accept and commit data to the charaters attributes they do not seem to display attributes properly. After entering data in them that data gets commited to the attributes but after closing and reopening the character sheet those fields are again empty despite the attributes still being visible in the characters "Attributes and Abilities" section. In short: the character sheet doesn't seem to pull those fields from existing attributes when loaded and they revert to defaults.

Here is an example the section of altered code (everything else works fine as per the usual main DH2nd sheet):

<h3>Ranged Weapons (Main)</h3>
<fieldset>
<div>
<div>
<div style="width:15%">
<label>Name:</label>
</div>
<div style="width:55%">
<input name="attr_rangedweapon1name" type="text">
</div>
<div style="width:12%">
<label>Class:</label>
</div>
<div style="width:15%">
<input name="attr_rangedweapon1class" type="text">
</div>
</div>
<div>
<div style="width:12%">
<label>Range:</label>
</div>
<div style="width:10%">
<input name="attr_rangedweapon1range" type="text">
</div>
<div style="width:15%">
<label>Damage:</label>
</div>
<div style="width:15%">
<input name="attr_rangedweapon1damage" type="text">
</div>
<div style="width:10%">
<label>Type:</label>
</div>
<div style="width:18%">
<input name="attr_rangedweapon1type" type="text">
</div>
<div style="width:9%">
<label>Pen:</label>
</div>
<div style="width:9%">
<input name="attr_rangedweapon1pen" type="text" value="0">
</div>
</div>
<div>
<div style="width:9%">
<label>RoF:</label>
</div>
<div style="width:6%">
<input name="attr_rangedweapon1single" type="text" value="0">
</div>
<div style="width:2%">
<label>/</label>
</div>
<div style="width:6%">
<input name="attr_rangedweapon1semi" type="text" value="0">
</div>
<div style="width:2%">
<label>/</label>
</div>
<div style="width:6%">
<input name="attr_rangedweapon1full" type="text" value="0">
</div>
<div style="width:9%">
<label>Clip:</label>
</div>
<div style="width:6%">
<input name="attr_rangedweapon1clip" type="text" value="0">
</div>
<div style="width:2%">
<label>/</label>
</div>
<div style="width:6%">
<input name="attr_rangedweapon1clip_max" type="text" value="0">
</div>
<div style="width:15%">
<label>Reload:</label>
</div>
<div style="width:16%">
<input name="attr_rangedweapon1reload" type="text">
</div>
<div style="width:16%">
<button name="roll_ranged1damage" type="roll" value="/me does [[@{rangedweapon1damage}]] @{rangedweapon1type} damage! (Pen: @{rangedweapon1pen})">
<label>Damage</label>
</button>
</div>
</div>
<div>
<div style="width:25%">
<label>Special:</label>
</div>
<div style="width:65%">
<input name="attr_rangedweapon1special" type="text">
</div>
<div style="width:10%">
<button name="roll_ranged1hit" type="roll" value="/me fires @{rangedweapon1name} Roll: [[1d100]] ([[(@{BallisticSkill}+?{Modifier|0})]] or lower for success)">
<label>Hit</label>
</button>
</div>
</div>
</div>
</fieldset>
April 06 (10 years ago)
Coal Powered Puppet
Pro
Sheet Author
Was there character created- even partially- before the new sheet was made?
Try this: go to the attributes & abilities tab in the character journal. Delete everything under the attributes section. Go back to the character sheet and "tab through" the whole sheet (re-saving the whole deal). And see if that fixes it.
April 06 (10 years ago)
EE
Pro
Thanks for the suggestion, in the first few instances yes, I had used previous sheets but as a test I made an entirely new character sheet a-fresh and it experienced exactly the same issues.
April 07 (10 years ago)
EE
Pro
Right, figured out the issue by trial and error. For anyone interested the issue was the "fieldset" tag which refused to draw any attributes inside it up to the character sheet. I left it in as a vestige of the old code not wanting to change too much and it turned out that that was the issue, works like a charm now.
April 07 (10 years ago)
Lithl
Pro
Sheet Author
API Scripter

EE said:

Right, figured out the issue by trial and error. For anyone interested the issue was the "fieldset" tag which refused to draw any attributes inside it up to the character sheet. I left it in as a vestige of the old code not wanting to change too much and it turned out that that was the issue, works like a charm now.

Yeah, fieldsets are used for creating repeating sections. When displayed on the page, they're hidden and (assuming they're given a repeating section name) JavaScript copies their contents into each repeated item.