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

Roll Template causes chat to stop advancing

1494194307

Edited 1494194497
Zargon
Sheet Author
Detailed Description of the Problem In my game for testing various ideas with Custom Character Sheets, I managed to get the in game text chat stuck not seeing new messages with the following custom sheet and roll: <rolltemplate class="sheet-rolltemplate-Example">     {{#^rollWasCrit() d4}}       <span>Roll: </span>{{d4}} <br />     {{/#^rollWasCrit() d4}}     {{#rollWasCrit() d4}}       {{#^rollWasCrit() d6}}         <span>Roll: </span>{{d6}} <br />       {{/#^rollWasCrit() d6}}       {{#rollWasCrit() d6}}         {{#^rollWasCrit() d8}}           <span>Roll: </span>{{d8}} <br />         {{/#^rollWasCrit() d8}}         {{#rollWasCrit() d8}}           {{#^rollWasCrit() d10}}             <span>Roll: </span>{{d10}} <br/>           {{/#^rollWasCrit() d10}}           {{#rollWasCrit() d10}}             {{#^rollWasCrit() d12}}               <span>Roll: </span>{{d12}} <br />             {{/#^rollWasCrit() d12}}             {{#rollWasCrit() d12}}               <span>Roll: </span>{{d20}} <br />             {{/#rollWasCrit() d12}}           {{/#rollWasCrit() d10}}         {{/#rollWasCrit() d8}}       {{/#rollWasCrit() d6}}     {{/#rollWasCrit() d4}}     </rolltemplate> &{template:Example} {d4=[[1d4]]} {d6=[[1d6]]} {d8=[[1d8]]} {d10=[[1d10]]} {d12=[[1d12]]} {d20=[[1d20]]} {skill=[[4]]} The only reason I am reporting this is somehow this only breaks the chat display in game, as any subsequent messages will appear perfectly fine in the Chat Archive. Steps to Reproduce the Problem I have this issue already set up in a copy of my Character Sheet testing game called "Wyvern's Basic template Copy Copy" (2226603) that you are free to use taking a look at this issue. (I made that copy just to narrow down things for the bug report) Configure a custom sheet including the example roll Template Enter the game and enter the example roll template call Reload the Window Attempt to type additional messages, This causes unusual behavior from the chat such as revealing previously typed messages instead. Check external Chat Archive, All messages should be there Clearing Chat Archive fixes issue Description of Your Setup (Browser + Version, Operating System, etc.) Windows 10, Google Chrome 58.0.3029.96, Microsoft Edge 40.15063.0.0
1494215576
Diana P
Pro
Sheet Author
Broken or malformed roll template calls are known to cause issues with chat (I suspect due to portions of html code getting 'stuck' and trying to display on subsequent entries.  though this is only my suspicion.)  Clearing the Chat Archive under the Settings menu on the Campaign Details page of your campaign can typically clear those up. In this case, I think fixing your roll template code can clear this up for you:  the closings for each roll template section (the {{#rollWasCrit() .... }} stuff should be {{/rollWasCrit() .... }} not {{/#rollWasCrit() .... }} try: <rolltemplate class="sheet-rolltemplate-Example">     {{#^rollWasCrit() d4}}       <span>Roll: </span>{{d4}} <br />     {{/^rollWasCrit() d4}}     {{#rollWasCrit() d4}}       {{#^rollWasCrit() d6}}         <span>Roll: </span>{{d6}} <br />       {{/^rollWasCrit() d6}}       {{#rollWasCrit() d6}}         {{#^rollWasCrit() d8}}           <span>Roll: </span>{{d8}} <br />         {{/^rollWasCrit() d8}}         {{#rollWasCrit() d8}}           {{#^rollWasCrit() d10}}             <span>Roll: </span>{{d10}} <br/>           {{/^rollWasCrit() d10}}           {{#rollWasCrit() d10}}             {{#^rollWasCrit() d12}}               <span>Roll: </span>{{d12}} <br />             {{/^rollWasCrit() d12}}             {{#rollWasCrit() d12}}               <span>Roll: </span>{{d20}} <br />             {{/rollWasCrit() d12}}           {{/rollWasCrit() d10}}         {{/rollWasCrit() d8}}       {{/rollWasCrit() d6}}     {{/rollWasCrit() d4}} </rolltemplate> also, to call the roll template, you have to use the double curly braces ( {{ }} ) instead of single curly braces ( { } ) &{template:Example} {{d4=[[1d4]]}} {{d6=[[1d6]]}} {{d8=[[1d8]]}} {{d10=[[1d10]]}} {{d12=[[1d12]]}} {{d20=[[1d20]]}} {{skill=[[4]]}} worked for me with the adjusted html code. Hope this helps.
1494247488
Zargon
Sheet Author
Hmm... Indeed it is a broken template, but it is a bit odd how the Chat archive handles it fine when the in game chat just breaks.
1494263455

Edited 1494263478
Lithl
Pro
Sheet Author
API Scripter
Zargon said: Hmm... Indeed it is a broken template, but it is a bit odd how the Chat archive handles it fine when the in game chat just breaks. Well, the game chat is in a much more complicated environment. The archive is a static HTML page, and a fairly simple one at that, so the browser can likely better-handle any errors in the source.