Since the recent sandbox update (Mod sandbox v1.5), every
!hero --import with the 1-click HeroSystem6eHeroic HDImporter (v2.4) crashes
the whole sandbox: TypeError : Cannot read properties of undefined (reading
'replace') at
textchat.js:673:33 at sendChat
(api.js:1786:16) at importEquipment
(HeroSystem6eHeroic_HDImporter.js:1500:3) It happens with every character, even one with no equipment
at all. Cause : line 1500 of HeroSystem6eHeroic_HDImporter.js (v2.4)
has a leftover debug call:
sendChat(script_name, importedShield); importedShield is an object of sheet attributes (it gets
passed to setAttrs on the next line), not a string. The current sandbox throws
when sendChat gets a non-string message. Version 2.3 has the same line (around
line 1400). Fix : delete or comment out that one line. I've been running
v2.4 with only that change, and imports work normally again. The author (Villain In Glasses) hasn't been reachable for
over a month. Could someone with access to the roll20-api-scripts repo apply
this so the 1-click version works again?
Setup : HeroSystem6eHeroic sheet, HDImporter 2.4 (1-click),
HeroSystem6eHeroic.hde 2.4 export template, Mod sandbox v1.5.