collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: AoC and Patch 1.05  (Read 37552 times)

0 Members and 1 Guest are viewing this topic.

Offline Apollyon

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #60 on: July 10, 2009, 05:50:38 am »
Are you all getting the bot to connect/run now after Chaoz's recent update?

I'm still getting the RPC header error.  :'(


I'm having the same problem still.

If you are getting the RPC error, are you sure you have the correct server and port specified in the config?  When I try to connect directly to the Set server IP, I get that error.  Remember we are not connecting directly to the chat server now, but we actually have to log in first.  You should set your server to be "Us" or "Eu" (somewhere in the code the value from the server list gets converted to a proper case or something with the first letter upper and the rest lower, so watch your casing).  Sorry if you already tried that.  I have read too many posts on this stuff recently to recall who has done what.

Offline Riccarr

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #61 on: July 10, 2009, 07:08:21 am »
Whooha! SHE's ALIVE!!!!  :D

Port 7000 ... that's the trick. I'm on Cimmeria and port for all US servers listed in the serverlist.php are all shown to be above 7000. I read somewhere that 7000 was the winning port. I changed my server entry in the serverlist.php to be 7000 (was 7004) and it has worked; it stopped the RPC header error.

Of course too, I downloaded Chaoz's latest patch, found here: http://www.conanchat.com/download/BeBot_0.6.2_NewLogin.zip

I'm running the 0.6.2 bot still, so dunno how you 0.6.3 folks will fare with that patch.
« Last Edit: July 10, 2009, 07:39:57 am by Riccarr »

Offline snyder

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
  • CRO guild
    • CRO Guild @ Crom
Re: AoC and Patch 1.05
« Reply #62 on: July 10, 2009, 12:34:56 pm »
works without problem (0.6.3) :)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AoC and Patch 1.05
« Reply #63 on: July 10, 2009, 01:15:46 pm »
I have posted a pre release version of BeBot 0.6.4. We are gearing up to release this soon, but would ike to have it receive some more AoC testing as we only have one developer with an AoC account.

You can find it at https://launchpad.net/bebot/0.6/0.6.4.rc

Please take it for a test spin and let me know if it works for you or not.

