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.

5e Shaped Companion Script Thread 2

1484310698
Kryx
Pro
Sheet Author
API Scripter
The script supports %%NUMBERED%% I believe.
Kryx said: The script supports %%NUMBERED%% I believe. It seems a bit hit-and-miss from my experience. In one campaign, it absolutely would not add %%NUMBERED%%, no matter how many times I changed the setting. In another, it just works.
alexander h. said: Kryx said: The script supports %%NUMBERED%% I believe. It seems a bit hit-and-miss from my experience. In one campaign, it absolutely would not add %%NUMBERED%%, no matter how many times I changed the setting. In another, it just works. Have you updated to 4.10.0? Lucian posted that update a few days ago and it had a bug fix for token numbering
techiecarer said: alexander h. said: Kryx said: The script supports %%NUMBERED%% I believe. It seems a bit hit-and-miss from my experience. In one campaign, it absolutely would not add %%NUMBERED%%, no matter how many times I changed the setting. In another, it just works. Have you updated to 4.10.0? Lucian posted that update a few days ago and it had a bug fix for token numbering That would explain it, actually. I'm running the Roll20 version on all campaigns, and it's certainly possible the fix was posted between running the first and second campaign.
1484327645
Lucian
Pro
API Scripter
Kryx said: The script supports %%NUMBERED%% I believe. I think what Ken is requesting is not this feature but the ability to set a generic token label for all monsters so that the number is the only identifying feature (e.g. "Monster 25", "Monster 56"). That way the chat output and token labels have a unique identifier that all players can use to refer to the same monster, but it gives away nothing about the identity of the monster. I can see the appeal if you want to try and make things as immersive as possible - although I can imagine it getting confusing in big combats, particularly where there are multiple different types of the same monster and the GM has to identify them by their token graphics only or some sort of lookup table. It's easy to implement and I'll add an enhancement request for making it an option.
Lucian said: Kryx said: The script supports %%NUMBERED%% I believe. I can imagine it getting confusing in big combats, particularly where there are multiple different types of the same monster and the GM has to identify them by their token graphics only or some sort of lookup table. It's easy to implement and I'll add an enhancement request for making it an option. Never thought of this before- I like the concept. It would not be too confusing by the way. Just select the monster in question and the initiative tracker will highlight them with a yellow box. 
1484429213
Zym
Sheet Author
Great to be using the new version. I'm feeling like a newbie for asking this but the problem has come up so best way to resolve is to ask a question. Cheers. I've set the name tag "off" and despite having it (on or off) the nameplate on the token is visible constantly.  Knowing me, its probably something small I haven't done right. 
1484429713

Edited 1484429729
Alexander said: Great to be using the new version. I'm feeling like a newbie for asking this but the problem has come up so best way to resolve is to ask a question. Cheers. I've set the name tag "off" and despite having it (on or off) the nameplate on the token is visible constantly.  Knowing me, its probably something small I haven't done right.  If you have a name there, it is always visable for the GM. The on/off toggle is if a player sees it. If you "Rejoin as Player" (in the Settings tab), having it off should mean that the nameplate doesn't show.
1484429780

Edited 1484430177
Zym
Sheet Author
@Ken my monsters I used the stat block macro set to tokens, this is to make their stat block appear in the chat window whispered to the DM. %{selected|statblock} I also have the  turn-marker API that highlights the token who's turn it is.  This is all I need to differentiate monsters (occasionally I will rename them on their original character sheet i.e commoner labourer, commoner maid, commoner blacksmith) primarily because they are different mooks. Don't let me confuse you with this.
Alexander said: If you have a name there, it is always visable for the GM. The on/off toggle is if a player sees it. If you "Rejoin as Player" (in the Settings tab), having it off should mean that the nameplate doesn't show. @ techiecarer  Out of the two options from !shaped-script-config  Show name tag Show name to players Both are turned off and red. However the tokens names are still visible on the token.  Were these tokens made before you changed the option on the script? If so, try running !shaped-apply-defaults to see if that pushes the correct settings.
1484430418

