Author Topic: Multi Gatherbot version 2.13  (Read 28617 times)

0 Members and 1 Guest are viewing this topic.

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.6
« Reply #20 on: July 02, 2010, 07:17:46 pm »
Hello, I'm not sure if this is the right place to post this query.

I downloaded the bot and have compiled with gcc 4.5.0 and I saw some things during the compilation.

You can see the console log while compilation are running: http://www.soldat.com.ar/personal/consolelog.txt And if you wanna see the compilation log: http://www.soldat.com.ar/personal/compilelog.txt

But equally I could run. Everything perfect until you start a gather of 3vs3, when changing the first map and the bot says who won the map in the IRC, it fails.

I run the bot with
Code: [Select]
$ strace -odebuglog.txt ./gatherbot and here is displayed when the bot crashes: http://www.soldat.com.ar/personal/debuglog.txt

Maybe this is related with the "Warnings" at compile time.

the warnings at compile are mainly about some typecast I do from const char * to char * or something like that. however it seems to be something about the irc connection and a select of the socket that fails I will look more into it to more when I am sober I guess.

Edit:
Cant really find the bug with info provided if you could have it running under gdb and reproduce the bug I would be greatful.
« Last Edit: July 03, 2010, 06:11:53 am by zakath »

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.6
« Reply #21 on: July 03, 2010, 10:23:37 am »
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb79bdb90 (LWP 12543)]
soldatadmin::loop (this=0x0) at ./cpp_stuff/text/string.h:120
120                     if(data_B == NULL)
(gdb) bt
#0  soldatadmin::loop (this=0x0) at ./cpp_stuff/text/string.h:120
#1  0x00000000 in ?? ()
(gdb) step
[Thread 0xb394bb90 (LWP 12551) exited]
[Thread 0xb414cb90 (LWP 12550) exited]
[Thread 0xb494db90 (LWP 12549) exited]
[Thread 0xb5183b90 (LWP 12548) exited]
[Thread 0xb5984b90 (LWP 12547) exited]
[Thread 0xb6185b90 (LWP 12546) exited]
[Thread 0xb6986b90 (LWP 12545) exited]
[Thread 0xb71bcb90 (LWP 12544) exited]
[Thread 0xb79bdb90 (LWP 12543) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)
« Last Edit: July 03, 2010, 11:25:10 am by KEEN »

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.6
« Reply #22 on: July 05, 2010, 06:32:04 am »
Not sure if this fixes it so you have to try it out there is also included a fix for some ppl that have problems with the pause/unpause commands. Also Keen which server version are you using on the servers? 2.6.4 or 2.6.5?

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.6
« Reply #23 on: July 05, 2010, 09:04:36 am »
Thank you zakath, I'll gonna try with this bot probably fixed.
The version that I'm using is 2.6.5 (one server provided by NAsoldat)

From: July 05, 2010, 09:33:50 am
Zakath, I cant try this time because the bot not respond to the commands (!commands, !overkill, etc). He connect to soldat server and irc server and joins the channel, but not response to commands.
« Last Edit: July 05, 2010, 09:33:50 am by KEEN »

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.6
« Reply #24 on: July 05, 2010, 10:04:40 am »
Thank you zakath, I'll gonna try with this bot probably fixed.
The version that I'm using is 2.6.5 (one server provided by NAsoldat)

From: July 05, 2010, 09:33:50 am
Zakath, I cant try this time because the bot not respond to the commands (!commands, !overkill, etc). He connect to soldat server and irc server and joins the channel, but not response to commands.

strange tried doing a clean compile of it? or just restart it?
also there is a !enable/!disable command which should work for ops that enables/disables the bot if bot doesnt recognize op try !update which updates the op list.
another error may be the CASE of the ircchan in config if it differs from the one on irc.
try changing line 681 in gatherbot.cpp from:
 if(GText::String(hostd->target) != config.ircchan)
to
 if(!GText::String(hostd->target).equal_ncs(config.ircchan))

