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

Aura/Tint Healthcolours not working correctly

January 29 (6 years ago)
Seb
Pro

Hi guys. I am having trouble with this script, it has been working perfectly in all of my games until now. When I try to select NPC's names to be hidden from PC's the script crashes. Also now it just plain will not turn on. I tried deleting the script, reinstalling it and also using an earlier version and nothing works. Help!

January 29 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

It’s probably something messed up in the state object. Disable the script and install this one and lest it start up, then disable this one and reenable Aura/Tint HealthColors:

on('ready',()=>{delete state.HealthColors;log('Reset HealthColors state object.';});
January 29 (6 years ago)
Seb
Pro

Thanks for the help Aaron :) I can now change the NPC's names to be hidden however now I can not change "Is on" to yes. It will just crash the script when I click it.

January 29 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

Hmm. I’ll have to take a look. 

I am experiencing the same thing. Also the line of code, where should I put that ? in new script?

January 30 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

A new script.  That just removes the state entry for HealthColors so it can generate a new valid one.  You'd need to disable it after it's loaded once, otherwise it will just keep deleting your configuration.

mm I might be doing something wrong. Nothing is happening for me. 
I disable the script. 

Paste the line in new script

on('ready',()=>{delete state.HealthColors;log('Reset HealthColors state object.';});

then it says no script.

I pressed restart. 

Disabled this one line. Then turn the other back on. 

:(


January 30 (6 years ago)
GiGs
Pro
Sheet Author
API Scripter

Did you have your campaign open when changing your script? if not, make sure your have your campaign open, as if you are about to play a game and follow these steps.

Then disable the aura script, and activate aaron's script. When the message "Reset HealthColors state object" appears in the script log, you can disable aaron's script and enable the aura script.


January 30 (6 years ago)
Seb
Pro

The same thing happens for me, the new mini script to delete the configuration does not fire up at all :(

January 30 (6 years ago)
Wes
Sheet Author

Aaron does this have anything to do with the advanced fog of war update? I noticed that some token auras that I had set with negative numbers are not respecting the negative and defaulting to somewhere around 0. It seems we can no longer have a negative aura or light.

Image of Light / Aura Radius:


Wes

January 30 (6 years ago)

Edited January 30 (6 years ago)

it says 

SyntaxError: missing ) after argument list

Never mind I added ). The script ran. but it didn't help 


more edit, so it all didn't work. I deleted the api then reinstalled it. Now it works again.

January 30 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

negative light dim radius is still working for me, aura radius as a negative is not.  I can't say for certain that I ever used a negative radius aura before, but if it was working in the past, I'd say it isn't now.  I can set a negative radius, but it won't go visually smaller than 0 (token sized)


January 30 (6 years ago)

Edited January 30 (6 years ago)

I've had all of a sudden (with the latest roll20 update I think) the script become not functional if grid is not enabled. Anyone know whats up with that and what one could do about that?

January 31 (6 years ago)
Ravenknight
KS Backer


Squirrel said:

I've had all of a sudden (with the latest roll20 update I think) the script become not functional if grid is not enabled. Anyone know whats up with that and what one could do about that?

Can't you have a grid enabled for now and keep the visibility of the grid set to 0?

February 01 (6 years ago)


Ravenknight said:


Squirrel said:

I've had all of a sudden (with the latest roll20 update I think) the script become not functional if grid is not enabled. Anyone know whats up with that and what one could do about that?

Can't you have a grid enabled for now and keep the visibility of the grid set to 0?

Sure, but then all tokens snap to the grid by default which is a problem when you play without a grid. I know you can drag while holding alt to avoid snapping but it'd probably be easier to just use bars than teach new things to players.


February 01 (6 years ago)
Ravenknight
KS Backer


Squirrel said:


Ravenknight said:


Squirrel said:

I've had all of a sudden (with the latest roll20 update I think) the script become not functional if grid is not enabled. Anyone know whats up with that and what one could do about that?

Can't you have a grid enabled for now and keep the visibility of the grid set to 0?

Sure, but then all tokens snap to the grid by default which is a problem when you play without a grid. I know you can drag while holding alt to avoid snapping but it'd probably be easier to just use bars than teach new things to players.


Good point! :D

February 03 (6 years ago)

Same issue, aura's do not show up.  Disabled script and added new (corrected) .js posted above. it ran without crashing but  did not receive "Reset HealthColors state object" in sandbox after running.  Disabled 'reset .js' and re-enabled Health/Aura tint to no avail. Even tried uninstalling/deleting and reinstalling script. Still does not work though tokens state the aura should be visible.

February 03 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

Do you have a grid on the map where you are trying it?  There's a bug right now where auras don't work correctly on maps without grids turned on.

February 03 (6 years ago)


The Aaron said:

Do you have a grid on the map where you are trying it?  There's a bug right now where auras don't work correctly on maps without grids turned on.


Ah, I see. Enabled grid on current page and viola!  I have aura's again!! Hope the bug gets fixed, but thanks much for the response!!!

February 05 (6 years ago)
Seb
Pro

I am still unable to turn Aura's back on no matter what I do. It is only affecting one game however.

February 05 (6 years ago)
Seb
Pro

SyntaxError: missing ) after argument list