Edited 1484430737
Zym
Sheet Author
Nevermind, Its a new campaign so importing new macros + APIS and remembering things in the process. Its actually a clash with the  "Health Aura" script (!aura) that also has the same options. I forgot that they did and did not switch them off here. Works well now. Thanks techiecarer Do you know anything about the %{selected|statblock} macro. It does not work, and might be because of companion or original shaped script. Might as well pick your brain while you are around :)
Alexander said: Nevermind, Its a new campaign so importing new macros + APIS and remembering things in the process. Its actually a clash with the "Health Aura" script (!aura) that also has the same options. I forgot that they did and did not switch them off here. Works well now. Thanks techiecarer Do you know anything about the %{selected|statblock} macro. It does not work, and might be because of companion or original shaped script. Might as well pick your brain while you are around :) It should be %{selected|shaped_statblock}, I think it was renamed on the sheet recently and Lucian may not have had a chance to change it in the script yet.
1484430872

Edited 1484431167
Zym
Sheet Author
Brain worth picking.... Thanks @techiecarer. Bingo! === fyi?? No attribute was found for @{Hawk|senses_string} === this is when using %{selected|shaped_statblock} on a mook (Hawk stat block)
1484430899
Kryx
Pro
Sheet Author
API Scripter
It was renamed quite a while ago - probably at least 4 months ago, though as you say maybe Lucian didn't change them yet. All the macros provided by the sheet are prefixed with "shaped".
1484431215

Edited 1484431595
Zym
Sheet Author
I'm that guy who was still using  Shaped Sheet 2.3 or something remember. Just starting up a new campaign and wanted to update everything Kryx.
1484434572

Edited 1484434696
Kryx
Pro
Sheet Author
API Scripter
Alexander said: No attribute was found for @{Hawk|senses_string} === this is when using %{selected|shaped_statblock} on a mook (Hawk stat block) Creature doesn't have senses? I can throw in an empty field to check for this. EDIT: if you pull the latest sheet it'll be fixed.
1484437376

Edited 1484437422
Zym
Sheet Author
Hi Kryx I changed/refreshed the CSS thinking thats what you meant by pull, but I am clueless. What do you mean by "pull"? Another, cheeky, question. I really like the way that the sight is now automatically activated when running  !shaped-import-statblock and I also like the drag and drop from the SRD (this is actually new to me) however I have yet to work out how to drag and drop from the SRD combined with automatically setting up the mooks sight. (Impressive for darkvision and using CTRL+L on the table)
1484438727

Edited 1484438760
Kryx
Pro
Sheet Author
API Scripter
Take the latest HTML and CSS from the sheet's github to fix the senses_string issue. When you mention Drag and Drop - are you talking about on the tabletop? If so I believe senses should work.. perhaps not with the new senses. Perhaps you can provide me a reproduction path on my  issue tracker ?
Lucian said:  although I can imagine it getting confusing in big combats, particularly where there are multiple different types of the same monster and the GM has to identify them by their token graphics only or some sort of lookup table. It's easy to implement and I'll add an enhancement request for making it an option. thank you for accommodating me.  It can get slightly unwieldy, but I use the groupinitative script and I don't mind changing some token names if necessary after the fact, but I like starting off with my default.
1484440061

Edited 1484441824
Zym
Sheet Author
Take the latest HTML and CSS from the sheet's github to fix the senses_string issue. Fixed works without error message now. Thank you. When you mention Drag and Drop - are you talking about on the tabletop? Yes If so I believe senses should work.. perhaps not with the new senses. Perhaps you can provide me a reproduction path on my issue tracker ? Will do. Wait... Thinking about it, it wouldn't make sense. The token is populated via  !shaped-import-statblock  Yet, drag and drop is populating the sheet not the token. The token "senses" couldn't be filled out because the token hasn't been set. So then I thought it was my mistake so set the token on the character sheet first before dragging and dropping the stat block from the SRD. But it doesn't fill the empty character sheet, it actually replicates it with a new character sheet. I mean thats obviously to you, but I haven't used much of the new sheet.
1484443599

