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

Trouble with Walls API

Hey all, I'm repeatedly getting trouble using the Walls API, it claims I'm using an unexpected identifier. I'm literally just copy pasting from what I've been given using the DPS 2 software on steam. I don't see the actual problem, so I have no idea on how to fix it. I'll post a short blurb of the code so you can get a general idea of what's happening:  !walls begin !walls viewbox 5600 4000 !walls strokecolor #ff0000 !walls fillcolor transparent !walls strokewidth 3 !walls moveto 700 800 !walls curveto 700 800 700 800 700 1049.394 !walls moveto 700 1149.394 !walls curveto 700 1149.394 700 1149.394 700 1649.394 ... And So on, until... !walls end Any clues as to what's incorrect? It's 450 lines of code as well, if the size is a problem. Thanks in advance!
1636855029
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
I'm sure Aaron will be by in a bit to give you real input on the issue, but it'll probably help if you can share the exact error message you're getting, and where you're seeing it (in chat, in the API console, somewhere else?)
Sure! The exact message is the following, and it outputs in the console itself, and is then headed by a box up top explaining the script was disabled due to the aforementioned error. SyntaxError: Unexpected identifier
1636901151
The Aaron
Roll20 Production Team
API Scripter
Hmm. Unexpected identifier is a source code issue, not a data issue. It would mean there is something wrong with the code for a script. Are you installing from the 1-click or manually?   What else do you have installed?  Also, can you post the full list of commands you're running?
You're pasting the !walls commands into the Roll20 chat right?
Jim R. said: You're pasting the !walls commands into the Roll20 chat right? That.... would fix the problem. Whoops. Sorry to bother you all, but thank you for helping me to realize the issue. I had put everything in the console, when all I needed was the walls script up and then to post commands in chat itself... Sorry if I caused anyone too much trouble thinking over this.
1636914200
The Aaron
Roll20 Production Team
API Scripter
No problem, glad you got it sorted out. Great job sussing that out, Jim R., I was at a loss!! =D