and recompile
« Last Edit: July 05, 2010, 10:06:59 am by zakath »

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.6
« Reply #25 on: July 05, 2010, 01:45:49 pm »
Ok, I recompile with modification and the bot response for !commands. But the error appears again at the same moment as before :S

Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7b0bb70 (LWP 1834)]
0x0808ae96 in soldatadmin::loop() ()
(gdb) bt
#0  0x0808ae96 in soldatadmin::loop() ()
#1  0x6f74616e in ?? ()
#2  0x00000072 in ?? ()
#3  0x00000000 in ?? ()
(gdb) step
Single stepping until exit from function _ZN11soldatadmin4loopEv,
which has no line number information.
[Thread 0xb4aedb70 (LWP 1840) exited]
[Thread 0xb52eeb70 (LWP 1839) exited]
[Thread 0xb5aefb70 (LWP 1838) exited]
[Thread 0xb6308b70 (LWP 1837) exited]
[Thread 0xb6b09b70 (LWP 1836) exited]
[Thread 0xb730ab70 (LWP 1835) exited]
[Thread 0xb7b0bb70 (LWP 1834) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.6
« Reply #26 on: July 20, 2010, 07:31:13 am »
Another beta version you might wanna test out keen also any info you can give me on the enviroment it runs under will be welcome.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.6
« Reply #27 on: July 24, 2010, 02:46:54 pm »
Well... the error appears again...

Code: [Select]
13:31 Connected to 206.217.128.58:30501
13:31 Connected to 206.217.128.58:30502
13:31 Connected to 206.217.128.58:30333
[New Thread 0xafae3b70 (LWP 1744)]
[New Thread 0xaf2e2b70 (LWP 1745)]
[New Thread 0xaeae1b70 (LWP 1746)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7b0bb70 (LWP 1728)]
0x0808aed6 in soldatadmin::loop() ()
(gdb) bt
#0  0x0808aed6 in soldatadmin::loop() ()
#1  0x614d206b in ?? ()
#2  0x2e61626d in ?? ()
#3  0x00000000 in ?? ()
(gdb) step
Single stepping until exit from function _ZN11soldatadmin4loopEv,
which has no line number information.
Host: 206.217.128.58 Port: 30333 failed to receive refresh 1610
[Thread 0xaeae1b70 (LWP 1746) exited]
[Thread 0xaf2e2b70 (LWP 1745) exited]
[Thread 0xafae3b70 (LWP 1744) exited]
[Thread 0xb02fcb70 (LWP 1743) exited]
[Thread 0xb0afdb70 (LWP 1742) exited]
[Thread 0xb12feb70 (LWP 1741) exited]
[Thread 0xb1affb70 (LWP 1740) exited]
[Thread 0xb2300b70 (LWP 1739) exited]
[Thread 0xb2b01b70 (LWP 1738) exited]
[Thread 0xb3302b70 (LWP 1737) exited]
[Thread 0xb3b03b70 (LWP 1736) exited]
[Thread 0xb4304b70 (LWP 1735) exited]
[Thread 0xb4b05b70 (LWP 1734) exited]
[Thread 0xb5306b70 (LWP 1733) exited]
[Thread 0xb5b07b70 (LWP 1732) exited]
[Thread 0xb6308b70 (LWP 1731) exited]
[Thread 0xb6b09b70 (LWP 1730) exited]
[Thread 0xb730ab70 (LWP 1729) exited]
[Thread 0xb7b0bb70 (LWP 1728) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)

Only ocurred when the bot informs who has won the first map :S
if u want, I can try to create an ssh access to my computer so that you can see for yourself :S

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.6
« Reply #28 on: July 25, 2010, 05:58:56 am »
Well... the error appears again...

Code: [Select]
13:31 Connected to 206.217.128.58:30501
13:31 Connected to 206.217.128.58:30502
13:31 Connected to 206.217.128.58:30333
[New Thread 0xafae3b70 (LWP 1744)]
[New Thread 0xaf2e2b70 (LWP 1745)]
[New Thread 0xaeae1b70 (LWP 1746)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7b0bb70 (LWP 1728)]
0x0808aed6 in soldatadmin::loop() ()
(gdb) bt
#0  0x0808aed6 in soldatadmin::loop() ()
#1  0x614d206b in ?? ()
#2  0x2e61626d in ?? ()
#3  0x00000000 in ?? ()
(gdb) step
Single stepping until exit from function _ZN11soldatadmin4loopEv,
which has no line number information.
Host: 206.217.128.58 Port: 30333 failed to receive refresh 1610
[Thread 0xaeae1b70 (LWP 1746) exited]
[Thread 0xaf2e2b70 (LWP 1745) exited]
[Thread 0xafae3b70 (LWP 1744) exited]
[Thread 0xb02fcb70 (LWP 1743) exited]
[Thread 0xb0afdb70 (LWP 1742) exited]
[Thread 0xb12feb70 (LWP 1741) exited]
[Thread 0xb1affb70 (LWP 1740) exited]
[Thread 0xb2300b70 (LWP 1739) exited]
[Thread 0xb2b01b70 (LWP 1738) exited]
[Thread 0xb3302b70 (LWP 1737) exited]
[Thread 0xb3b03b70 (LWP 1736) exited]
[Thread 0xb4304b70 (LWP 1735) exited]
[Thread 0xb4b05b70 (LWP 1734) exited]
[Thread 0xb5306b70 (LWP 1733) exited]
[Thread 0xb5b07b70 (LWP 1732) exited]
[Thread 0xb6308b70 (LWP 1731) exited]
[Thread 0xb6b09b70 (LWP 1730) exited]
[Thread 0xb730ab70 (LWP 1729) exited]
[Thread 0xb7b0bb70 (LWP 1728) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
(gdb)

Only ocurred when the bot informs who has won the first map :S
if u want, I can try to create an ssh access to my computer so that you can see for yourself :S

Yeah it would be good if that would be doable pm me the details here or on irc.

From: July 26, 2010, 01:31:29 pm
Update:

- Fixed some stuff for antispam for high traffic channels(Added new config variables MSGSLEEP <seconds> and ANTITARGETSPAM <yes/no>
« Last Edit: July 26, 2010, 01:31:29 pm by zakath »

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.7
« Reply #29 on: July 29, 2010, 08:58:19 am »
Keen try this version.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.8
« Reply #30 on: August 08, 2010, 05:20:00 am »
Update:
- Fixed a error with subs on !overkill
- Fixed an arithmetic error when updating stats when the match ending 0-0 resulting in the bot crashing
- Added !soff command for turning off sub search ingame

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.8
« Reply #31 on: August 08, 2010, 11:09:34 am »
Yeah! the bot works on my PC, Ill try on my host and Ill tell u the results!
thaks!

Offline zakath

  • Inactive Soldat Developer
  • Veteran
  • ******
  • Posts: 1224
    • Soldatladder
Re: Multi Gatherbot version 2.0.9
« Reply #32 on: August 15, 2010, 09:21:49 am »
Update:
- Added support for privchan with info about subs as well as possibility to run commands there.

#soldat.mapping - #soldat.inc - #soldatladder - #soldat.gather.nordic

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.9
« Reply #33 on: March 25, 2011, 10:30:51 am »
hey! hello again!

I've seen that the bot is reconnected to gameservers if he loses internet connection, but fails to reconnect to IRC, maybe in the next version u can add this feature :D

(just is a suggestion)

Offline vladamh

  • Major(1)
  • Posts: 3
Re: Multi Gatherbot version 2.0.9
« Reply #34 on: June 28, 2011, 05:29:55 pm »
how to install apt-get install libmysqlclient-dev via yum or manual ? :)

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.9
« Reply #35 on: June 28, 2011, 07:14:18 pm »
how to install apt-get install libmysqlclient-dev via yum or manual ? :)

libmysqlclient-dev may be a part of mysql-dev, try:
Code: [Select]
yum install mysql-dev

Offline vladamh

  • Major(1)
  • Posts: 3
Re: Multi Gatherbot version 2.0.9
« Reply #36 on: June 29, 2011, 06:28:49 am »
No package mysql-dev available.

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.9
« Reply #37 on: June 29, 2011, 10:20:48 am »
No package mysql-dev available.

Code: [Select]
yum install mysql-devel
if not found, check the repositories, maybe u need to add some additional resource

Offline vladamh

  • Major(1)
  • Posts: 3
Re: Multi Gatherbot version 2.0.9
« Reply #38 on: June 30, 2011, 08:20:48 am »
Code: [Select]
17:21 Trying to Connect to 193.104.68.48:27047:0
17:21 Failed to look up host(NULL) 193.104.68.48:27047
Lookup: : Success
17:21 Trying to Connect to 193.104.68.55:27047:0
17:21 Failed to look up host(NULL) 193.104.68.55:27047
Lookup: : Success
17:21 Trying to Connect to 193.104.68.48:27044:0
17:21 Failed to look up host(NULL) 193.104.68.48:27044
Lookup: : Success
17:21 Trying to Connect to 193.104.68.48:27047:0
17:21 Failed to look up host(NULL) 193.104.68.48:27047
Lookup: : Success
17:22 Trying to Connect to 193.104.68.55:27047:0
17:22 Failed to look up host(NULL) 193.104.68.55:27047
Lookup: : Success
17:22 Trying to Connect to 193.104.68.48:27044:0
17:22 Failed to look up host(NULL) 193.104.68.48:27044
Lookup: : Success
17:22 Trying to Connect to 193.104.68.48:27047:0
17:22 Failed to look up host(NULL) 193.104.68.48:27047
Lookup: : Success

what is wrong ?
in my gather confg i put this
SERVER 193.104.68.48:27044 XXXX
SERVER 193.104.68.48:27047 XXXX
SERVER 193.104.68.55:27047 XXXX

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Multi Gatherbot version 2.0.9
« Reply #39 on: June 30, 2011, 11:17:50 am »
the correct way to put your servers:
Code: [Select]
SERVER 193.104.68.48 27044 XXXX
SERVER 193.104.68.48 27047 XXXX
SERVER 193.104.68.55 27047 XXXX

without ":"