Edited 1484534915
Can anyone point me to a tutorial for how to get custom spell .js files used here? The documentation says "These should be script files that end in .js (not .json), and you install them in exactly the same way that you install the main script."  I've got [edit]A FILE[/edit], and simply adding a new script to my game isn't doing anything useful with that file -- I just get a syntax error after it compiles. Trying Google searches, not getting any hits from these forums easily, so sorry if this has been addressed anywhere in this or other forums threads. I definitely haven't been able to find any JSON files that are already clearly setup to be used with Shaped.
1484479359
Zym
Sheet Author
@Isaiah E. Any custom data bases would be useful to me also. Or even how to build my own.
I would PM  Lucian for help on finding or setting up custom databases. The documentation should have templates for such code, IMO, otherwise it is incomplete. What I don't understand is why there is a monster statblock import function (an alternative to custom database which works quite well, BTW) which parses text that is presumably copied from a pdf or text file, but not a spell import function that would parse from a similar text source.
1484503883
Kryx
Pro
Sheet Author
API Scripter
Most everyone uses the spell json functionality is why.
Yeah, I'm fine with the json database, I just can't seem to find any already tooled for use with this. There was a template from a long while back before this new version was made, not sure if that template is still viable. With a template I can at least edit the json databases I can find to have the proper fields.
1484512634
Kryx
Pro
Sheet Author
API Scripter
{ "name": "Fireball", "description": "A bright streak flashes from your pointing finger to a point you choose within range and then blossoms with a low roar into an explosion of flame. Each creature in a 20-foot-radius sphere centered on that point must make a Dexterity saving throw. A target takes 8d6 fire damage on a failed save, or half as much damage on a successful one.\nThe fire spreads around corners. It ignites flammable objects in the area that aren't being worn or carried.", "higherLevel": "When you cast this spell using a spell slot of 4th level or higher, the damage increases by 1d6 for each slot level above 3rd.", "emote": "evokes a bright streak that flashes from {{GENDER_PRONOUN_HIS_HER}} pointing finger to a point and then blossoms with a low roar into an explosion of flame", "source": "phb 241", "range": "150 feet", "components": { "verbal": true, "somatic": true, "material": true, "materialMaterial": "a tiny ball of bat guano and sulfur" }, "duration": "Instantaneous", "castingTime": "1 action", "level": 3, "school": "Evocation", "save": { "ability": "Dexterity", "damage": "8d6", "damageType": "fire", "saveSuccess": "half damage", "higherLevelDice": "1", "higherLevelDie": "d6" }, "classes": [ "Cleric", "Sorcerer", "Warlock", "Wizard" ], "domains": [ "Light" ], "patrons": [ "Fiend" ] }, { "name": "Fire Bolt", "description": "You hurl a mote of fire at a creature or object within range. Make a ranged spell attack against the target. On a hit, the target takes 1d10 fire damage. A flammable object hit by this spell ignites if it isn't being worn or carried.", "higherLevel": "This spell's damage increases by 1d10 when you reach 5th level (2d10), 11th level (3d10), and 17th level (4d10).", "emote": "hurls a mote of fire at a creature or object", "source": "phb 242", "range": "120 feet", "components": { "verbal": true, "somatic": true }, "duration": "Instantaneous", "castingTime": "1 action", "level": 0, "school": "Evocation", "attack": { "type": "ranged", "damage": "((@{level} + 1) / 6 + 0.5)d10", "damageType": "fire" }, "classes": [ "Sorcerer", "Wizard" ] }, Is that what you need?
1484583055
Lucian
Pro
API Scripter
As stated in the head post of the thread, anyone who wants help with JSON databases should PM me their email address. Cheers,
1484766020

