<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/18760" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2013-11-15T00:39:24-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/18760</id>

		<entry>
		<author><name><![CDATA[h0zk4r]]></name></author>
		<updated>2013-11-15T00:39:24-04:00</updated>

		<published>2013-11-15T00:39:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102216#p102216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102216#p102216"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102216#p102216"><![CDATA[
Yes I did it on two eggdrops following step by step working right for some minutes and then the bot continue with that problem, both eggdrops<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12293">h0zk4r</a> — Fri Nov 15, 2013 12:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-11-14T23:08:31-04:00</updated>

		<published>2013-11-14T23:08:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102215#p102215</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102215#p102215"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102215#p102215"><![CDATA[
That's still the eggdrop 1.6.21 timers bug showing itself.<br><br>I have to think you did not apply the patch correctly, or did not recompile the eggdrop after patching the source.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Nov 14, 2013 11:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[h0zk4r]]></name></author>
		<updated>2013-11-14T22:00:08-04:00</updated>

		<published>2013-11-14T22:00:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102214#p102214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102214#p102214"/>
		<title type="html"><![CDATA[problems with bogus trivia]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102214#p102214"><![CDATA[
hello anyone have the solution to this:<br><br>[01:03:28] Tcl error in script for 'timer966':<br>[01:03:28] can't use empty string as operand of "/"<br>[01:04:07] Tcl error in script for 'timer978':<br>[01:04:07] can't use empty string as operand of "/"<br>[01:04:38] Tcl error in script for 'timer988':<br><br>I tryed the patch and everything but it continue the same error, can you help me please???? and sorry about my english jeje I am from Perú <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12293">h0zk4r</a> — Thu Nov 14, 2013 10:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-07-07T16:45:03-04:00</updated>

		<published>2013-07-07T16:45:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101800#p101800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101800#p101800"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101800#p101800"><![CDATA[
Thanks willyw<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Jul 07, 2013 4:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-07-07T16:23:16-04:00</updated>

		<published>2013-07-07T16:23:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101799#p101799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101799#p101799"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101799#p101799"><![CDATA[
Another place to get instructions  on how to apply the patch:<br><br><a href="http://eggwiki.org/Bugs/Timers" class="postlink">http://eggwiki.org/Bugs/Timers</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Jul 07, 2013 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-06T00:11:17-04:00</updated>

		<published>2012-07-06T00:11:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99687#p99687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99687#p99687"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99687#p99687"><![CDATA[
There is now an official Eggdrop patch to allow BogusTrivia to run correctly on Eggdrop version 1.6.21 !<br><br>If you want to run BogusTrivia on the 1.6.21 Eggdrop, Please download and apply the "<strong class="text-strong">timerworkaround.patch.gz by thommey</strong>"  from here: <a href="http://www.egghelp.org/files.htm#patches" class="postlink">http://www.egghelp.org/files.htm#patches</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jul 06, 2012 12:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starr]]></name></author>
		<updated>2012-05-08T09:55:10-04:00</updated>

		<published>2012-05-08T09:55:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99363#p99363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99363#p99363"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99363#p99363"><![CDATA[
Everything has worked smoothly for several days. The posted fix works perfect. I will be posting this fix on mytclscripts.com for any others who may want to use the 1.6.21 eggdrop.<br><br>Hopefully the eggdrop team will address the issue in the form of a patch or re-release.<br><br>Thanks for all the help you provided to track down this bug and apply a workaround.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8814">starr</a> — Tue May 08, 2012 9:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starr]]></name></author>
		<updated>2012-05-06T11:40:43-04:00</updated>

		<published>2012-05-06T11:40:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99355#p99355</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99355#p99355"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99355#p99355"><![CDATA[
I have edited the correct file and compiled the 1.6.21 bot. Loaded Bogustrivia and so far seems to be the fix. I'll continue to test for the next few days and will keep you updated.<br><br>Thank you both for your input. Maybe this can be resolved with eggdrop.<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8814">starr</a> — Sun May 06, 2012 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-05-06T10:19:13-04:00</updated>

		<published>2012-05-06T10:19:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99354#p99354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99354#p99354"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99354#p99354"><![CDATA[
Starr,<br>To apply the fix suggested by thommey, you'd have to edit the file tcl.c in the eggdrop source and recompile. If you are not familiar with patch-files or how to apply them,this fix is easy enough to apply manually. At line 614 (give or take a few lines), you'll find a line saying<div class="codebox"><p>Code: </p><pre><code>do_tcl_async(context, script, bgtclcallback);</code></pre></div>Change that into this<div class="codebox"><p>Code: </p><pre><code>do_tcl_sync(context, script, bgtclcallback, 0);</code></pre></div>Then recompile your eggdrop in the usual manner<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun May 06, 2012 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starr]]></name></author>
		<updated>2012-05-06T09:58:07-04:00</updated>

		<published>2012-05-06T09:58:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99353#p99353</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99353#p99353"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99353#p99353"><![CDATA[
I'd really like to try this fix, however I do not write code I'm more of the tester in this team.<br><br>I have no idea where to enter this fix in the main.c file. If you could give me a better idea of where to put it and what if any lines will be replaced I'd be glad to test this workaround.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8814">starr</a> — Sun May 06, 2012 9:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[thommey]]></name></author>
		<updated>2012-05-06T07:52:07-04:00</updated>

		<published>2012-05-06T07:52:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99349#p99349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99349#p99349"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99349#p99349"><![CDATA[
