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

In a Script.JSON file for an API being submited, would it be OK to change the name, or would that mess things up.

1574585025
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
I am going to be submitting a new DupCharToken.js to github soon, that will hopefully clear up some issues. But I have one question  Originally I gave it the name  " name " : " Duplicate and add identifying number to Character and Token " , but I see that this the longest name of any API script, and that most are much, much shorter.  I am thinking of shortening it to      "name": "DupCharToken", To be more in line with how all the other API scripts are named.  But I don't know (1) if people would want me to do this. and (2) if it is even possible, or will mess things up horribly. Will it even be recognized if the script name suddenly changes? Will things break horribly?    One of the reasons I worry is because the script library is already broken horribly for this script (I don't know why) and I don't want to compound the issue. 
1574587044

Edited 1574587125
GiGs
Pro
Sheet Author
API Scripter
I think it should be okay. The list of scripts should be built up programmatically, so your old name wont exist and wont show up, and your new name will exist and will show up. To be safe, when you submit your script update, you can enter a description in the pull request - I'd mention this concern, and they'll be able to react accordingly, before accepting it, in the unlikely event it would cause issues. Edit:  though i posted without noticing your comment about the script library being broken for the script. What's wrong with it?
1574589141

Edited 1574589639
Chris D.
Pro
Sheet Author
API Scripter
Compendium Curator
Writing a whole different post about it, should be up soon.&nbsp; edit: Here it is:&nbsp; <a href="https://app.roll20.net/forum/post/7936613/need-help-on-why-my-scripts-are-failing-to-load-also-best-ways-to-begin-and-end-api-scripts-to-avoid-interfering-with-other-api-scripts/?pageforid=7936613#post-7936613" rel="nofollow">https://app.roll20.net/forum/post/7936613/need-help-on-why-my-scripts-are-failing-to-load-also-best-ways-to-begin-and-end-api-scripts-to-avoid-interfering-with-other-api-scripts/?pageforid=7936613#post-7936613</a>