Edited 1484766625
I get this error. Starting today. Made a new game started adding monsters and this is the logfile after i input !shaped-import-statblock. It's directly copied from my other game where it worked fine before. Bandit Warrior Medium humanoid (any race), any non-lawful alignment Armor Class 14 Hit Points 11 (3d8+ 2) Speed 30 ft. str 14 (+2) dex 14 (+2) con 14 (+2) int 10 (0) wis 10 (0) cha 10 (0) Proficiency Bonus +2 Senses passive Perception 10 Languages any one language (usually Common) Challenge 1/2 Actions Greataxe. Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d12 + 2) slashing damage. Light Crossbow. Ranged Weapon Attack: +3 to hit, range 80 ft./320 ft., one target. Hit: 5 (1d8 + 2) piercing damage. "5eShapedCompanion 1484765582768 ERROR : TypeError: Cannot read property 'remove' of undefined\n&nbsp;&nbsp;&nbsp; at apiscript.js:2649:21\n&nbsp;&nbsp;&nbsp; at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:158:9)\n&nbsp;&nbsp;&nbsp; at ShapedScripts.applyCharacterDefaults (apiscript.js:2644:8)\n&nbsp;&nbsp;&nbsp; at ShapedScripts.monsterDataPopulator (apiscript.js:2583:11)\n&nbsp;&nbsp;&nbsp; at apiscript.js:2501:46\n&nbsp;&nbsp;&nbsp; at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n&nbsp;&nbsp;&nbsp; at apiscript.js:2501:12\n&nbsp;&nbsp;&nbsp; at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n&nbsp;&nbsp;&nbsp; at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n&nbsp;&nbsp;&nbsp; at ShapedScripts.importMonsters (apiscript.js:2488:9)" "5eShapedCompanion 1484765693452 INFO : Importing statblocks for tokens [{\"_id\":\"-KamfQjpYLl5hl5uG1n7\",\"_pageid\":\"-KWSYMzP6dreC9aeHV2Q\",\"left\":210,\"top\":595,\"width\":140,\"height\":70,\"rotation\":180,\"layer\":\"objects\",\"isdrawing\":false,\"flipv\":false,\"fliph\":false,\"imgsrc\":\"<a href="https://s3.amazonaws.com/files.d20.io/marketplace/5658/IX6CNaQTDYC8mzsq9w5cBg/max.png?1339738600\&quot;,\&quot;name\&quot;:\&quot;\&quot;,\&quot;gmnotes\&quot;:\&quot;Bandit%20Warrior11%3Cbr%3EMedium%20humanoid%20%28any%20race%29%2C%20any%20non-lawful%20alignment%3Cbr%3EArmor%20Class%2014%3Cbr%3EHit%20Points%2011%20%283d8+%202%29%3Cbr%3ESpeed%2030%20ft.%20str%3Cbr%3E14%20%28+2%29%3Cbr%3E%20dex%3Cbr%3E14%20%28+2%29%3Cbr%3E%20con%3Cbr%3E14%20%28+2%29%3Cbr%3E%20int%3Cbr%3E10%20%280%29%3Cbr%3E%20wis%3Cbr%3E10%20%280%29%3Cbr%3E%20cha%3Cbr%3E10%20%280%29%3Cbr%3EProficiency%20Bonus%20+2%3Cbr%3ESenses%20passive%20Perception%2010%3Cbr%3ELanguages%20any%20one%20language%20%28usually%20Common%29%3Cbr%3EChallenge%201/2%3Cbr%3EActions%3Cbr%3EGreataxe.%20Melee%20Weapon%20Attack%3A%20+4%20to%20hit%2C%20reach%205%20ft.%2C%20one%20target.%20Hit%3A%204%20%281d12%20+%202%29%20slashing%20damage.%3Cbr%3ELight%20Crossbow.%20Ranged%20Weapon%20Attack%3A%20+3%20to%20hit%2C%20range%2080%20ft./320%20ft.%2C%20one%20target.%20Hit%3A%205%20%281d8%20+%202%29%20piercing%20damage.\&quot;,\&quot;controlledby\&quot;:\&quot;\&quot;,\&quot;bar1_value\&quot;:\&quot;\&quot;,\&quot;bar1_max\&quot;:\&quot;\&quot;,\&quot;bar1_link\&quot;:\&quot;\&quot;,\&quot;bar2_value\&quot;:\&quot;\&quot;,\&quot;bar2_max\&quot;:\&quot;\&quot;,\&quot;bar2_link\&quot;:\&quot;\&quot;,\&quot;bar3_value\&quot;:\&quot;\&quot;,\&quot;bar3_max\&quot;:\&quot;\&quot;,\&quot;bar3_link\&quot;:\&quot;\&quot;,\&quot;represents\&quot;:\&quot;\&quot;,\&quot;aura1_radius\&quot;:\&quot;\&quot;,\&quot;aura1_color\&quot;:\&quot;#FFFF99\&quot;,\&quot;aura1_square\&quot;:false,\&quot;aura2_radius\&quot;:\&quot;\&quot;,\&quot;aura2_color\&quot;:\&quot;#59E594\&quot;,\&quot;aura2_square\&quot;:false,\&quot;tint_color\&quot;:\&quot;transparent\&quot;,\&quot;statusmarkers\&quot;:\&quot;\&quot;,\&quot;showname\&quot;:false,\&quot;showplayers_name\&quot;:false,\&quot;showplayers_bar1\&quot;:false,\&quot;showplayers_bar2\&quot;:false,\&quot;showplayers_bar3\&quot;:false,\&quot;showplayers_aura1\&quot;:false,\&quot;showplayers_aura2\&quot;:false,\&quot;playersedit_name\&quot;:true,\&quot;playersedit_bar1\&quot;:true,\&quot;playersedit_bar2\&quot;:true,\&quot;playersedit_bar3\&quot;:true,\&quot;playersedit_aura1\&quot;:true,\&quot;playersedit_aura2\&quot;:true,\&quot;light_radius\&quot;:\&quot;\&quot;,\&quot;light_dimradius\&quot;:\&quot;\&quot;,\&quot;light_otherplayers\&quot;:false,\&quot;light_hassight\&quot;:false,\&quot;light_angle\&quot;:\&quot;\&quot;,\&quot;light_losangle\&quot;:\&quot;\&quot;,\&quot;light_multiplier\&quot;:1,\&quot;sides\&quot;:\&quot;\&quot;,\&quot;currentSide\&quot;:0,\&quot;lastmove\&quot;:\&quot;420,595\&quot;,\&quot;_type\&quot;:\&quot;graphic\&quot;,\&quot;_subtype\&quot;:\&quot;token\&quot;,\&quot;_cardid\&quot;:\&quot;\" rel="nofollow">https://s3.amazonaws.com/files.d20.io/marketplace/5658/IX6CNaQTDYC8mzsq9w5cBg/max.png?1339738600\",\"name\":\"\",\"gmnotes\":\"Bandit%20Warrior11%3Cbr%3EMedium%20humanoid%20%28any%20race%29%2C%20any%20non-lawful%20alignment%3Cbr%3EArmor%20Class%2014%3Cbr%3EHit%20Points%2011%20%283d8+%202%29%3Cbr%3ESpeed%2030%20ft.%20str%3Cbr%3E14%20%28+2%29%3Cbr%3E%20dex%3Cbr%3E14%20%28+2%29%3Cbr%3E%20con%3Cbr%3E14%20%28+2%29%3Cbr%3E%20int%3Cbr%3E10%20%280%29%3Cbr%3E%20wis%3Cbr%3E10%20%280%29%3Cbr%3E%20cha%3Cbr%3E10%20%280%29%3Cbr%3EProficiency%20Bonus%20+2%3Cbr%3ESenses%20passive%20Perception%2010%3Cbr%3ELanguages%20any%20one%20language%20%28usually%20Common%29%3Cbr%3EChallenge%201/2%3Cbr%3EActions%3Cbr%3EGreataxe.%20Melee%20Weapon%20Attack%3A%20+4%20to%20hit%2C%20reach%205%20ft.%2C%20one%20target.%20Hit%3A%204%20%281d12%20+%202%29%20slashing%20damage.%3Cbr%3ELight%20Crossbow.%20Ranged%20Weapon%20Attack%3A%20+3%20to%20hit%2C%20range%2080%20ft./320%20ft.%2C%20one%20target.%20Hit%3A%205%20%281d8%20+%202%29%20piercing%20damage.\",\"controlledby\":\"\",\"bar1_value\":\"\",\"bar1_max\":\"\",\"bar1_link\":\"\",\"bar2_value\":\"\",\"bar2_max\":\"\",\"bar2_link\":\"\",\"bar3_value\":\"\",\"bar3_max\":\"\",\"bar3_link\":\"\",\"represents\":\"\",\"aura1_radius\":\"\",\"aura1_color\":\"#FFFF99\",\"aura1_square\":false,\"aura2_radius\":\"\",\"aura2_color\":\"#59E594\",\"aura2_square\":false,\"tint_color\":\"transparent\",\"statusmarkers\":\"\",\"showname\":false,\"showplayers_name\":false,\"showplayers_bar1\":false,\"showplayers_bar2\":false,\"showplayers_bar3\":false,\"showplayers_aura1\":false,\"showplayers_aura2\":false,\"playersedit_name\":true,\"playersedit_bar1\":true,\"playersedit_bar2\":true,\"playersedit_bar3\":true,\"playersedit_aura1\":true,\"playersedit_aura2\":true,\"light_radius\":\"\",\"light_dimradius\":\"\",\"light_otherplayers\":false,\"light_hassight\":false,\"light_angle\":\"\",\"light_losangle\":\"\",\"light_multiplier\":1,\"sides\":\"\",\"currentSide\":0,\"lastmove\":\"420,595\",\"_type\":\"graphic\",\"_subtype\":\"token\",\"_cardid\":\"\</a>"}]" "5eShapedCompanion 1484765693475 INFO : {\"monsters\":[{\"name\":\"Bandit Warriorl1\",\"size\":\"Medium\",\"type\":\"humanoid (any race)\",\"alignment\":\"any non-lawful alignment\",\"AC\":\"14\",\"HP\":\"11 (3d8+ 2)\",\"speed\":\"30 ft.\",\"strength\":14,\"dexterity\":14,\"constitution\":14,\"intelligence\":10,\"wisdom\":10,\"charisma\":10,\"languages\":\"any one language (usually Common)\",\"challenge\":\"1/2\",\"actions\":[{\"name\":\"Greataxe\",\"text\":\"Melee Weapon Attack: +4 to hit, reach 5 ft., one target. Hit: 4 (1d12 + 2) slashing damage.\"},{\"name\":\"Light Crossbow\",\"text\":\"Ranged Weapon Attack: +3 to hit, range 80 ft./320 ft., one target. Hit: 5 (1d8 + 2) piercing damage.\"}]}]}" "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." "ERROR: You must pass in a valid 'characterid' property when creating an attribute." "ERROR: You must pass in a valid 'characterid' property when creating an attribute." "5eShapedCompanion 1484765693586 ERROR : TypeError: Cannot read property 'remove' of undefined" "5eShapedCompanion 1484765693587 ERROR : TypeError: Cannot read property 'remove' of undefined\n&nbsp;&nbsp;&nbsp; at apiscript.js:2649:2 1\n&nbsp;&nbsp;&nbsp; at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:158:9)\n&nbsp;&nbsp;&nbsp; at ShapedScripts.applyCharacterDefaults (apiscript.js:2644:8)\n&nbsp;&nbsp;&nbsp; at ShapedScripts.monsterDataPopulator (apiscript.js:2583:11)\n&nbsp;&nbsp;&nbsp; at apiscript.js:2501:46\n&nbsp;&nbsp;&nbsp; at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n&nbsp;&nbsp;&nbsp; at apiscript.js:2501:12\n&nbsp;&nbsp;&nbsp; at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n&nbsp;&nbsp;&nbsp; at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n&nbsp;&nbsp;&nbsp; at ShapedScripts.importMonsters (apiscript.js:2488:9)"
Hi! I'm getting a weird error whenever I import a monster via !shaped-import-statblock or !shaped-import-monster. This morning everything was working fine, both importing methods. After modifying a monster on the .js where I got them all and restarting the API, I tried to import a monster and those errors showed up. When I finally gave up and tried to do it via statblock the same kind of errors showed up again. The character is created and both token and image are associated, but the character sheet is empty, with no import option and on Player Character mode.
1484773083

