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
This post has been closed. You can still view previous posts, but you can't post any new replies.

[Dev server] Chat events recurring when noarchive enabled

When I send a chat message on the dev server using the noarchive option, the event handler appears to receive the resulting event using the previous event's chat content instead of the new event's chat content. When I add this script to a dev server game: var call_count = 0; on("chat:message", function(msg) { &nbsp; if (msg.type !== "api") { return; } &nbsp; if (msg.content !== "!bugtest") { return; } &nbsp; log("Got call " + call_count); &nbsp; if (call_count &lt; 3) { &nbsp; &nbsp; sendChat("bugtest", "Got call count " + call_count, null, {noarchive: true}); &nbsp; } else { &nbsp; &nbsp; sendChat("bugtest", "Got call count " + call_count + ", and stopping"); &nbsp; } &nbsp; call_count += 1; }) and run it using "!bugtest", I get these chat messages, a second or two apart: Got call count 0 Got call count 1 Got call count 2 Got call count 3, and stopping Does not appear to repro on prod. Best guess would be that the message not going into the history causes the event system to fail to see its content, and it picks the last content in the archive to populate the new event with. Similar issues have been reported in the past: <a href="https://app.roll20.net/forum/post/2235521" rel="nofollow">https://app.roll20.net/forum/post/2235521</a> <a href="https://app.roll20.net/forum/post/3003982" rel="nofollow">https://app.roll20.net/forum/post/3003982</a>
I think this should be fixed. Let me know if that fixed it for you. Thanks!
Yep, looks fixed!