Towards the bottom is a snippet of the code I'm using and the error I am getting while attempting to place a deleted card back to the table. Before the error I get a " ERROR: Please use the 'thumb' size for imgsrc properties. " message and you will see that I have tried addressing that as per the code from here. I'm once again stuck. Is my problem that I'm trying to play a card that is in the discard? if(obj.get('_subtype')=='card') { var theCardID = obj.get('_cardid'); // obj.set('imgsrc',getCleanImgsrc(obj.get('imgsrc'))); // obj.set('sides',getCleanImgsrc(obj.get('sides'))); playCardToTable(theCardID,{left: 100, top: 100}); } For reference, the error message generated was: TypeError: Cannot read property 'set' of undefined TypeError: Cannot read property 'set' of undefined
at playCardToTable (/home/node/d20-api-server/api.js:2492:9)
at handleGraphicDestruction (apiscript.js:7893:9)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8)
at TrackedObj.destroy (/home/node/d20-api-server/api.js:1264:10)
at deleteFromLocalCache (/home/node/d20-api-server/api.js:1388:18)
at /home/node/d20-api-server/api.js:1526:11
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)