Edited 1484773460
Sarkamist said: I'm getting a weird error whenever I import a monster via !shaped-import-statblock or !shaped-import-monster. I am getting the same error. An exact same import I did yesterday is not working today. Here is the error I get in the log:&nbsp; "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." "ERROR: You cannot set the imgsrc or avatar of an object unless you use an image that is in your Roll20 Library. See the API documentation for more info." "ERROR: You must pass in a valid 'characterid' property when creating an attribute." "5eShapedCompanion 1484772776977 ERROR : TypeError: Cannot read property 'remove' of undefined" "5eShapedCompanion 1484772776988 ERROR : TypeError: Cannot read property 'remove' of undefined\n at apiscript.js:10685:21\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:158:9)\n at ShapedScripts.applyCharacterDefaults (apiscript.js:10680:8)\n at ShapedScripts.monsterDataPopulator (apiscript.js:10619:11)\n at apiscript.js:10537:46\n at Function._.each._.forEach (/home/node/d20-api-server/node_modules/underscore/underscore.js:153:9)\n at apiscript.js:10537:12\n at Function._.map._.collect (/home/node/d20-api-server/node_modules/underscore/underscore.js:172:24)\n at _.(anonymous function) [as map] (/home/node/d20-api-server/node_modules/underscore/underscore.js:1496:34)\n at ShapedScripts.importMonsters (apiscript.js:10524:9)"&gt;
1484776144

