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 .
×

[Help]

1781264476

Edited 1781264690
Just installed the ammo tracking api and got it working for my players with bows, but trying to get javelins to work returns this error: Error: Firebase.update failed: First argument contains NaN in property 'current' at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:9:186) at Ba (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:207) at Aa (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:8:462) at Ea (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:10:403) at J.update (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:146:318) at Object.update (/home/node/d20-api-server/api.js:1088:31) at J.transaction (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:150:123) at TrackedObj._doSave (/home/node/d20-api-server/api.js:1086:27) at Timeout.later [as _onTimeout] (/home/node/d20-api-server/node_modules/underscore/underscore-node-f.cjs:1146:37) at listOnTimeout (node:internal/timers:605:17) Never touched this stuff before so any help would be appreciated - Tired from work so I forgot to add in the title after pasting the error, if a forum mod or dev could edit it to [Help] Ammo Tracking API Error that would also be appreciated
Hi Zaiyukii, That error usually means the Ammo script tried to set the ammo attribute to an invalid number. I think I have applied a fix that should work if you want to give it a try and install it as a "New Script" in the API settings of your game (disable the one-click version first):&nbsp; <a href="https://www.dropbox.com/scl/fi/b81nno0pjzivruby8ap7c/Ammo_v0.3.12.js?rlkey=gqv252bhgopkd8e0idj2s2ej5&amp;dl=0" rel="nofollow">https://www.dropbox.com/scl/fi/b81nno0pjzivruby8ap7c/Ammo_v0.3.12.js?rlkey=gqv252bhgopkd8e0idj2s2ej5&amp;dl=0</a> Let me know if it works.