Preliminary changelog for this release:
  • Modified the network protocol to work with AoC 1.05. Please note that PrivGroup relays are no longer an option for AoC due to chatserver changes.
  • Reversing stripping of control characters on text from IRC for now.
  • htmlspecialchars_decode text going to IRC to decode & and similar.
  • IRC join/part/quit messages now properly prefixed on IRC and are also relayed over guild relay if UseGuildRelay is set for IRC module.
  • IRC part/quit messages are now relayed ingame.
  • Fixed flip command
  • Added the option to make reason required for !ban add
  • Added a check for botname_rules.txt before getting rules.txt
  • Lots of Changes to Raid module, lots of new function and features including restart/crash support, raid logging, raid control interface,  punish raiders, move countdown, min level and also fixed alot of problems with output to wrong place or unnessesary spam
  • Lots of Changes to Bid module, lots of new function and deatures including using points log, !bid cancel, !bid all, and more
  • Corrected some color codes and time zone for "last online" in !whois (AoC only)
  • Backported some fixes from trunk to make it bearable to enable E_ALL logging
  • Changed help for !aliasadmin (which didn't exist) to !alias admin
  • Bot doesn't tell people that there are "No news." upon login any more. Only if they ask for "!news".
  • Added more spam protection (e.g. when double clicking tell links) to message queue.

Big thanks to Chaoz for providing a patch for the 1.05 protocol changes.
BeBot Founder and Fixer Kingpin

Offline dobstah

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #64 on: July 10, 2009, 02:16:32 pm »
Hi,

Having some strange problems with guild chat, cant get it to send output to, or read input from guildchat in AoC.
Every command is just ignored silently, same with !say cmd in tells.
Running Ubuntu 32bit with 0.6.4.rc on PHP 5.3.0RC1

This is what happens when the bot connects:

Muffin [LOGIN]  [STATUS]        Connecting
Muffin [LOGIN]  [STATUS]        Authenticating
Unsupported rpcpacket type (in, 5)
Unsupported rpcpacket type (in, 4170821964)
Unsupported rpcpacket type (in, 1334945164)
Unsupported rpcpacket type (in, 1525492320)
Bot is now logged in.
Muffin [ERROR]  [AOChatWrapper_Core]    I was unable to get the user id for user: 'Muffin'
Muffin [SETTINGS]       [LOAD]  Loaded settings from database.
Muffin [LOGIN]  [RESULT]        OK


All the chatter in guildchat show up in console, so afaik it can read it ok, but it is being totally ignored.
Could it be that the remove of privategroup breaked guildchat somehow?

Dobstah


I have posted a pre release version of BeBot 0.6.4. We are gearing up to release this soon, but would ike to have it receive some more AoC testing as we only have one developer with an AoC account.

You can find it at https://launchpad.net/bebot/0.6/0.6.4.rc

Please take it for a test spin and let me know if it works for you or not.

Preliminary changelog for this release:
  • Modified the network protocol to work with AoC 1.05. Please note that PrivGroup relays are no longer an option for AoC due to chatserver changes.
  • Reversing stripping of control characters on text from IRC for now.
  • htmlspecialchars_decode text going to IRC to decode & and similar.
  • IRC join/part/quit messages now properly prefixed on IRC and are also relayed over guild relay if UseGuildRelay is set for IRC module.
  • IRC part/quit messages are now relayed ingame.
  • Fixed flip command
  • Added the option to make reason required for !ban add
  • Added a check for botname_rules.txt before getting rules.txt
  • Lots of Changes to Raid module, lots of new function and features including restart/crash support, raid logging, raid control interface,  punish raiders, move countdown, min level and also fixed alot of problems with output to wrong place or unnessesary spam
  • Lots of Changes to Bid module, lots of new function and deatures including using points log, !bid cancel, !bid all, and more
  • Corrected some color codes and time zone for "last online" in !whois (AoC only)
  • Backported some fixes from trunk to make it bearable to enable E_ALL logging
  • Changed help for !aliasadmin (which didn't exist) to !alias admin
  • Bot doesn't tell people that there are "No news." upon login any more. Only if they ask for "!news".
  • Added more spam protection (e.g. when double clicking tell links) to message queue.

Big thanks to Chaoz for providing a patch for the 1.05 protocol changes.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AoC and Patch 1.05
« Reply #65 on: July 10, 2009, 02:23:20 pm »
I've reproduced the issue. Looking into it now.
BeBot Founder and Fixer Kingpin

Offline rmb

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #66 on: July 10, 2009, 02:36:02 pm »
Extracted tar.gz with new files over old install with "overwrite all".

Got the same messages. The bot is up and running but it only listem to tells and do not see the Guild Chat.

[edit]

Also I have noticed that some lines in log begins with "guildmessage..".

Usualy it looks like:
Code: [Select]
Mybot [TELL] [INC]   Mychar: !whois Someone

and sometimes (no rulle atm) it looks like

Code: [Select]
guildmessage..Mybot [TELL] [INC]   Mychar: !whois Someone

Do not know if that matters, but it starts to appear form Chaoz second patch (or at least I have never saw anything like that before).
« Last Edit: July 10, 2009, 02:44:06 pm by rmb »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AoC and Patch 1.05
« Reply #67 on: July 10, 2009, 03:26:53 pm »
Isolated the issue and uploaded fixed archives.

Manual fix if you are confortable editing files (2 lines need to be changed)
http://bazaar.launchpad.net/~bebot-devel/bebot/stable-0.6/revision/84

Apologies for the problems.
BeBot Founder and Fixer Kingpin

Offline rmb

  • BeBot User
  • **
  • Posts: 33
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #68 on: July 10, 2009, 04:23:08 pm »
Still:
Code: [Select]
Mybot [LOGIN]   [STATUS]        Authenticating
Unsupported rpcpacket type (in, 5)
Unsupported rpcpacket type (in, 4170821964)
Unsupported rpcpacket type (in, 1334945164)
Unsupported rpcpacket type (in, 1525492320)
Bot is now logged in
Mybot [ERROR]  [AOChatWrapper_Core]    I was unable to get the user id for user: 'Mybot'

But now it is talking on Guild channel.

I'll let it work for some time and post if anything unusual happens.

Offline Apollyon

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #69 on: July 10, 2009, 04:34:49 pm »
I am running into a problem after the bot has been logged on for a minute.  I get spam about mysql errors and then the bot restarts.  I believe it goes from 1 to around 1160 (seems to vary).  I know it is connecting and able to do things at some point as there are tables created and populated with data.  I also double checked and the db user has all privileges.  Note I am using the changes in revision 84 and added the one from 85 (same result).  System is Linux 64bit, kernel 2.6.28-9.16, PHP 5.2.9, MySQL 5.0.75.  I can post or send a full log if wanted.

Code: [Select]
Mybot [2009-07-10 14:21:45]  [LOGIN] [STATUS]        Connecting
Mybot [2009-07-10 14:21:46]  [LOGIN] [STATUS]        Authenticating
Unsupported rpcpacket type (in, 5)
Unsupported rpcpacket type (in, 4170821964)
Unsupported rpcpacket type (in, 1334945164)
Unsupported rpcpacket type (in, 1525492320)
Bot is now logged in.
Mybot [2009-07-10 14:21:50]  [ERROR] [AOChatWrapper_Core]    I was unable to get the user id for user: 'Mybot'
Mybot [2009-07-10 14:21:50]  [SETTINGS]      [LOAD]  Loaded settings from database.
Mybot [2009-07-10 14:21:50]  [LOGIN] [RESULT]        OK
Mybot [2009-07-10 14:22:21]  [SETTINGS]      [LOAD]  Loaded settings from database.
Mybot [2009-07-10 14:22:21]  [ROSTER]        [UPDATE]        Roster update ran less than 6 hours ago, skipping!
Mybot [2009-07-10 14:23:22]  [MySQL] [ERROR] (# 1) on query: Database not found or insufficient priviledges!
MySQL server has gone away

I also found one error that showed a segmentation fault:
Code: [Select]
Mybot [2009-07-10 14:23:23]  [MySQL] [ERROR] (# 708) on query: Database not found or insufficient priviledges!
sh: line 1: 21378 Segmentation fault      /usr/bin/php -c ./ Main.php

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AoC and Patch 1.05
« Reply #70 on: July 10, 2009, 05:17:29 pm »
@rmb

Those notices should be perfectly safe to ignore. I believe they are RPC packets that BeBot does not need to worry about and they are left in there by Chaoz for debugging purposes.

I am running into a problem after the bot has been logged on for a minute.  I get spam about mysql errors and then the bot restarts.  I believe it goes from 1 to around 1160 (seems to vary).  I know it is connecting and able to do things at some point as there are tables created and populated with data.  I also double checked and the db user has all privileges.  Note I am using the changes in revision 84 and added the one from 85 (same result).  System is Linux 64bit, kernel 2.6.28-9.16, PHP 5.2.9, MySQL 5.0.75.  I can post or send a full log if wanted.

Code: [Select]
Mybot [2009-07-10 14:21:45]  [LOGIN] [STATUS]        Connecting
Mybot [2009-07-10 14:21:46]  [LOGIN] [STATUS]        Authenticating
Unsupported rpcpacket type (in, 5)
Unsupported rpcpacket type (in, 4170821964)
Unsupported rpcpacket type (in, 1334945164)
Unsupported rpcpacket type (in, 1525492320)
Bot is now logged in.
Mybot [2009-07-10 14:21:50]  [ERROR] [AOChatWrapper_Core]    I was unable to get the user id for user: 'Mybot'
Mybot [2009-07-10 14:21:50]  [SETTINGS]      [LOAD]  Loaded settings from database.
Mybot [2009-07-10 14:21:50]  [LOGIN] [RESULT]        OK
Mybot [2009-07-10 14:22:21]  [SETTINGS]      [LOAD]  Loaded settings from database.
Mybot [2009-07-10 14:22:21]  [ROSTER]        [UPDATE]        Roster update ran less than 6 hours ago, skipping!
Mybot [2009-07-10 14:23:22]  [MySQL] [ERROR] (# 1) on query: Database not found or insufficient priviledges!
MySQL server has gone away

I also found one error that showed a segmentation fault:
Code: [Select]
Mybot [2009-07-10 14:23:23]  [MySQL] [ERROR] (# 708) on query: Database not found or insufficient priviledges!
sh: line 1: 21378 Segmentation fault      /usr/bin/php -c ./ Main.php


Could you please show me output from "php -v" using the same binary as the bot.

Your error indicates that the MySQL server allows the bot to connect, but does not allow it to select the database. Try checking your MySQL log for more information.
The code in question as far as the bot goes is on line 137 in Sources/MySQL.php
Code: [Select]
if(!mysql_select_db($this -> DBASE, $conn))
{
$this->error("Database not found or insufficient priviledges!", $initial);
return false;
}

BeBot Founder and Fixer Kingpin

Offline Apollyon

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #71 on: July 10, 2009, 05:44:07 pm »
Here is the output:
Code: [Select]
PHP 5.2.9 (cgi-fcgi) (built: Jun 13 2009 02:45:53)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AoC and Patch 1.05
« Reply #72 on: July 10, 2009, 06:02:22 pm »
Im not sure if there is a big difference or not, but do you have a php-cli binary on your system?
That particular php version is compiled for fastcgi usage and not command line usage.

I've made a modified MySQL.php you can try if you wish with some additional debug output:
http://pastebin.com/d4fa9bcc7

The logic in that one is pretty much the same, we just go about checking in a different manner.
BeBot Founder and Fixer Kingpin

Offline Apollyon

  • BeBot User
  • **
  • Posts: 21
  • Karma: +0/-0
Re: AoC and Patch 1.05
« Reply #73 on: July 10, 2009, 06:35:44 pm »
I posted a copy of the output to here.  The first error appears to be on updating the time in the bots table.  After that it looks like errors are trying to be posted to the log_message table which is causing more errors.  I did start the bot using php5-cli this time also.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AoC and Patch 1.05
« Reply #74 on: July 10, 2009, 11:00:34 pm »
Ok. Judging from the log output you are still running with the fcgi version of PHP. Please note that the StartBot script will fall back to the system default php binary which in your case is a cgi based php. Either manually change StartBot.php or start the bot using Main.php directly.

For some reason your php does not behave as it should for mysql_connect, it simply does not detect that it no longer has a valid connection to MySQL and as such tries to keep using it causing the errors to occur.

I can only think of two possibilities aside from making sure you are running a CLI version of PHP which might or might not make a difference.
If your MySQL server is on the same physical server as your bot there are two ways to connect. One is by TCP/IP (127.0.0.1) and the other is using the unix socket (localhost), try changing from the one you are using to the other and see if that helps.

If none of the above helps, try changing your error function to look like this:
Code: [Select]
function error($text, $fatal = false)
{
                $this -> close();
$msg = mysql_error();
$this -> error_count++;
$this -> bot -> log("MySQL", "ERROR", "(# " . $this -> error_count . ") on query: $text\n$msg", TRUE);

// If this error is occuring while we are trying to first connect to the database when starting
// rthe bot its a fatal error.
if ($fatal == true)
{
exit;
}
}

This should force MySQL to close the connection if an error occurs, meaning the SQL call will still fail, but it should force the bot to try and reconnect with a clean connection.
BeBot Founder and Fixer Kingpin

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 259
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal