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

RecursiveTables parsing error

I've set up a lot of rollable tables for treasure and am in the final stretch. However, I am getting an error when I use my last table to generate the loot. Here is the error I'm getting (my apologies for lack of screen shots, but the new editor still doesn't like images): (From RecursiveTables): An error occured parsing this roll:  [[ 1d8 100 ]] sp, [[ 2d6 100 ]] gp, gems [[2t[gems] ]], [[1t[mundane] ]], [[1t[weapons] ]] Error:  Expected "[" or [ |\t] but "2" found. The table from which this error is generated is this: [[ 1d6*100 ]] cp --15 [[ 1d8*100 ]] cp, [[1d4*10 ]] sp --20 [[ 2d8*10 ]] gp, gems [[1t[gems] ]] --15 [[ 2d8*10 ]] gp, gems [[1t[gems] ]], [[1t[mundane] ]] --10 [[ 1d6*100 ]] gp, gems [[1t[gems] ]], [[1t[mundane] ]], [[1t[weapons] ]] --15 [[ 1d8*100 ]] sp, [[ 2d6*100 ]] gp, gems [[2t[gems] ]], [[1t[mundane] ]], [[1t[weapons] ]] --10 [[ 2d6*100 ]] gp, [[ 1d4*10 ]] pp, gems [[2t[gems] ]], [[1t[mundane] ]], [[1t[weapons] ]], [[1t[magicitems] ]] --5 and I'm calling it using RecursiveTables like this: !rt /w gm &{template:5e-shaped} {{title=Loot}} {{content=[[1t[loot-1]]]}} I have changed the Max Depth to a higher threshold but that doesn't seem to be the problem. I also cannot find a syntax or formatting error in the table (or the tables being called recursively) at all. What is going on here?
1532309514
The Aaron
Pro
API Scripter
Try changing the [[2t[gems]]] to [[ 2t[gems]]]. 
The Aaron said: Try changing the [[2t[gems]]] to [[ 2t[gems]]].  Nope. (From RecursiveTables): An error occured parsing this roll:  [[ 1d8 100 ]] sp, [[ 2d6 100 ]] gp, gems [[ 2t[gems] ]], [[ 1t[mundane] ]], [[ 1t[weapons] ]] Error:  Expected "[" or [ |\t] but "2" found.
1532326533
The Aaron
Pro
API Scripter
Hmmm. If you want to pm me a join link and GM me, I can come take a look. 
1532520549
The Aaron
Pro
API Scripter
Fixed!&nbsp; The issue was a in the code I have set up to try and account for this bug:&nbsp; <a href="https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function" rel="nofollow">https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function</a> I've tightened up that code in your game and it's working now.&nbsp; I'll push a new version of RecrusiveTable with that change in it shortly (having issues with my deploy system or I'd do it now).
The Aaron said: Fixed!&nbsp; The issue was a in the code I have set up to try and account for this bug:&nbsp; <a href="https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function" rel="nofollow">https://app.roll20.net/forum/post/2217884/api-regressions-for-inline-dice-expression-in-the-sendchat-api-function</a> I've tightened up that code in your game and it's working now.&nbsp; I'll push a new version of RecrusiveTable with that change in it shortly (having issues with my deploy system or I'd do it now). You're the best! Thanks for the help! :)