egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stats.mod Livestats Eggdrop load failure

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming
View previous topic :: View next topic  
Author Message
Cougar
Voice


Joined: 07 Mar 2005
Posts: 3
Location: The Promised Land

PostPosted: Mon Apr 11, 2005 7:45 am    Post subject: stats.mod Livestats Eggdrop load failure Reply with quote

stats.mod Livestats Eggdrop load failure

[07:13] Stats.mod v1.3.3 loaded.
[07:13] Module loaded: stats
[07:13] Loading default slangfile: language/stats.lang
[07:13] * Hostname self-lookup failed. Please set 'my-ip' in the config file.

I know what you are thinking.... set the 'my-ip'. Wrong. Its set. The loads fine with stats.mod commented out. Its the livestats that is causing the failure. in the stats.conf there is a set livestats-ip "x.x.x.x" setting... and I've set it too, and tried with it commented out. I also tried changing the livestats port to a dozen different ones in different parts of the spectrum, to no avail.

So basically the bot loads fine when I just comment out livestats in the stats.conf file called by eggdrop's conf file. However the only reason I put this bot together was to give a channel livestats.

Any ideas what could be causing this? Perhaps something with the apache that needs to be dealt with? Or maybe an issue with the binding of the ip/port for livestats that the server may be blocking? Its a virtual server that I have. Any suggestions are appreciated. Thanks.

- Cougar
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon Apr 11, 2005 9:54 am    Post subject: Reply with quote

live stats listen socket polling sucks, I once had problems while DNS was a bit [censored] up, too.
But I do not fear my so I just told him:
eggdrop can open a listen port, so I command you stats.mod to do just the same!
and as told, he did... of course after I changed the source code Very Happy.

Code:
# open livestats.c
# search (line 73)
static void start_listen_livestats(int port)
# comment out these lines in the function
//  char tmp[50];
...
//  sprintf(tmp, "set my-ip \"%s\";", livestats_ip);
//  do_tcl("livestats-hack-start",
//      "set my-ip-livestats-backup ${my-ip};"
//      "set my-hostname-livestats-backup ${my-hostname};"
//      "set my-hostname \"\"");
//  do_tcl("livestats-hack-setip", tmp);
...
//  do_tcl("livestats-hack-end",
//     "set my-ip ${my-ip-livestats-backup};"
//      "set my-hostname ${my-hostname-livestats-backup}");

this changes the stats.mod-special-stupid-listen to the eggdrop-default-listen. I successfully recompiled (no make clean needed) and started the bot again with this code change (or better strip), after this the listen of stats.mod didn't stop the bot from loading an more Smile.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...


Last edited by De Kus on Sat Apr 16, 2005 3:27 am; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Cougar
Voice


Joined: 07 Mar 2005
Posts: 3
Location: The Promised Land

PostPosted: Sat Apr 16, 2005 2:06 am    Post subject: Great Reply with quote

That sounds great. I will note that for future use.

This time, I decided to start apache on the server. And as soon as the webserver was running, the port bind for livestats immediately worked as intended and the bot loaded. So now there are TWO ways to fix this known issue. Smile Thanks again for your response! I like it.

- Cougar
Back to top
View user's profile Send private message
LoveGirL
Voice


Joined: 26 May 2005
Posts: 2
Location: lebanon

PostPosted: Thu May 26, 2005 1:29 am    Post subject: Reply with quote

De Kus wrote:
live stats listen socket polling sucks, I once had problems while DNS was a bit [censored] up, too.
But I do not fear my so I just told him:
eggdrop can open a listen port, so I command you stats.mod to do just the same!
and as told, he did... of course after I changed the source code Very Happy.

Code:
# open livestats.c
# search (line 73)
static void start_listen_livestats(int port)
# comment out these lines in the function
//  char tmp[50];
...
//  sprintf(tmp, "set my-ip \"%s\";", livestats_ip);
//  do_tcl("livestats-hack-start",
//      "set my-ip-livestats-backup ${my-ip};"
//      "set my-hostname-livestats-backup ${my-hostname};"
//      "set my-hostname \"\"");
//  do_tcl("livestats-hack-setip", tmp);
...
//  do_tcl("livestats-hack-end",
//     "set my-ip ${my-ip-livestats-backup};"
//      "set my-hostname ${my-hostname-livestats-backup}");

this changes the stats.mod-special-stupid-listen to the eggdrop-default-listen. I successfully recompiled (no make clean needed) and started the bot again with this code change (or better strip), after this the listen of stats.mod didn't stop the bot from loading an more Smile.

but i did not understand what shall i do cause im newbie so can you pls help me what shall i do Crying or Very sad im really desperate thanks
Back to top
View user's profile Send private message
Galadhrim
Op


Joined: 11 Apr 2003
Posts: 123
Location: Netherlands, Enschede

PostPosted: Fri May 27, 2005 8:12 am    Post subject: Reply with quote

  1. Open livestats.c
  2. Goto line 73
  3. comment out, putting '//' in from of, these lines in the function static void start_listen_livestats(int port)
    Code:
    //  char tmp[50];
    ...
    //  sprintf(tmp, "set my-ip \"%s\";", livestats_ip);
    //  do_tcl("livestats-hack-start",
    //      "set my-ip-livestats-backup ${my-ip};"
    //      "set my-hostname-livestats-backup ${my-hostname};"
    //      "set my-hostname \"\"");
    //  do_tcl("livestats-hack-setip", tmp);
    ...
    //  do_tcl("livestats-hack-end",
    //     "set my-ip ${my-ip-livestats-backup};"
    //      "set my-hostname ${my-hostname-livestats-backup}");


Note: only comment out the lines listed, the lines covered in the ... must be left alone
Back to top
View user's profile Send private message
Galadhrim
Op


Joined: 11 Apr 2003
Posts: 123
Location: Netherlands, Enschede

PostPosted: Tue Jun 21, 2005 1:28 pm    Post subject: Reply with quote

LoveGirL wrote:
thx but i did not find livestats.c so pls if u can help me prv me i would appreciate it


That's a no...

Did you download the mod? you do have to download it and place it in src/mod/.. so that your eggdrop tree looks like this:

/.../eggdropfolder/src/mod/livestats.mod/

The files should be in there. Just follow the directions.

If you cant even open a file then maybe you should not do stuff like this.


Last edited by Galadhrim on Thu Jun 23, 2005 6:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Tue Jun 21, 2005 6:36 pm    Post subject: Reply with quote

I guarantee you that she is using windrop and never ever downloaded the source code which she could change and recompile. Just by reading my post carefully, there should be these 2 notes which should tell someone we are not talking about executables or liberies like .exe or .dll.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
LoveGirL
Voice


Joined: 26 May 2005
Posts: 2
Location: lebanon

PostPosted: Thu Jun 23, 2005 12:53 am    Post subject: hey Reply with quote

well easy guys just cause im a girl not give u right to be rude and sorry for prv u guys may be i should not do that are u feeling offended ? may be this should not be called egghelp after all and if all been so smart since they born why do they need teachers Wink anyway i did download the mod and i know to open the file i simply did not find what u were talking about .after all we all come to life because of a woman so take it easy chill
Back to top
View user's profile Send private message
Galadhrim
Op


Joined: 11 Apr 2003
Posts: 123
Location: Netherlands, Enschede

PostPosted: Thu Jun 23, 2005 6:52 pm    Post subject: Reply with quote

if you followed the steps and the line 73 was different from the one we stated then you might have opened a different file or downloaded a wrong version. We do expect some explanation so we can help you. "help me i cant find the file" does not work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Modules & Programming All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber