<?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/15638" />

	<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>2014-06-14T21:40:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[javidav]]></name></author>
		<updated>2014-06-14T21:40:07-04:00</updated>

		<published>2014-06-14T21:40:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102905#p102905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102905#p102905"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102905#p102905"><![CDATA[
Thank you Pampa, it's works!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12403">javidav</a> — Sat Jun 14, 2014 9:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ExYuLink]]></name></author>
		<updated>2011-01-11T14:26:49-04:00</updated>

		<published>2011-01-11T14:26:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95627#p95627</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95627#p95627"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95627#p95627"><![CDATA[
Sorry, I didn't notice the answer above. I was looking only on the first page. <br><br>Pampa, thank you, your post solves the issue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11490">ExYuLink</a> — Tue Jan 11, 2011 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ExYuLink]]></name></author>
		<updated>2011-01-11T14:09:29-04:00</updated>

		<published>2011-01-11T14:09:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95626#p95626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95626#p95626"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95626#p95626"><![CDATA[
I know it's outdated topic, but I can't find the solution on the web. <br><br>I'm using eggdrop v1.6.18 on FreeBSD 7.3-RELEASE-pX, and I have the same problem with the <em class="text-italics">tgmaxhintcurrent</em> variable. 1.6.18 and 1.6.19 have the same exact problem, on different platforms. <br><br>Does anyone have any idea how to fix this problem?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11490">ExYuLink</a> — Tue Jan 11, 2011 2:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pampa]]></name></author>
		<updated>2008-11-10T10:18:40-04:00</updated>

		<published>2008-11-10T10:18:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85760#p85760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85760#p85760"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85760#p85760"><![CDATA[
I may be a little late, but I have found a solution to this problem<br><br>just replace<br><div class="codebox"><p>Code: </p><pre><code>   if {[catch {incr tghintnum}]!=0} {      set tghintnum 0      regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars      set tgmaxhintcurrent [expr [strlen $_hintchars]&lt;=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]      catch {tgunbindhintcmd}      if {$tgmaxhintcurrent&gt;0} {         set tgrebindhinttimer [utimer $tgtempnohint tgbindhintcmd]      }   } </code></pre></div>by this : <br><div class="codebox"><p>Code: </p><pre><code>   if {![info exists tghintnum]} {      set tghintnum 0      regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars      set tgmaxhintcurrent [expr [strlen $_hintchars]&lt;=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]      catch {tgunbindhintcmd}      if {$tgmaxhintcurrent&gt;0} {         set tgrebindhinttimer [utimer $tgtempnohint tgbindhintcmd]      }   } else { incr tghintnum }</code></pre></div>Hope it will help.<br><br>See ya !<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10311">Pampa</a> — Mon Nov 10, 2008 10:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2008-08-29T06:04:43-04:00</updated>

		<published>2008-08-29T06:04:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84908#p84908</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84908#p84908"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84908#p84908"><![CDATA[
I got the same error , I got Tcl8.4.19 installed and am using FreeBSD.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Fri Aug 29, 2008 6:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2008-04-30T01:41:27-04:00</updated>

		<published>2008-04-30T01:41:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82626#p82626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82626#p82626"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82626#p82626"><![CDATA[
<blockquote class="uncited"><div>There are some minor unrelated issues with Tcl8.5 and eggdrop at the moment, which I hear will be resolved in the next eggdrop version.  So your best bet is Tcl8.4.19.  You will need to recompile your eggdrop after installing the new Tcl package you install.</div></blockquote>Thanks  <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=7220">cache</a> — Wed Apr 30, 2008 1:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-04-29T12:05:09-04:00</updated>

		<published>2008-04-29T12:05:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82616#p82616</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82616#p82616"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82616#p82616"><![CDATA[
There are some minor unrelated issues with Tcl8.5 and eggdrop at the moment, which I hear will be resolved in the next eggdrop version.  So your best bet is Tcl8.4.19.  You will need to recompile your eggdrop after installing the new Tcl package you install.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue Apr 29, 2008 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2008-04-29T06:40:20-04:00</updated>

		<published>2008-04-29T06:40:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82611#p82611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82611#p82611"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82611#p82611"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div><blockquote class="uncited"><div>Odd, I used the search feature several times for that variable and it only came across it being referenced twice in the original post, originally.<br><br>Information also of value would be what version of Tcl is the bot compiled/being compiled against when it works and when it doesn't work.</div></blockquote><div class="codebox"><p>Code: </p><pre><code>openSUSE (eggdrop 1.18 and 1.19) Don't workfreeBSD (eggdrop 1.19) Don't workwindrop (eggdrop 1.19) Don't work===============================freeBSD (eggdrop 1.18) Workswindrop (eggdrop 1.18) Works</code></pre></div>both freebsd and opensuse are latest versions I downloaded from the site.</div></blockquote>Not the eggdrop versions (and they would be 1.6.18, 1.6.19, etc)...<br>When you compile eggdrop, it requires Tcl to be installed... I'm asking what version Tcl (Tool Command Language) is installed and being compiled against with your bots.</div></blockquote>Oh sorry, I haven't paid attention to that... what version TCL is best? I see 8.5 out... when I installed BSD and SUSE they downloaded software in packages and maybe both took a different version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Tue Apr 29, 2008 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-04-28T18:46:32-04:00</updated>

		<published>2008-04-28T18:46:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82597#p82597</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82597#p82597"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82597#p82597"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Odd, I used the search feature several times for that variable and it only came across it being referenced twice in the original post, originally.<br><br>Information also of value would be what version of Tcl is the bot compiled/being compiled against when it works and when it doesn't work.</div></blockquote><div class="codebox"><p>Code: </p><pre><code>openSUSE (eggdrop 1.18 and 1.19) Don't workfreeBSD (eggdrop 1.19) Don't workwindrop (eggdrop 1.19) Don't work===============================freeBSD (eggdrop 1.18) Workswindrop (eggdrop 1.18) Works</code></pre></div>both freebsd and opensuse are latest versions I downloaded from the site.</div></blockquote>Not the eggdrop versions (and they would be 1.6.18, 1.6.19, etc)...<br>When you compile eggdrop, it requires Tcl to be installed... I'm asking what version Tcl (Tool Command Language) is installed and being compiled against with your bots.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Apr 28, 2008 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2008-04-28T02:36:52-04:00</updated>

		<published>2008-04-28T02:36:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82594#p82594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82594#p82594"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82594#p82594"><![CDATA[
