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

Cache for Variable Values?

Does anyone know if Roll20 caches values for character sheet variables? Example: I am using a D&D 3.5 character sheet. I increase the base Cha score to 20. The @cha-mod attribute correctly displays a value of 5 and anywhere the character sheet's HTML Layout calculates using @cha-mod, the displayed value is correct. However anywhere where it is used in a roll calculation the variable retains its old value of 4. I have tried this with several of the attributes and the behavior is the same.
1589074059

Edited 1589074154
vÍnce
Pro
Sheet Author
The value you see in the cha-mod field "should be" the value used whenever @{cha-mod} is called. It appears to work for me as expected.  Is this happening on all characters?  Can you get it to change from "+4" to any other mod?  Maybe try changing all fields to "0", then re-enter the correct base and any mods.
I believe there is a cache somewhere, perhaps browser-side. I managed to force a cache refresh that I was able to witness in the process of temporarily loading in a different version of the character sheet. When the different version of the character sheet first displayed for the character, it showed a base ability score of 20 but a modifier of 4. I manually changed the base ability score to 22. The modifier changed to 6. I changed the ability score back to 20, and the modifier went to 5. I reloaded my preferred version of the character sheet. I just now updated the attribute score, and noticed the issue is back. I am going to try restarting the browser (Chrome). And yes, it happens for all attributes.
1589080179

Edited 1589080191
GiGs
Pro
Sheet Author
API Scripter
A browser cache wouldnt cause this, something else must be happening. I can things of a few possibilities: Sheet worker events might not be firing. Are you using a modified sheet, its posisble something is interfering with the sheet workers. Also, if you are changing attribute values through a script, that can fail to trigger sheet workers. And of course, there's the strain roll20 is currently under which is causing slowdown and crashes of the API - it's likely to affect sheet workers too. This makes me wonder if there's a duplicate attribute in the sheet - one with the same name. This shouldnt happen, but does sometimes (especially if you have fiddled with the attributes on the Attributes and Abilities tab).  It could just be corruption with that character. Does it happen on other characters? But since it seems to be happening only with your "preferred version" of the sheet, my guess is there's something in that sheet that is messing up the sheet workers.
I think it is an issue of the sheet being pre-sheetworker. In the latest version (which I was not my preferred as the author turned off NPC fields that were critical to me running campaign sessions) there is a mention of sheetworkers. In the old version I am using there is not.
1589184664
vÍnce
Pro
Sheet Author
You can check your version at the bottom of the sheet.
1589193884
Ziechael
Forum Champion
Sheet Author
API Scripter
I'd also check the attributes and abilities tab for a duplicated value, if there are 2 cha-mod attributes it may be taking the old one. Duplication can happen sometimes and often causes this kind of issue. It would also be useful to see the affected section of your sheet as a screen shot although I'm very familiar with the 3.5e sheet and can't see how it could be getting an incorrect value from anywhere.
It was that it was an old version (2015). I switched to the latest version and modified it to restore the NPC elements that had been removed. (Which is what was keeping me on the old version.) The problem is solved.