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 .
×
Create a free account

[Help] AdvancedCalendar without weather and lunar phases

Hi All, I've been trying to edit the Advanced Calendar script so it didn't have weather and lunar phases, I'm going to be running a game that goes all over the world. However, I've gotten a bit stuck. I got around one error and then got stuck at another one when I call !cal. For reference, the error message generated was: TypeError: AdvancedCalendar._GetOptionsFromTokens is not a function TypeError: AdvancedCalendar._GetOptionsFromTokens is not a function at Object.HandleInput (apiscript.js:455:44) at apiscript.js:560:42 at eval (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:146:1), &lt;anonymous&gt;:65:16) at Object.publish (eval at &lt;anonymous&gt; (/home/node/d20-api-server/api.js:146:1), &lt;anonymous&gt;:70:8) at /home/node/d20-api-server/api.js:1510:12 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) at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489) at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425) I figure I haven't removed everything I need to but for the life of me can't figure it out, even though it's telling me exactly where to look. This is where I'm at: <a href="https://gist.github.com/anonymous/1b12e14cb320672e" rel="nofollow">https://gist.github.com/anonymous/1b12e14cb320672e</a>... Any help is muchly appreciated.
The one I'm working from, for referance.&nbsp;<a href="https://github.com/caioviel/roll20scripts/tree/master/calendar" rel="nofollow">https://github.com/caioviel/roll20scripts/tree/master/calendar</a>
Managed to fix it. For those that are interested. <a href="https://gist.github.com/anonymous/1f6b7d2277bbef17cb4c4801bf6c8fa3" rel="nofollow">https://gist.github.com/anonymous/1f6b7d2277bbef17cb4c4801bf6c8fa3</a>
1507391920
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
FWIW, unless a world has some extremely strange physical setup, moon phases should be universal regardless of your position on the surface. They might vary slightly by up to the better part of a day, depending on your east/west location, and of course rise/set times will be all over the place, but phase is more-or-less consistent. Just mentioning in case it would save you time or effort.