Edited 1484776197
Zym
Sheet Author
Have you tried resetting the API and running through your actions again. Also, this may not be your solution, however, after you run the !import command, when the character sheet is created, click on that character and 'import character' so it populates the sheet, trying to do pretty much anything else before 'import character' and the script will return an error.&nbsp; Thats a basic solution that may help, or may not. I can't say I didn't try to help :-)
Many times. Also tried to recopy and past the latest versions. None of these solved the problem.
Getting same issue, started today. Yesterday everything was working just fine.
1484780215
Kryx
Pro
Sheet Author
API Scripter
Perhaps roll20 pushed their API sheet worker changes?
1484781238
The Aaron
Pro
API Scripter
Kryx said: Perhaps roll20 pushed their API sheet worker changes? They have! &nbsp; <a href="https://app.roll20.net/forum/permalink/4507273/" rel="nofollow">https://app.roll20.net/forum/permalink/4507273/</a>
Its odd to me that they rolled out both on the dev and main at the same time. It puts a time crunch on sheet and API designers to roll out updates, and possibly breaks some functions, without giving people time to playtest script changes.
1484782442
The Aaron
Pro
API Scripter
I'm pretty sure it's been on dev for more than a few months.&nbsp;
1484782577
The Aaron
Pro
API Scripter
Yeah, 10/17:&nbsp;<a href="https://app.roll20.net/forum/permalink/4124691/" rel="nofollow">https://app.roll20.net/forum/permalink/4124691/</a>
Oh, I misread the original post. Apologies.
1484794177

