
I'm running a 5e campaign and still using the old shaped sheet (which I realize is no longer supported by the author) and I'm running into some intermittent issues with it. As I drag a token to the table sometimes it will roll the health and set it to the appropriate token bar, and then without changing a thing occasionally I'll drag a token to the table and it will not react and I'll receive an error message that says "Possible infinite loop detected, shutting down."
From what I can tell the issue seems to spawn from this section of code:
But with the issue being intermittent I can't put my finger on an actual cause, any assistance would be appreciated.
From what I can tell the issue seems to spawn from this section of code:
sendChat('Shaped', '/roll ' + hdFormula, function (ops) {
log(ops);
var rollResult = JSON.parse(ops[0].content);
log(rollResult);
if (_.has(rollResult, 'total')) {
token.set(barTokenName + '_value', rollResult.total);
token.set(barTokenName + '_max', rollResult.total);
messageToChat('HP (' + hdFormulaChat + ') | average: ' + Math.floor(hdAverage) + ' | rolled: ' + rollResult.total);
log(ops);
var rollResult = JSON.parse(ops[0].content);
log(rollResult);
if (_.has(rollResult, 'total')) {
token.set(barTokenName + '_value', rollResult.total);
token.set(barTokenName + '_max', rollResult.total);
messageToChat('HP (' + hdFormulaChat + ') | average: ' + Math.floor(hdAverage) + ' | rolled: ' + rollResult.total);
But with the issue being intermittent I can't put my finger on an actual cause, any assistance would be appreciated.