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

	<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>2002-11-13T06:00:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2002-11-13T06:00:41-04:00</updated>

		<published>2002-11-13T06:00:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13119#p13119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13119#p13119"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13119#p13119"><![CDATA[
YES!!!!!  Finally, I got it to work! Thank you all for you help.  Indeed, I was overlooking parts.<br><br>UmbraSG, who will probably have more questions soon enough <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Wed Nov 13, 2002 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2002-11-12T03:00:11-04:00</updated>

		<published>2002-11-12T03:00:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13070#p13070</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13070#p13070"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13070#p13070"><![CDATA[
Okay, going to give it a shot.  Had computer problems, so it's a good thing I posted the code  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> Ended up having to build an entirly new system and wipe the harddrives.  God, don't you just love it when everything goes wrong all at once ?<br><br>Umby<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Tue Nov 12, 2002 3:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-08T13:21:15-04:00</updated>

		<published>2002-11-08T13:21:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12951#p12951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12951#p12951"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12951#p12951"><![CDATA[
First of all, 'buffer' is a single char. You need to read into nArray!<br><br>Also, if you're doing this on linux, you can use gdb to find out exactly what is happening. Follow the directions to make a debug-enabled eggdrop ('make debug'). Then when it crashes, you should have a core file in the bot's dir... like core.1234 (pid). You should then type (in the bot's dir):<br><br>gdb eggdrop core.1234<br><br>It will start, read in 'symbol information,' and then tell you exactly where the bot crashed. If it doesn't, type "where" and it will show you. There are really advanced things you can do with it... I can't explain them all here, but probably the most useful is to use the "up" command to go up the backtrace to your function (it will tell you which function it is in at each step... use "down" if you went too far up) and then use "print &lt;varname&gt;" and you can see the values of all your variables at the time of the crash. It's really handy.<br><br>Another useful thing is to start eggdrop, and then type<br><br>gdb eggdrop -p 1234 (your pid)<br><br>Gdb will attach to eggdrop and let you debug it while it's actually running. You can set a breakpoint ("break &lt;function name&gt;" command) at the function that is crashing and then use "step" to go line-by-line until it crashes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Nov 08, 2002 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-10-28T08:49:31-04:00</updated>

		<published>2002-10-28T08:49:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12511#p12511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12511#p12511"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12511#p12511"><![CDATA[
You didnt read my second post did you?<br><br>The error is there ... look up there.<br><br>Dont do a make static - that means that the modules are no longer dynamically loaded. Do a make clean then a make debug (i think - check the compiling docs - there are lots of docs in the release, not just source!!!)<br><br>alos, I wasnt talking about typing the command into dcc, I was talking about having a dcc connection to the console open at the time, and watching for putlogs (its a function - and its used in woobie - as I said before, if you have your console level set right, you will see the putlogs appear in the dcc chat - its a lot like old skool printf debugging. except with a bigger cache problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> )<br><br>and yes - ppslim is right - context is your friend - that and the docs folder in the distribution - all of this is explained in there!!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Mon Oct 28, 2002 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-28T06:38:47-04:00</updated>

		<published>2002-10-28T06:38:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12507#p12507</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12507#p12507"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12507#p12507"><![CDATA[
The reason it shows the line "Context;" as the error point, is becuase it is designed to.<br><br>"Context;" is a debug marker. Everytime this macro is called, it stors the filename, and line number. Thus, whe  your bot crashes, it tells you the last time the "Context;" macro was called.<br><br>This can be used, to tell, near enough (if used properly) where the error is.<br><br>The error you have, will be located between the line number shown in the last content message, and the next context.<br><br>Thus, if you place more "Context;" lines in, youw ill soon find out, exactly where the error is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Oct 28, 2002 6:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2002-10-28T03:52:47-04:00</updated>

		<published>2002-10-28T03:52:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12498#p12498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12498#p12498"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12498#p12498"><![CDATA[
ARGH!! So frutrated!  A friend suggested that I do 'make static' which still caused me to have a Segment Violation error on a line that contain 'Context;'  Honestly, i have felt like throwing my computer to the floor and stomping on it.  woobie works without any problems what-so-ever, but if I had one line to woobie, suddenly the code no longer works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Mon Oct 28, 2002 3:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2002-10-25T15:57:42-04:00</updated>

		<published>2002-10-25T15:57:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12370#p12370</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12370#p12370"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12370#p12370"><![CDATA[
Answer to #1: No dccing into the bot to type the command. I type it in the room.  Yes, I have got a segment violation, but that one is with the compiled form.  I have never got the one I compiled to work (dns module won't compile either because of no functional resolvers).  It gave me a tcl?.h error ('?' - don't remember the whole name).  It told me to report it as a bug since it was a segment violation.<br><br>Answer to Question #2:  I haven't used Context nor putlog.<br><br>Answer to Question #3: I don't think so. How would I go about defining debug mode?<br><blockquote class="uncited"><div>Ok .. here comes the fun part .. debugging.<br><ul><li>step 1 - are you dcc'ed into the bot when you run the command? Does it give a segment violation?<br><br>step 2 - have you used Context; and putlog to trace the line where it crashes? If you have your console mode set right, you can view the putlogs as they happen, and the last Context; call (along with a small history of previous calls) will be reported if the bot crashes. Believe me, its easy if the bot crashes - if it goes into an infinate loop, its much moer fun!!<br><br>step 3 - is the bot compiled in debug mode? If so you wall have extensive memory allocation info, and if the bot crashes, it will do a core dump, which you can run a debugger over (more detail in another thread not too far down on this forum)</li></ul></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Fri Oct 25, 2002 3:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-10-25T06:38:25-04:00</updated>

		<published>2002-10-25T06:38:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12351#p12351</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12351#p12351"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12351#p12351"><![CDATA[
oh and btw - in pub_rules, I suspect<br><div class="codebox"><p>Code: </p><pre><code>char nArray[25]</code></pre></div>should be <br><div class="codebox"><p>Code: </p><pre><code>char nArray[255]</code></pre></div>as you are freading 255 bytes into it ...<br><br>and why are you noticing the user text one char at a time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Fri Oct 25, 2002 6:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-10-25T04:55:34-04:00</updated>

		<published>2002-10-25T04:55:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12348#p12348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12348#p12348"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12348#p12348"><![CDATA[
Ok .. here comes the fun part .. debugging.<br><ul><li>step 1 - are you dcc'ed into the bot when you run the command? Does it give a segment violation?<br><br>step 2 - have you used Context; and putlog to trace the line where it crashes? If you have your console mode set right, you can view the putlogs as they happen, and the last Context; call (along with a small history of previous calls) will be reported if the bot crashes. Believe me, its easy if the bot crashes - if it goes into an infinate loop, its much moer fun!!<br><br>step 3 - is the bot compiled in debug mode? If so you wall have extensive memory allocation info, and if the bot crashes, it will do a core dump, which you can run a debugger over (more detail in another thread not too far down on this forum)</li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Fri Oct 25, 2002 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2002-10-25T01:12:44-04:00</updated>

		<published>2002-10-25T01:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12343#p12343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12343#p12343"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12343#p12343"><![CDATA[
Okay, here's the new problem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>::[ 10:10:46 pm]:: &lt;UmbraSG&gt; !rules<br>::[ 10:10:47 pm]:: * Quits: Succubus (~<a href="mailto:MoToKo@kami.click-network.com">MoToKo@kami.click-network.com</a>) (Read error: Connection reset by peer)<br><br>I have not a clue what's causing this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Fri Oct 25, 2002 1:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[UmbraSG]]></name></author>
		<updated>2002-10-24T16:16:07-04:00</updated>

		<published>2002-10-24T16:16:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12325#p12325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12325#p12325"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12325#p12325"><![CDATA[