I also receive this message when running the mini script that Aaron provided to reset the aura script.

February 05 (6 years ago)
The Aaron
Roll20 Production Team
API Scripter

That sounds like it's because of another script.  Try disabling them one at a time until the error goes away?

February 05 (6 years ago)
Seb
Pro

I had disabled them all, ran your script and still it will not work :( I am sure what broke, but every other setting in the API works except being able to turn the aura's on.

February 05 (6 years ago)

Hey Seb are you by chance trying to use the script with a dungeon of the mad mage prebuilt module? 

I have a problem that the Script breaks because there's too many tokens to process (throwing a detected possible infinite loop error). 

February 05 (6 years ago)
Seb
Pro


Jason L. said:

Hey Seb are you by chance trying to use the script with a dungeon of the mad mage prebuilt module? 

I have a problem that the Script breaks because there's too many tokens to process (throwing a detected possible infinite loop error). 


I am in fact, is there a way around this?

February 05 (6 years ago)

The one time i got it work was while roll20 was making the module you quickly add the script to the game and then go in and do commands, you got like a minute or two till roll20 finishes adding tokens, since roll20 hasn't built all the token the script can handle editing the tokens for its "first run through" after roll20 builds all the tokens you cannot make any configuration changes to the script tho. When you first move the tokens built after the aura's run through the aura will update the token and do the aura stuff. Make sure you turn off the players can see NPC names tho, as it bleeds through dynamic lighting and fog of war. I messaged the script owner about this but he didn't respond. That was three weeks ago.


if you fail getting in before roll20 makes all the tokens to change the configuration of the aura mod script you have to delete the game and remake it with the module. From my findings the script cannot handle the thousands of tokens the module has on all the maps.

February 11 (6 years ago)

Edited February 11 (6 years ago)
DXWarlock
Sheet Author
API Scripter

CRAP I thought I pushed out an update months and months ago for this I guess I didn't do it right.
It is from just too many tokens to try to run through before the sandbox thinks my script is hung up. (The Aaron helped me figure out the solution/work around). 

And Sorry Jason, I didn't see the message until now. I've been up to my neck in work and home life lately.

I will get that out in the next couple days for Roll20 to pull to the one click whenever they do they weekly update. Its been a while since I did that so I need to remember how to submit my script for an update, but I remember it wasn't too hard just need to dig up the info.
I should get around to actually adding the description/help on the one click info also while I'm at it. 

If you want a replacement for now..here is a copy/paste gist of it:

https://gist.github.com/dxwarlock/5444a8263ce34ec793c92fa7f1c3bac4

February 13 (6 years ago)
Seb
Pro

You are amazing DXWarlock! :) , and so is your script, my players love it.

February 15 (6 years ago)
DXWarlock
Sheet Author
API Scripter

Thanks :)

Sorry it took so long.
As I said I thought I updated it a year ago. And I didn't noticed I did github wrong to get Roll20 to actually merge it, as I run it as an editable script not one-click in mine. So it was fixed right the whole time...but only for me :P