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.

Having a DOM error

1569524645

Edited 1569525033
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
Sheet works on one game and no errors and does not work on new games. I am getting a new error. DOMException app.js?1569339372:570 It seems to be associated with one sheet worker on my sheet.
1569526487
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
more info t.errorLog @ app.js?1569339372:570
1569533358
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
I created new game and loaded sheet and received errors. I created a copy of a working game using same sheet - no error everything working fine. ????
1569594470
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
I found that not allowing the WebRTC causes a DOM error but that doesn't affect a sheetworker. Sooo that still begs the question why does this sheet worker work in this game:&nbsp; <a href="https://app.roll20.net/campaigns/details/4348330/gurps-testbed" rel="nofollow">https://app.roll20.net/campaigns/details/4348330/gurps-testbed</a> and not in this one:&nbsp; <a href="https://app.roll20.net/campaigns/details/5235386/sheet-test" rel="nofollow">https://app.roll20.net/campaigns/details/5235386/sheet-test</a> . Maybe the Great Scriptomancer Aaron would know? // Update Lines on Melee on("sheet:opened change:repeating_melee remove:repeating_melee change:strength change:ambidextrous change:trained_by_master change:weapon_master change:badfoot change:meleegrappled change:shield_defense_bonus change:shieldccbt change:meleelgshieldpen change:targetpenalty change:distraction change:meleestrikeccbt change:meleewild change:evaluate change:meleecannotsee change:visionpenalty change:nightvision change:firing_size_mod change:temp_DX_mod change:skillRoll_mod", function () { console.log("********* Update Lines Melee *********"); TAS.repeating("melee") .attrs("strength", "ambidextrous", "trained_by_master", "weapon_master", "badfoot", "meleegrappled", "shield_defense_bonus", "shieldccbt", "shield_melee_penalty", "meleelgshieldpen", "targetpenalty", "distraction", "meleestrikeccbt", "meleewild", "evaluate", "meleecannotsee", "visionpenalty", "nightvision", "firing_size_mod", "temp_DX_mod", "skillRoll_mod" ) .fields("esl", "skill", "mmods", "minst", "stdeficit", "rapidstrike", "rsp", "dualweapon", "offhand", "wield", "deceptiveatk", "telegraph", "visionpenalty") .each(function (r, a) { if (r.I.minst &gt; a.I.strength) { r.D[0].stdeficit = a.I.strength - r.I.minst; } else { r.D[0].stdeficit = 0; } if (a.I.trained_by_master &gt; 0 || a.I.weapon_master &gt; 0) { r.D[0].rsp = r.I.rapidstrike / 2; } else { r.D[0].rsp = r.I.rapidstrike; } if (r.I.wield &lt; 1 &amp;&amp; a.I.ambidextrous &lt; 1) { r.D[0].offhand = -4; } else { r.D[0].offhand = 0; } if (a.I.visionpenalty &lt; -9) { r.D[0].visionpenalty = -10; } else { r.D[0].visionpenalty = Math.min(0, (a.F.visionpenalty + a.F.nightvision)); } a.D[0].shield_melee_penalty = a.F.shieldccbt * a.F.shield_defense_bonus; r.D[0].mmods = r.F.stdeficit + r.F.rsp + a.F.badfoot + a.F.meleegrappled + a.F.shield_melee_penalty + a.F.meleelgshieldpen + r.F.offhand + r.F.deceptiveatk + r.F.dualweapon + r.F.telegraph + a.F.targetpenalty + a.F.distraction + a.F.meleestrikeccbt + a.F.meleewild + a.F.evaluate + a.F.meleecannotsee + r.F.visionpenalty + a.F.firing_size_mod + a.F.temp_DX_mod + a.F.skillRoll_mod; r.D[0].esl = r.I.skill + r.F.mmods; }) .execute(); });
Hey&nbsp;SᵃᵛᵃǤᵉ - To best assist in this, are you able to provide additional information on this issue and, if possible, reproduction steps? Some information we could use is listed below: Is there any additional error log information that was provided? If so, what was it? At what point in your workflow does the error occur? Is it once you open the sheet? Load the game? Do you remember when you originally created the working game? To clarify, the one that works when you copy it.
1569612771
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
It seems that the error is immediate.&nbsp; The working game was created at least a year ago. However this problem did not crop up until after the 24th. However i did notice after deactivating the webrtc feature the DOM error went away.
Also, I see you posted a similar issue here , would you like me to close that and redirect here for consolidation?
1569614624
SᵃᵛᵃǤᵉ
Sheet Author
API Scripter
I was asking The Aaron to take a look at the script. Since that is the one piece on the sheet that is not working compared to a working sheet with the exact same code. Because the only calculation in the script that is not functioning is the mmods variable.
Hey&nbsp;SᵃᵛᵃǤᵉ - No worries! Since this issue seems to be addressed in the other thread , I'm going to go ahead and close this post. If you have any additional questions or concerns, please feel free to reach out in the other post or create a new one. Thanks!