Great job at tracking down the bug. What nml375 said is exactly what's happening.<br><br>I'd propose this workaround (which basically reverts the change introducing the bug):<br><div class="codebox"><p>Code: </p><pre><code>diff -urN eggdrop1.6.21/src/tcl.c eggdrop1.6.21.timerworkaround/src/tcl.c--- eggdrop1.6.21/src/tcl.c 2012-05-06 13:19:13.209758240 +0200+++ eggdrop1.6.21.timerworkaround/src/tcl.c 2012-05-06 13:23:36.985752474 +0200@@ -611,7 +611,7 @@  * where it's safe to recurse eventually (vwait/update).  */ void do_tcl(char *context, char *script) {-  do_tcl_async(context, script, bgtclcallback);+  do_tcl_sync(context, script, bgtclcallback, 0); }  /* Evaluates Tcl code.</code></pre></div>You can change that one line manually or use it as a <a href="http://www.egghelp.org/enhance.htm#patches" class="postlink">patch file</a> before compiling.<br><br>(The changes introducing the bug were made to fix another bug that was fixed by other means later, so there should be no downside to using this)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9830">thommey</a> — Sun May 06, 2012 7:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-05-05T16:54:32-04:00</updated>

		<published>2012-05-05T16:54:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99347#p99347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99347#p99347"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99347#p99347"><![CDATA[
Was a little bit bored, and dug further..<br>The issue lies with how timers use the new event notifier. Much simplified, timers (and utimers) are removed as their payload (the tcl code) is added to the event-list, not when the payload is finally executed. Between these two points in code execution, all checks for incoming network traffic is done (which in the end results in pubm bindings among others being checked and triggered).<br><br>A quick-fix could be to simply move the call_hook(SECONDLY) call to the end of mainloop, though I havn't investigated this solution that througout yet (might just cause other, more sever problems), so be cautious if you attempt this bugfix! Also, this fix will not allow multiple timers triggering at the same time to see other timers expiring at the same time, regardless of order.<br><br>Around main.c:743 you'll find these five lines of code:<div class="codebox"><p>Code: </p><pre><code>  /* Once a second */  if (now != then) {    call_hook(HOOK_SECONDLY);    then = now;  }</code></pre></div>They should be moved to the end of the same function, just before we parse the event-list at arund main.c:908<div class="codebox"><p>Code: </p><pre><code>  /* Once a second */  if (now != then) {    call_hook(HOOK_SECONDLY);    then = now;  }#ifdef USE_TCL_EVENTS  if (!eggbusy) {/* Process all pending tcl events */#  ifdef REPLACE_NOTIFIER    tclevent_t *e;    if (Tcl_ServiceAll())      tclbusy = 1;    while (tclevents) {      e = tclevents;      tclevents = tclevents-&gt;next;      tclbusy = 1;      do_tcl_sync(e-&gt;context, e-&gt;script, e-&gt;callback, 1);      nfree(e);    }#  else    while (Tcl_DoOneEvent(TCL_DONT_WAIT | TCL_ALL_EVENTS))      tclbusy = 1;#  endif /* REPLACE_NOTIFIER */#endif   /* USE_TCL_EVENTS   */  }  return (eggbusy || tclbusy);}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat May 05, 2012 4:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-05-05T04:18:03-04:00</updated>

		<published>2012-05-05T04:18:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99345#p99345</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99345#p99345"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99345#p99345"><![CDATA[
Apart from the TChkDed bug, I'm not dismissing changes in 1.6.21 as the source. I'm sorry if I made you believe otherwise.<br>That said, I must admit I've read these posts as an issue with the utimer command, not utimers, My bad.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat May 05, 2012 4:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-05-04T20:20:02-04:00</updated>

		<published>2012-05-04T20:20:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99342#p99342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99342#p99342"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99342#p99342"><![CDATA[
Dismissing the bug as not an Eggdrop bug,  does not fix the Eggdrop bug.  All this same code is very stable on all versions of Eggdrop 1.6.15 - 1.6.20 , nothing at all has changed with the BogusTrivia code.<br><br>The issue comes down the the [utimers] command,  and the fact you can no longer rely on its return being a complete list of running timers.<br><br>So,  when someone gets an answer,  Bogus needs to kill the running game timer,  in order to start the timer to the next question.  Bogus asks for a utimers list to see if the timer is still running,  but occasionally the utimers list is empty and Bogus doesn't kill the timer because Eggdrop says it's not still running.  BogusTrivia then sets the new timer to call the next question.  Then the original game timer that Eggdrop assured me was not running,  lands shortly after that, and we have a double game timer loop.  <br><br>No script with timers can stand for that. After the double timer loop starts, the list of possible errors is huge.  It's not a Bogus issue,  Eggdrop did not return the timer in the utimers list,  and Bogus won't kill a timer that's not running,  that would return an error.  But the timer clearly is running because just after i'm told it doesn't exist,  the darn thing lands,  and the whole thing falls apart.<br><br>We can all deny that it's an Eggdrop bug,  but that wont fix the current Eggdrop issue with the utimers command.<br><br>SpiKe^^<br>mytclscripts.com<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri May 04, 2012 8:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2012-05-01T15:48:03-04:00</updated>

		<published>2012-05-01T15:48:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99310#p99310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99310#p99310"/>
		<title type="html"><![CDATA[Bogustrivia issues with Eggdrop 1.6.21]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99310#p99310"><![CDATA[
I did some digging and testing of the code, since the actual timer-code hasn't been touched much since 1.6.20...<br><br>What I've noticed, is that on some occasions timers for TShoTrv2 and TShoTriv are started multiple times, breaking the scripts state-machine. All the different errors seen on the console are results of the environment no longer being what the script expected.<br><br>In defense of speechles, the TChkDed-patch is a perfectly valid bugfix. Also, that is not a "timer-bug", it's merely faulty code called by a timer...<br>As for the other fix, can't tell there as I really can't follow your code in it's current layout.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue May 01, 2012 3:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
