Page 1 of 1

Dice roller down?

Posted: Sun Mar 08, 2020 2:56 am
by StevetheNPC
Is it just me, or is the dice roller down right now?

Re: Dice roller down?

Posted: Sun Mar 08, 2020 4:56 am
by Rex
Working for me at the moment.

Re: Dice roller down?

Posted: Sun Mar 08, 2020 3:45 pm
by dmw71
I just saw this now. The roller is working fine for me.

Are you still having the same issue?

Re: Dice roller down?

Posted: Tue Mar 10, 2020 4:55 am
by StevetheNPC
I am. I tried deleting all cookies for the last 4 weeks, which is way before I registered at US, restarting Chrome, and re-logged in to US and the dice roller, but I am still getting the following error. The dice sandbox roller does work for me. I even tried using Edge (gah!), but I am getting the same error.

The weird thing is that yesterday I was getting the same error message but with a background graphic (a guy on a beach? and a shark? something like that). Today I only get the error message with a white background.

Maybe I should try reinstalling Chrome? But if Edge didn't work either, that's probably not it.

Image

Re: Dice roller down?

Posted: Tue Mar 10, 2020 4:59 am
by dmw71
This might be a Greg thing, but can you also share the text of the roll you're making?

For example:
  • Attack with sword: [1d20], [1d8]

Re: Dice roller down?

Posted: Tue Mar 10, 2020 5:00 am
by StevetheNPC
I tried the lower macro field, and now I get the error with the background graphic. Here is the macro I am trying, could it be that?

Str: [3d6] Dex: [3d6] Con: [3d6] Int: [3d6] Wis: [3d6] Cha: [3d6]


Image

Re: Dice roller down?

Posted: Tue Mar 10, 2020 5:45 am
by ToniXX
StevetheNPC wrote:I tried the lower macro field, and now I get the error with the background graphic. Here is the macro I am trying, could it be that?

Str: [3d6] Dex: [3d6] Con: [3d6] Int: [3d6] Wis: [3d6] Cha: [3d6]

You found a bug in my code. I'll have it resolved hopefully tomorrow.
Thanks for the info!

Re: Dice roller down?

Posted: Tue Mar 10, 2020 6:01 am
by dmw71
Was the string too long? That was what I was thinking.

Re: Dice roller down?

Posted: Tue Mar 10, 2020 4:14 pm
by ToniXX
Ok, so doing stat rolls in the 'on the fly' feature was not expected. The string of characters that displays the result is too long to go into the database. So, in the meantime, break up your stat rolls into two 'on the fly' rolls, like this:

Str: [3d6] Dex: [3d6] Con: [3d6]
Int: [3d6] Wis: [3d6] Cha: [3d6]

I'm working on a solution but I must warn you that it may not be all that pretty.

Re: Dice roller down?

Posted: Tue Mar 10, 2020 4:32 pm
by Lance
If there's a limit to the db field, you might as well limit the length of the input field. That might be quicker than validating or extending. I assume it's rare for the roll result to be longer than the macro that generates it. :)

Re: Dice roller down?

Posted: Tue Mar 10, 2020 4:44 pm
by ToniXX
The roll result is always longer because it includes HTML markup to display the results in bold and red. So with a macro with a lot of dice expressions (the parts within the square brackets), the result is usually pretty long.

Re: Dice roller down?

Posted: Fri Mar 13, 2020 6:11 pm
by StevetheNPC
ToniXX wrote:Ok, so doing stat rolls in the 'on the fly' feature was not expected.
Sorry about that, it was my first time using the dice roller. :oops: Still learnin'.

I was trying to have stat rolls recorded in the database for a game in which we were not using the character sheets, just the dice roller. I ended up creating a dummy character, called "Steve01", and then made the stat roll with that character. I also made a macro for the Hit Point roll.

Is there a better/easier way to do something like this, when not utilizing the character sheet but still needing the dice roller?

Cheers! Steve

Re: Dice roller down?

Posted: Fri Mar 13, 2020 6:18 pm
by ToniXX
The easiest thing is to do what I outlined above:
ToniXX wrote:break up your stat rolls into two 'on the fly' rolls, like this:

Str: [3d6] Dex: [3d6] Con: [3d6]
Int: [3d6] Wis: [3d6] Cha: [3d6]
Does that answer your question?

Re: Dice roller down?

Posted: Sat Mar 14, 2020 4:34 pm
by StevetheNPC
It does indeed. Thank you for your support!