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

API breaking in duplicate games?

I have a template game with a lot of contents (monsters, tools, traps, etc etc) and I duplicate it to make new games.  But Universal Chatmenu and Cash Master v.9  don't work in the new version.  No text is populated.  When I start a game from scratch, these two API works just fine.   Is there a way for me to fix this issue without having to start every game from scratch?
1588533228
Kraynic
Pro
Sheet Author
Are there any errors in the API console on the API settings page?  If you reset the API sandbox while logged into your game, does that get it working or cause any errors to show up?
1588534177
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Just checking, but when you duplicate the game, you are manually adding the API scripts afterward? Scripts do not duplicate.
1588543726

Edited 1588544232
 I have reset the API sandbox numerous times as well, inside the game and outside. Yes, I have manually added the API scripts. 
1588543984
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
There was a bug last year with API not working on games that were on some server shard (or at least, that's what it seemed to be. Have you tested with more than one duplicate? Sorry, kind of stabbing blindly, but without a console log, there's not a lot to go on. (Not that I could read it, but there are a lot of people on here more technically proficient than I.)
When I type in !cm -help, this is what pops up: (Yes, a character is selected) "CM Command: !cm -help" "CM Subcommand: !cm -help" "ERROR: Unable to find character selected in chat command." "ERROR: Unable to find character target in chat command." "ERROR: Unable to find character target in chat command." "Selection: [object Object]" "Subjects: [object Object]" "Targets: " "CM Command: !cm -menu" "CM Subcommand: !cm -menu" Cashmaster help guide is populated in the text, but !cm -menu does not have any response.  This is the API console response for Keithcurtis' chatmanu statblock macro. No response in chat. "=== FILTER ====" "check: prof_type=Language prefix: repeating_proficiencies_-M5UR5PlHySA0qyFKAdT_" "rules: [{\"stat\":\"prof_type\",\"match\":\"Language\",\"type\":\"=\"}]" "rule: {\"stat\":\"prof_type\",\"match\":\"Language\",\"type\":\"=\"}" "value: LANGUAGE" "match: Language" "pass: true" "=== FILTER ====" "check: prof_type=Language prefix: repeating_proficiencies_-M5UR5PlHySA0qyFKAdU_" "rules: [{\"stat\":\"prof_type\",\"match\":\"Language\",\"type\":\"=\"}]" "rule: {\"stat\":\"prof_type\",\"match\":\"Language\",\"type\":\"=\"}" "value: LANGUAGE" "match: Language" "pass: true" "=== FILTER ====" "check: prof_type=Language prefix: repeating_proficiencies_-M6306iWUjGbhQK-neN2_" "rules: [{\"stat\":\"prof_type\",\"match\":\"Language\",\"type\":\"=\"}]" "rule: {\"stat\":\"prof_type\",\"match\":\"Language\",\"type\":\"=\"}" "value: LANGUAGE" "match: Language" "pass: true" "=== FILTER ====" "check: name!Invocation: prefix: repeating_traits_-M5UR5PlHySA0qyFKAdR_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}" "value: Darkvision" "match: Invocation:" "pass: true" "=== FILTER ====" "check: name!Invocation: prefix: repeating_traits_-M5UR5PlHySA0qyFKAdS_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}" "value: Fey Ancestry" "match: Invocation:" "pass: true" "=== FILTER ====" "check: name!Invocation: prefix: repeating_traits_-M5UTph7LBvyMllTCF1w_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}" "value: Wanderer" "match: Invocation:" "pass: true" "=== FILTER ====" "check: name!Invocation: prefix: repeating_traits_-M63-D7jcgcAuVyEbUOd_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"!\"}" "value: Sneak Attack" "match: Invocation:" "pass: true" "=== FILTER ====" "check: atkrange<1 prefix: repeating_attack_-M5UWFHHdblAlMkEs43e_" "rules: [{\"stat\":\"atkrange\",\"match\":\"1\",\"type\":\"<\"}]" "rule: {\"stat\":\"atkrange\",\"match\":\"1\",\"type\":\"<\"}" "value: 20/60" "match: 1" "pass: false" "=== FILTER ====" "check: atkrange<1 prefix: repeating_attack_-M5UXWmpW95xihJaNqiR_" "rules: [{\"stat\":\"atkrange\",\"match\":\"1\",\"type\":\"<\"}]" "rule: {\"stat\":\"atkrange\",\"match\":\"1\",\"type\":\"<\"}" "value: 80/320" "match: 1" "pass: false" "=== FILTER ====" "check: atkrange<1 prefix: repeating_attack_-M63-pPIfcXDWWsYg5Ke_" "rules: [{\"stat\":\"atkrange\",\"match\":\"1\",\"type\":\"<\"}]" "rule: {\"stat\":\"atkrange\",\"match\":\"1\",\"type\":\"<\"}" "value: 20/60" "match: 1" "pass: false" "=== FILTER ====" "check: atkrange prefix: repeating_attack_-M5UWFHHdblAlMkEs43e_" "rules: [{\"stat\":\"atkrange\",\"match\":0,\"type\":\"!\"}]" "rule: {\"stat\":\"atkrange\",\"match\":0,\"type\":\"!\"}" "value: 20/60" "match: 0" "pass: false" "=== FILTER ====" "check: atkrange prefix: repeating_attack_-M5UXWmpW95xihJaNqiR_" "rules: [{\"stat\":\"atkrange\",\"match\":0,\"type\":\"!\"}]" "rule: {\"stat\":\"atkrange\",\"match\":0,\"type\":\"!\"}" "value: 80/320" "match: 0" "pass: false" "=== FILTER ====" "check: atkrange prefix: repeating_attack_-M63-pPIfcXDWWsYg5Ke_" "rules: [{\"stat\":\"atkrange\",\"match\":0,\"type\":\"!\"}]" "rule: {\"stat\":\"atkrange\",\"match\":0,\"type\":\"!\"}" "value: 20/60" "match: 0" "pass: false" "=== FILTER ====" "check: name=Invocation: prefix: repeating_traits_-M5UR5PlHySA0qyFKAdR_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}" "value: Darkvision" "match: Invocation:" "pass: false" "=== FILTER ====" "check: name=Invocation: prefix: repeating_traits_-M5UR5PlHySA0qyFKAdS_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}" "value: Fey Ancestry" "match: Invocation:" "pass: false" "=== FILTER ====" "check: name=Invocation: prefix: repeating_traits_-M5UTph7LBvyMllTCF1w_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}" "value: Wanderer" "match: Invocation:" "pass: false" "=== FILTER ====" "check: name=Invocation: prefix: repeating_traits_-M63-D7jcgcAuVyEbUOd_" "rules: [{\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}]" "rule: {\"stat\":\"name\",\"match\":\"Invocation:\",\"type\":\"=\"}" "value: Sneak Attack" "match: Invocation:" "pass: false" "====================================="