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

Combat Master 2.48

I have been using Combat Master2.48 for some time.  Recently I have been having the sandbox crash with error: TypeError: str.split is not a function I have poked enough around to see this occurs when Combat Master is making the next turn announcement. I found the common causes of this error are: - calling split on a non-string -undefined or null values -non-string objects Has anything changed recently that would cause token names to become a non-string? I'm very fond of using Combat Master and would like to find a fix.  Thanks
1710141251
Ralph
Pro
Marketplace Creator
Something must have changes, as the behaviour is slightly different than before.
1710165907
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
It looks like the main Combat Master thread finally timed out. You can try directly contacting the author,  Victor B.  They may be able to help you.
1710188846

Edited 1710189104
The path to Knowledge is neither straight nor level. After further experimentation I am fairly certain Combat Master crashing the sandbox is a consequence of having tokens in the turn order with a numeric value instead of name. Oddly this only occurs when I use this script to assign a random three digit number to the token name.  !token-mod {{   --off showplayers_bar1   --on showplayers_name showname   --set bar3_value|@{selected|npc_speed} bar2_value|@{selected|npc_ac} bar1_value|@{selected|hp|max} bar1_max|@{selected|hp|max} bar1_link|   --set layers|objects name|"[[ d1000 ]]" }} If I type a three digit number in the name field on the Token Setting pop-window everything is OK.   I have modified the script to pull a name from a Rollable Table list. !token-mod {{   --off showplayers_bar1   --on showplayers_name showname   --set bar3_value|@{selected|npc_speed} bar2_value|@{selected|npc_ac} bar1_value|@{selected|hp|max} bar1_max|@{selected|hp|max} bar1_link|   --set layers|objects name|"[[ 1t[ListMonsterName] ]]" }} I think I’m back in business, I doubt anyone else would create this weirdly specific error state, but I thought I’d share anyway.
1710189197
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Hmm. Have you looked into TokenNameNumber? It might be able to address the naming issue.