Dylan S. said: The Aaron said: Which stat are you using for your initiative bonus and how is it being set? Attributes contain strings, but it looks like yours contains a number, the number 10. That's kind of odd. If you go to line 672 and add +'' to the end of it, just before the ;, it should fix the problem: var stat=getAttrByName(char.id,details.attribute, details.type||'current')+''; I hoped this might work out for me as well, but it didn't. Instead of the old error, I get this one. /home/symbly/www/d20-api-server/node_modules/firebase/lib/firebase-node.js:1
orts, require, module, __filename, __dirname) { function g(a){throw a;}var j=v
^
TypeError: Object 7 has no method 'replace'
at _substituteShortForms ( Same set-up as before (using a script to change the value), but updated to the most recent version of this script. Ok, unfortunately, this is an internal error. On the bright side, I talked to Riley about it and he plans to fix it shortly. I don't know anything about timeframe for it to be out. In the interim, this should fix the current issues: on('ready',function(){
"use strict";
filterObjs(function(o){
if('attribute' === o.get('type')) {
if( 'string' !== typeof o.get('current')){
o.set('current', o.get('current')+'');
}
if( 'string' !== typeof o.get('max')){
o.set('max', o.get('max')+'');
}
}
return false;
});
});
Some script you are using is setting attributes to numbers, which that function does not expect. This snippet will check all of your attributes and turn them into strings if they are something else. Of course, using that other script will still set them to numbers, but at least each restart of the sandbox will fix any issues until such time as the function is fixed.