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

	<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>2008-12-26T05:27:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[wac]]></name></author>
		<updated>2008-12-26T05:27:28-04:00</updated>

		<published>2008-12-26T05:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=86522#p86522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=86522#p86522"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=86522#p86522"><![CDATA[
the english only one is down and the 'multi-language' one is only does french replies, so as it's not 'multi-language' ... lol<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8485">wac</a> — Fri Dec 26, 2008 5:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-11-02T12:33:55-04:00</updated>

		<published>2007-11-02T12:33:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77394#p77394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77394#p77394"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77394#p77394"><![CDATA[
You're welcome <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>If no-one report me any bug or issue before sunday, I'll officially release it on eggdrop.fr <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Nov 02, 2007 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BeBoo]]></name></author>
		<updated>2007-11-02T10:41:40-04:00</updated>

		<published>2007-11-02T10:41:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77393#p77393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77393#p77393"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77393#p77393"><![CDATA[
Changed first post with information. Thanks, CrazyCat!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9337">BeBoo</a> — Fri Nov 02, 2007 10:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-31T09:16:17-04:00</updated>

		<published>2007-10-31T09:16:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77309#p77309</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77309#p77309"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77309#p77309"><![CDATA[
OK, the beta version is released <a href="http://www.eggdrop.fr/library/sexdice.tcl" class="postlink">here</a><br><br>Peharps some bugs, so tell me if you encounter any issue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Oct 31, 2007 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-31T04:51:01-04:00</updated>

		<published>2007-10-31T04:51:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77299#p77299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77299#p77299"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77299#p77299"><![CDATA[
So, I can confirm that your solution works perfectly, I'll release soon the multilanguage version <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed Oct 31, 2007 4:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-30T12:59:21-04:00</updated>

		<published>2007-10-30T12:59:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77277#p77277</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77277#p77277"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77277#p77277"><![CDATA[
Thx user, I think your first solution is the better for me.<br><br>I'll next time use msgcat package to do multilanguage tcl, but when I first want to try this way <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Oct 30, 2007 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-10-30T10:40:14-04:00</updated>

		<published>2007-10-30T10:40:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77274#p77274</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77274#p77274"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77274#p77274"><![CDATA[
Why don't you use an array?<div class="codebox"><p>Code: </p><pre><code>set langDef(en) {msg1 {Hello World!}msg2 {etc...}}set langDef(fr) {msg1 {Bonjour Monde!}msg2 {etc...}}proc setlang {lang} {array set ::lang $::langDef($lang)}</code></pre></div>Test:<div class="codebox"><p>Code: </p><pre><code>% setlang en% puts $lang(msg1)Hello World!% setlang fr% puts $lang(msg1)Bonjour Monde!</code></pre></div>Of course, there are other ways to do this...eg. combining the "message id" and language name to make the element name in your language array (to avoid having to create the array when switching languages - which is better if you need several languages simultaneously)<div class="codebox"><p>Code: </p><pre><code>set lang(en,msg1) "Hello World!"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Oct 30, 2007 10:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-30T10:30:10-04:00</updated>

		<published>2007-10-30T10:30:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77272#p77272</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77272#p77272"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77272#p77272"><![CDATA[