Got this error:<br> Tcl error [tgstart]: can't read "tgstreak": no such variable<br><br>When I added: set tgmaxhintcurrent 0<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Mon Apr 28, 2008 2:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2008-04-28T02:24:54-04:00</updated>

		<published>2008-04-28T02:24:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82593#p82593</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82593#p82593"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82593#p82593"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {catch {set tgmaxhintcurrent [expr [strlen $_hintchars]&lt;=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]}} {   putlog "yes indeed, the titanic has sunk :\(" }</code></pre></div> <br><br>Sorry do I add this or replace it with something? I crashed added lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Mon Apr 28, 2008 2:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-04-28T02:05:33-04:00</updated>

		<published>2008-04-28T02:05:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82591#p82591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82591#p82591"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82591#p82591"><![CDATA[
Here is a quick fix hopefully, since tgmaxhintcurrent is a global variable, add at the very top of the script this code below.<div class="codebox"><p>Code: </p><pre><code>set tgmaxhintcurrent 0</code></pre></div>This should let the script at least initially start running as it will then have the variable in memory before it gets to the point your having problems with at the moment.<br><br>*** note: it's more than likely that complex equation used to set the contents of tgmaxhintcurrent that is causing an error, which in turn keeps it from being properly set. The interpreter afterwards moves down into code below expecting that variable to be set. When it isn't it generates the error your presently seeing, basically masking the real error behind it (that overly complex variable setting).<div class="codebox"><p>Code: </p><pre><code>if {catch {set tgmaxhintcurrent [expr [strlen $_hintchars]&lt;=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint]}} {  putlog "yes indeed, the titanic has sunk :\("}</code></pre></div>This can deduce if indeed the problem lies with that pesky complex variable setting, hope you understand.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Apr 28, 2008 2:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2008-04-28T02:07:44-04:00</updated>

		<published>2008-04-28T02:05:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82590#p82590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82590#p82590"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82590#p82590"><![CDATA[
<blockquote class="uncited"><div>Odd, I used the search feature several times for that variable and it only came across it being referenced twice in the original post, originally.<br><br>Information also of value would be what version of Tcl is the bot compiled/being compiled against when it works and when it doesn't work.</div></blockquote><div class="codebox"><p>Code: </p><pre><code>openSUSE (eggdrop 1.18 and 1.19) Don't workfreeBSD (eggdrop 1.19) Don't workwindrop (eggdrop 1.19) Don't work===============================freeBSD (eggdrop 1.18) Workswindrop (eggdrop 1.18) Works</code></pre></div>both freebsd and opensuse are latest versions I downloaded from the site.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Mon Apr 28, 2008 2:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2008-04-28T01:56:24-04:00</updated>

		<published>2008-04-28T01:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82589#p82589</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82589#p82589"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82589#p82589"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>   if {[catch {incr tghintnum}]!=0} {      set tghintnum 0      regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars      set tgmaxhintcurrent [expr [strlen $_hintchars]&lt;=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint] </code></pre></div>It's setting it, but perhaps the code used to set the variable behaves differently depending on OS? Otherwise it's likely the problem is with tghintnum and the IF statement isn't behaving correctly and setting tgmaxhintcurrent.<div class="codebox"><p>Code: </p><pre><code>   if {[catch {incr tghintnum}]} {      set tghintnum 0      regsub -all -- "\[^A-Za-z0-9\]" $tgcurrentanswer "" _hintchars      set tgmaxhintcurrent [expr [strlen $_hintchars]&lt;=$tgmaxhint?[expr [strlen $_hintchars]-1]:$tgmaxhint] </code></pre></div>That may fix it. The !=0 isn't neccessary.</div></blockquote>Thanks, I tried this on version 1.19 and got this error:<br> Tcl error [tgstart]: can't read "tgmaxhintcurrent": no such variable<br><br>and tried change on 1.18 and works fine... no clue why this script will only work on freeBSD/ 1.18<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Mon Apr 28, 2008 1:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2008-04-28T00:36:36-04:00</updated>

		<published>2008-04-28T00:36:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82588#p82588</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82588#p82588"/>
		<title type="html"><![CDATA[trivia tcl by Harry Scarry - script has error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82588#p82588"><![CDATA[
Odd, I used the search feature several times for that variable and it only came across it being referenced twice in the original post, originally.<br><br>Information also of value would be what version of Tcl is the bot compiled/being compiled against when it works and when it doesn't work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Apr 28, 2008 12:36 am</p><hr />
]]></content>
	</entry>
	</feed>