Edited 1484794326
Riley D.
Roll20 Team
Kryx said: Perhaps roll20 pushed their API sheet worker changes? Do we need to just give you guys the ability to turn this off? I hadn't anticipated that people would already have API scripts out there that were using setWithWorker() active on Main before it was actually on Main.
Any Ideas on an eta for a fix for the&nbsp;"5eShapedCompanion 1484772776977 ERROR : TypeError: Cannot read property 'remove' of undefined" issue? Is it a fix that needs to be made on the sheet or within the companion scripts?
1484810345
Kryx
Pro
Sheet Author
API Scripter
Riley D. said: Do we need to just give you guys the ability to turn this off? I hadn't anticipated that people would already have API scripts out there that were using setWithWorker() active on Main before it was actually on Main. I do not know the cause of the issue, though Lucian hasn't implemented any of the new setWithWorker as far as I'm aware. I'll ping him and see if he's available to investigate within the next 24 hrs.
1484811259
Lucian
Pro
API Scripter
Hey guys, I haven't pushed any setWithWorker changes from my side at all. Furthermore I've been testing on dev for months without seeing this issue. So this is really weird. I'm guessing that something strange happened between the SheetWorker changes being on dev and being pushed live that has broken this. Investigating now. Sorry! Lucian
1484815219
Lucian
Pro
API Scripter
Yeah, so I've tracked this down. I guess Riley's last minute changes (untested on dev) to fix the naming behaviour for indexing have caused an undesirable change in behaviour of findObjs. For this interested in the gory technical detail it's here: <a href="https://app.roll20.net/forum/permalink/4515628/" rel="nofollow">https://app.roll20.net/forum/permalink/4515628/</a> I don't propose to fix the script at this point, sorry, because it's going to be a faff to do so (the current development version of the script isn't compatible with versions of the sheet prior to 8.x and my build system makes branching it a PITA). Hopefully Riley can push out a fix ASAP to sort this out.
1484832793
Jakob
Sheet Author
API Scripter
If anyone needs a fix NOW, you can replace line 135 of the script by &nbsp; &nbsp;return findObjs(_.clone(attributes)); I don't know what else this breaks, but it seems to work as a band-aid until findObjs is fixed.
Thanks Jakob. At least that would let you set up your table with the mobs and switch back of it does cause other issues.&nbsp;
I pushed out a fix which should solve this problem. Let me know if that helps.
1484853552
Lucian
Pro
API Scripter
Yep, that's fixed now. Thanks Riley!