Could tweak it like this:<div class="codebox"><p>Code: </p><pre><code>namespace eval test {    namespace eval fr {        variable dice1 { "first" "second" "third" }    }    namespace eval en {        variable dice1 { "efirst" "esecond" "ethird" }    }    set lang "en"    putlog "test 1: [lindex [set test::[subst $lang]::dice1] 1]"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Oct 30, 2007 10:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-30T09:11:29-04:00</updated>

		<published>2007-10-30T09:11:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77266#p77266</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77266#p77266"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77266#p77266"><![CDATA[
Sorry but creating a multilanguage version is not so simple that I thought.<br>I've tried different ways:<br>* adding namespaces in $::sexdice<br>* adding external namespaces and import them<br>* ...<br><br>The first method was the one I prefered, but it doesn't work:<div class="codebox"><p>Code: </p><pre><code>namespace eval test {    namespace eval fr {        variable dice1 { "first" "second" "third" }    }    namespace eval en {        variable dice1 { "efirst" "esecond" "ethird" }    }    set lang "en"    putlog "test 1: [lindex $test::[subst $lang]::dice1 1]"    # Tcl error: can't read "test::": no such variable    putlog "test 2: [lindex [subst $lang]::dice1 0]"    #  test 2:}</code></pre></div>(comments are output in the console)...<br><br>I think I'll use dbfiles to work if there's no internal solution...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Oct 30, 2007 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-26T05:46:09-04:00</updated>

		<published>2007-10-26T05:46:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77139#p77139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77139#p77139"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77139#p77139"><![CDATA[
you're welcome...<br>btw, I'll do the 1.3 version wich might <strong class="text-strong">really</strong> interest both of us: multilanguage version (dynamically setted).<br><br>I'm affraid I'll have just a few time to work on it, so I think I'll released it on monday, 29th.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Oct 26, 2007 5:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BeBoo]]></name></author>
		<updated>2007-10-25T14:34:58-04:00</updated>

		<published>2007-10-25T14:34:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77126#p77126</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77126#p77126"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77126#p77126"><![CDATA[
New version is available (1.2). Change log and download links can be found in the first post!<br><br>Thanks for your help thusfar, CrazyCat!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9337">BeBoo</a> — Thu Oct 25, 2007 2:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2007-10-25T03:55:20-04:00</updated>

		<published>2007-10-25T03:55:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77091#p77091</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77091#p77091"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77091#p77091"><![CDATA[
<blockquote class="uncited"><div>I tested your script and got the following error:<br>Tcl error [sexdice::roll]: invalid command name "filt"<br>Any ideas?</div></blockquote>I've updated the tcl during the day, peharps the version you DL wasn't the good one.<br>Try getting the last one and if the error persists, modify the line #84:<div class="codebox"><p>Code: </p><pre><code>set wb [lsearch [filt $mylist] [filt $exclude]]</code></pre></div>may become:<div class="codebox"><p>Code: </p><pre><code>set wb [lsearch [sexdice::filt $mylist] [sexdice::filt $exclude]]</code></pre></div>The other way is to have the filt procedure global (out of the namespace)...<br><blockquote class="uncited"><div> By the way, why not be able to turn ON/OFF dynamically in the partyline for authorised channels, like :<br><br>.chanset #adult +sexdice<br>.chanset #religion -sexdice</div></blockquote>I was thinking about it too, adding udef flags for authorized channels and for forbidden users.<br>I'll wait for the next version from BeBoo, it'll be a collaborative work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Oct 25, 2007 3:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BeBoo]]></name></author>
		<updated>2007-10-24T16:46:29-04:00</updated>

		<published>2007-10-24T16:46:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77085#p77085</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77085#p77085"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77085#p77085"><![CDATA[
<blockquote class="uncited"><div>hello BeBoo<br><br>    I tested the french version, and it s working for me, althought the names of the channels have to be in lowercase, otherwise, it doent work. Also, it may be better to turn off the log on the partyline.<br><br>     By the way, why not be able to turn ON/OFF dynamically in the partyline for authorised channels, like : <br><br>.chanset #adult +sexdice<br>.chanset #religion -sexdice</div></blockquote>As stated above, before I released it, i deleted the requirement of having +games on the chan. It would be a lot easier than filtering for chans thru a variable and having to rehash just to add a chan to the list. I am currently working on version 1.1 to be released alongside Cat's french version. I will make the change there.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9337">BeBoo</a> — Wed Oct 24, 2007 4:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zircon]]></name></author>
		<updated>2007-10-24T16:40:34-04:00</updated>

		<published>2007-10-24T16:40:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77084#p77084</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77084#p77084"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77084#p77084"><![CDATA[
hello BeBoo<br><br>    I tested the french version, and it s working for me, althought the names of the channels have to be in lowercase, otherwise, it doent work. Also, it may be better to turn off the log on the partyline.<br><br>     By the way, why not be able to turn ON/OFF dynamically in the partyline for authorised channels, like : <br><br>.chanset #adult +sexdice<br>.chanset #religion -sexdice<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8115">Zircon</a> — Wed Oct 24, 2007 4:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BeBoo]]></name></author>
		<updated>2007-10-24T16:29:24-04:00</updated>

		<published>2007-10-24T16:29:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=77083#p77083</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=77083#p77083"/>
		<title type="html"><![CDATA[Sex Dice (Current Version: 1.3b MultiLanguage by CrazyCat)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=77083#p77083"><![CDATA[
<blockquote class="uncited"><div><a href="http://www.eggdrop.fr/library/sexdice.tcl" class="postlink">Here's my version</a><br><br>So, included the two features I spoke about and I've translated it.<br><br>I've reduced the namespace to only one level, but feel free to re-adapt rhe tcl as you made it previously <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>You'll notice I supress the global and use the direct call ($::var).</div></blockquote>I tested your script and got the following error:<br><br>Tcl error [sexdice::roll]: invalid command name "filt"<br><br>Any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9337">BeBoo</a> — Wed Oct 24, 2007 4:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
