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
This post has been closed. You can still view previous posts, but you can't post any new replies.

AUTOCALC fields not auto-calculating / Causing issues with the _max attribute not showing anything

September 25 (8 years ago)

Edited September 25 (8 years ago)
Falcon
Pro
Sheet Author
Here is my official bug log:
Operating System Windows Windows NT 10.0
Screen Resolution 2560 x 1440
Web Browser Chrome 53.0.2785.116
Browser Size 1580 x 1040
Color Depth 24
Javascript Yes
Flash Version 23.0.-1
Cookies Yes
User Agent Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gec

Description of issue (and how to reproduce):
  • Autocalc fields are not automatically calculating.  I will enter a number in a field that is being added but it doesn't show in the disabled input field.  I have to exit the character sheet and go back in to see the new calculation (this has been on-going for quite some time)  -- see my pics below







  • See my post below - but both STA and SEU fields have a _max attribute that simply disappears.  I have to change the number in the system or re-selected it from the drop down to get it to re-appear.

Black Falcon said:
Here is what it does. As you can see from the token below the STA and SEU attributes are both not showing their |MAX value. instead I have to go to each token and go to another attribute and then back to STA for them to show up correctly. Do you know what is causing this? The issue is that it forces the bars to disappear from the tokens when the MAX value isn't showing up?
September 26 (8 years ago)
Falcon
Pro
Sheet Author
I narrowed down the issue.  The disappearing _max from the bubbles ONLY occurs when there is a formula for the _max value.  Straight entered numbers are fine.  It's like it doesn't re-calculate it.
September 26 (8 years ago)
Falcon
Pro
Sheet Author
I also discovered that the fields that are not autocalculating in my character sheet also have a _max attribute.  It all seems to be around using a attribute _max field.
September 26 (8 years ago)
Falcon
Pro
Sheet Author
This is VERY repeatable.  
  1. Just create a simple character sheet.  
  2. Create a HP attribute.  
  3. Then create a HP_max field but instead of it being a user input - create a disabled input instead (like @{5+6}) 
  4. Then assign it to a token and select that field.  
  5. Reload the game and watch the max side disappear. 
September 26 (8 years ago)
Gid
Roll20 Team
Thanks for the report, Black Falcon. I'll put in a bug ticket for this.
September 26 (8 years ago)
Falcon
Pro
Sheet Author
Thanks Kristin!!!
September 30 (8 years ago)
Phil B.
Forum Champion
Sheet Author
In your steps you say to use @{5 + 6} as the formula for the disabled _max value. If you're using this or something exactly like this, it's breaking because @{5+6} is not a valid formula. Which is why the _max value disappears. It's trying to auto-calc but the formula isn't valid so it just ends up blank. If you have the browser's dev tools open when you change a value, you can see "ERROR: Unable to find attribute 5 + 6 in auto-calc formula." pop up in the console.

If this is not the issue you are actually looking at, please give me a gist of the code you are actually working with and I'll see what I can do to help you further or fix it if there is something broken.
September 30 (8 years ago)
Falcon
Pro
Sheet Author
I was using a simplistic term.  Please replace @{5} with a real variable.
September 30 (8 years ago)

Edited September 30 (8 years ago)
Falcon
Pro
Sheet Author
I will give you'll actual scenario:
<div class="sheet-col-1-16"><input class="sheet-center sheet-underlined" style="font-size:110%;" type="text" DISABLED name="attr_STA_max" title="@{STA|max}" value="[[(@{BASE_STA}+@{STA_XP}+@{SS_MOD})]]" /></div>
September 30 (8 years ago)

Edited September 30 (8 years ago)
Try replacing DISABLED with disabled="true"
September 30 (8 years ago)
Falcon
Pro
Sheet Author
It won't make a difference.  I have tried both.  You don't need to say disabled='"true".  It's not that easy
September 30 (8 years ago)

Edited September 30 (8 years ago)
Falcon
Pro
Sheet Author
I sent Phil my GIST.  I believe this is a true bug - not a syntax error in my code.  But thank you for your assistance :)
October 03 (8 years ago)
Phil B.
Forum Champion
Sheet Author
I spent a good amount of time changing values around the sheet. Specifically the STA base and XP values. I even had them tied to a token. They all changed as I would expect them to. While I wasn't able to figure out how to enter the same numbers you did for the weapon (I'm not familiar with the system your sheet is for), I was able to get the numbers to change, and the numbers all appeared to be correct. (though, like I said I'm not familiar with the system so I may be wrong about what "correct" is) I am seeing a good number of Errors in the console though, which might lead to values being incorrect.

Any time I changed the STA XP value I would see "ERROR: Unable to find attribute Race_Num_Languages in auto-calc formula.". Despite seeing this, though, the max health value under Health Report would update as expected and the STA_max value attached to my token would also update as expected.

If I am not doing something "correctly" to get this to break please give me more exact instructions on what to enter on your sheet so that I can see the issues you are seeing.
October 04 (8 years ago)
Falcon
Pro
Sheet Author
I was able to fix it via sheet workers.  Phil, can I invite you to one of my games and show you what I mean?  
October 04 (8 years ago)
Falcon
Pro
Sheet Author
I was able to resolve it via sheet workers so you can close down this bug.  Thank you.