Ah Cool!! Thank you all. I will give them a try immediately.  I got it to run now, however it crashes when I type the !&lt;trigger&gt; like !ax or !rules.  Otherwise, it works fine doing nothing =P<br><br>Kevin P.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2047">UmbraSG</a> — Thu Oct 24, 2002 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wcc]]></name></author>
		<updated>2002-10-24T08:18:39-04:00</updated>

		<published>2002-10-24T08:18:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12288#p12288</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12288#p12288"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12288#p12288"><![CDATA[
You'll also need to replace<div class="codebox"><p>Code: </p><pre><code>static Function *global = NULL;</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>static Function *global = NULL, *irc_funcs = NULL;</code></pre></div>in order for the irc function table to be imported correctly.<br><br>Wcc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=270">Wcc</a> — Thu Oct 24, 2002 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-10-23T07:27:01-04:00</updated>

		<published>2002-10-23T07:27:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12218#p12218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12218#p12218"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12218#p12218"><![CDATA[
Oh - one more thing.<br><br>You should really be module_depending on all the modules you are using - and noticably you are depending on the irc module already (and possibly server - havent read the code fully)<br><br>And on the end of the pub table stick a {0, 0, 0, 0} instead of {0} - its safer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Wed Oct 23, 2002 7:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Photon]]></name></author>
		<updated>2002-10-23T07:24:04-04:00</updated>

		<published>2002-10-23T07:24:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12217#p12217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12217#p12217"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12217#p12217"><![CDATA[
Yeh .. its your #includes ... code is shared from one mod to another via menas of a function table and #defs. Therefore if your include files are not right then it wont work. Dont know why its not complaining about header file not found tho.<br><br>It should be <div class="codebox"><p>Code: </p><pre><code>#include "../module.h"#include "../irc.mod/irc.h"#include "../server.mod/server.h"#include "../channels.mod/channels.h"#include "OneOfMyHeaders.h"</code></pre></div>I have to admit it took a while to get something running with the first module I wrote, but press on ... the real fun starts when you get bugs and of course have no debugger .. *sigh*<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1824">Photon</a> — Wed Oct 23, 2002 7:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-10-22T19:14:14-04:00</updated>

		<published>2002-10-22T19:14:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12207#p12207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12207#p12207"/>
		<title type="html"><![CDATA[New to the module world. Need help.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12207#p12207"><![CDATA[
I aint too good when it comes to C, but the directories used in the #include statments are out of whack.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Oct 22, 2002 7:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
