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

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

Author Topic: bot 6.3 installation problem  (Read 3973 times)

0 Members and 1 Guest are viewing this topic.

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
bot 6.3 installation problem
« on: July 24, 2009, 04:34:04 pm »
Hi,
i also have the same error like gridsurf.
First of all then environment of the bot.

debian lenny with 2.6.26-1-686 32bit
php 5.2.6
bot 0.6.3

The bot cuts easily the first 4 letters of the playernames.
I found out that this is only for the Owner and the superadmin of the bot.

All other playernames are not shown in the log!!!

The php.ini didnt show any errors and also the bot didnt show any errors starting.

[12:48:10]   [MAIN]   [DIR]   Loading main functions of the bot
[12:48:10]   [MAIN]   [LOAD]   00_BotError.php
[12:48:10]   [MAIN]   [LOAD]   01_BasePassiveModule.php
[12:48:10]   [MAIN]   [LOAD]   02_BaseActiveModule.php
[12:48:10]   [MAIN]   [LOAD]   03_Security.php
[12:48:10]   [MAIN]   [LOAD]   05_Maintenance.php
[12:48:10]   [MAIN]   [LOAD]   06_Preferences.php
[12:48:10]   [SETTINGS]   [LOAD]   Loaded settings from database.
[12:48:10]   [MAIN]   [LOAD]   06_Settings.php
[12:48:10]   [MAIN]   [LOAD]   09_AccessControl.php
[12:48:10]   [MAIN]   [LOAD]   10_Roster.php
[12:48:10]   [MAIN]   [LOAD]   11_FlexibleSecurity.php
[12:48:10]   [MAIN]   [LOAD]   12_ConfigMagik.php
[12:48:10]   [MAIN]   [LOAD]   14_Tools.php
[12:48:10]   [MAIN]   [LOAD]   15_AOChatWrapper.php
[12:48:10]   [MAIN]   [LOAD]   15_BotHelp.php
[12:48:10]   [MAIN]   [LOAD]   15_ChatQueue.php
[12:48:10]   [MAIN]   [LOAD]   15_Colors.php
[12:48:10]   [MAIN]   [LOAD]   15_CommandAlias.php
[12:48:10]   [MAIN]   [LOAD]   15_Log.php
[12:48:10]   [MAIN]   [LOAD]   15_Notify.php
[12:48:10]   [MAIN]   [LOAD]   15_OnlineDB.php
[12:48:10]   [MAIN]   [LOAD]   15_Timer_Core.php
[12:48:10]   [CORE]   [DIR]   Loading core-modules
[12:48:10]   [CORE]   [LOAD]   Alias.php
[12:48:10]   [CORE]   [LOAD]   ShortCuts.php
[12:48:10]   [CORE]   [LOAD]   Statistics.php
[12:48:10]   [CORE]   [LOAD]   ModuleCatcher.php
[12:48:10]   [CORE]   [LOAD]   PlayerNotes.php
[12:48:10]   [CORE]   [LOAD]   BotStatistics.php
[12:48:10]   [CORE]   [LOAD]   Logon_Notifies.php
[12:48:10]   [CORE]   [LOAD]   User.php
[12:48:10]   [CORE]   [LOAD]   Time.php
[12:48:10]   [CORE]   [LOAD]   FunFilters.php
[12:48:10]   [CORE]   [LOAD]   Alts.php
[12:48:10]   [CORE]   [LOAD]   StringFilter.php
[12:48:10]   [CORE]   [LOAD]   Professions.php
[12:48:10]   [CORE]   [LOAD]   Buddy_Queue.php
[12:48:10]   [CORE]   [DIR]   Loading Game Specific core-modules
[12:48:10]   [CORE]   [LOAD]   Items.php
[12:48:10]   [CORE]   [LOAD]   Whois.php
[12:48:10]   [CORE-CUSTOM]   [DIR]   Loading additional core-modules in directory custom/core/
[12:48:10]   [MOD]   [DIR]   Loading modules
[12:48:10]   [MOD]   [LOAD]   Mail.php
[12:48:10]   [MOD]   [LOAD]   Logon.php
[12:48:11]   [MOD]   [LOAD]   MassMsg.php
[12:48:11]   [MOD]   [LOAD]   PreferencesUI.php
[12:48:11]   [MOD]   [LOAD]   Calc.php
[12:48:11]   [MOD]   [LOAD]   TimerUI.php
[12:48:11]   [MOD]   [LOAD]   Is.php
[12:48:11]   [MOD]   [LOAD]   Raid.php
[12:48:11]   [MOD]   [LOAD]   Notify.php
[12:48:11]   [MOD]   [LOAD]   Bid.php
[12:48:11]   [MOD]   [LOAD]   Relay.php
[12:48:11]   [MOD]   [LOAD]   Ping.php
[12:48:11]   [MOD]   [LOAD]   Roster.php
[12:48:11]   [MOD]   [LOAD]   Roll.php
[12:48:11]   [MOD]   [LOAD]   Target.php
[12:48:11]   [MOD]   [LOAD]   StringFilterUI.php
[12:48:11]   [MOD]   [LOAD]   About.php
[12:48:11]   [MOD]   [LOAD]   Whois.php
[12:48:11]   [MOD]   [LOAD]   PrivGroup.php
[12:48:11]   [MOD]   [LOAD]   AltsUI.php
[12:48:11]   [MOD]   [LOAD]   News.php
[12:48:11]   [MOD]   [LOAD]   Raffle.php
[12:48:11]   [MOD]   [LOAD]   ColorConfigUI.php
[12:48:11]   [MOD]   [LOAD]   Countdown.php
[12:48:11]   [MOD]   [LOAD]   AFK.php
[12:48:11]   [MOD]   [LOAD]   Say.php
[12:48:11]   [MOD]   [LOAD]   Loot.php
[12:48:11]   [MOD]   [LOAD]   TimerRelay.php
[12:48:11]   [MOD]   [LOAD]   nroll.php
[12:48:11]   [MOD]   [LOAD]   SettingsUI.php
[12:48:11]   [MOD]   [LOAD]   ShortCutsUI.php
[12:48:11]   [MOD]   [LOAD]   ModulesControlUI.php
[12:48:11]   [MOD]   [LOAD]   AccessControlUI.php
[12:48:11]   [MOD]   [LOAD]   BotStatisticsUI.php
[12:48:11]   [MOD]   [LOAD]   OnlineCount.php
[12:48:11]   [MOD]   [LOAD]   PlayerNotesUI.php
[12:48:11]   [SETTINGS]   [SAVED]   connected for module irc set to FALSE as datatype bool
[12:48:11]   [MOD]   [LOAD]   IRC.php
[12:48:11]   [MOD]   [LOAD]   Rules.php
[12:48:11]   [MOD]   [LOAD]   CommandAliasUI.php
[12:48:11]   [MOD]   [LOAD]   OnlineDisplay.php
[12:48:11]   [MOD]   [LOAD]   FlexibleSecurityUI.php
[12:48:11]   [MOD]   [LOAD]   BanManagerUI.php
[12:48:11]   [MOD]   [LOAD]   Rally.php
[12:48:11]   [MOD]   [LOAD]   Points.php
[12:48:11]   [MOD]   [LOAD]   Shutdown.php
[12:48:11]   [MOD]   [DIR]   Loading game specific modules
[12:48:11]   [MOD]   [LOAD]   craftclasses.php
[12:48:11]   [MOD]   [LOAD]   Items.php
[12:48:11]   [SETTINGS]   [SAVED]   table_version for module Blacklist set to 2 as datatype int
[12:48:11]   [BLACKLIST]   [UPDATE]   Blacklist table update complete.
[12:48:11]   [MOD]   [LOAD]   Blacklist.php
[12:48:11]   [MOD]   [LOAD]   City.php
[12:48:11]   [MOD]   [LOAD]   Chuck.php
[12:48:11]   [MOD]   [LOAD]   Gemcutting.php
[12:48:11]   [MOD]   [LOAD]   Quotes.php
[12:48:11]   [MOD]   [LOAD]   Autouseradd.php
[12:48:11]   [MOD-CUSTOM]   [DIR]   Loading additional modules in directory custom/modules/
[12:48:11]   [LOGIN]   [STATUS]   Connecting
[12:48:12]   [LOGIN]   [STATUS]   Authenticating
[12:48:13]   [LOGIN]   [STATUS]   Logging in
[12:48:14]   [LOGIN]   [RESULT]   OK
[12:48:14]   [SETTINGS]   [LOAD]   Loaded settings from database.
[12:48:26]   [TELL]   [INC]   Y: ölk

My Comment : The original -playername ends only with y and has 5 letters
This is the owner
[12:48:26]   [TELL]   [OUT]   -> Y: I only listen to members of this bot.

[12:48:45]   [SETTINGS]   [LOAD]   Loaded settings from database.
[12:48:45]   [ROSTER]   [UPDATE]   Roster update ran less than 6 hours ago, skipping!
My Comment: This is a Superadmin: Also cut the first for letters of playername
[12:52:59]   [TELL]   [INC]   Ett: kjölkj
[12:52:59]   [TELL]   [OUT]   -> Ett: I only listen to members of this bot.



When I try the whois command the bot crashes and also if i try to add a buddy.

So i startet wireshark to find out, if the bot cuts the playernames or if it is a network or firewall issue.

0000  00 15 58 8c 7b a9 00 22  b0 93 53 7b 08 00 45 00   ..X.{.." ..S{..E.
0010  00 45 d2 c3 40 00 36 06  d5 86 d0 52 c2 0c 0a 00   [email protected]. ...R....
0020  00 0a 1b bf 89 3c 3e 8d  83 31 8a f4 59 e8 80 18   .....<>. .1..Y...
0030  00 0c 01 7d 00 00 01 01  08 0a c0 22 27 31 19 f9   ...}.... ..."'1..
0040  6f e8 00 14 00 0d 05 29  70 4d 00 07 56 69 76 69   o......) pM..Vivi
0050  65 74 74                                           ett

0000  00 15 58 8c 7b a9 00 22  b0 93 53 7b 08 00 45 00   ..X.{.." ..S{..E.
0010  00 52 d2 c5 40 00 36 06  d5 77 d0 52 c2 0c 0a 00   [email protected]. .w.R....
0020  00 0a 1b bf 89 3c 3e 8d  83 42 8a f4 59 e8 80 18   .....<>. .B..Y...
0030  00 0c 9d a6 00 00 01 01  08 0a c0 22 27 bf 19 f9   ........ ..."'...
0040  96 c3 00 1e 00 1a 05 29  70 4d 00 11 64 69 65 73   .......) pM..dies
0050  20 69 73 74 20 65 69 6e  20 74 65 73 74 00 01 00    ist ein  test...

Heres the output. The name Viviett is clearly readable, so it is NOT an network issue. It is a bot issue.
Heres the Output of the Bot.

[14:20:44]   [TELL]  [INC] Ett: dies ist ein test
[14:20:44]   [TELL]  [OUT] -> Ett: I only listen to members og this bot.


When i change the superadmin to "Ett" as originally "Viviett" i'am able to communicate with the bot and send commands.

So please help me to solve this problem

Sincerely Yusuf

P.S. im a german so sorry for my english


Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: bot 6.3 installation problem
« Reply #1 on: July 24, 2009, 05:29:14 pm »
Try adding the following debug output to your Main.php

Find
Code: [Select]
case AOCP_MSG_PRIVATE:
// Event is a tell
$bot -> inc_tell($args);
break;

Change it to read:
Code: [Select]
case AOCP_MSG_PRIVATE:
// Event is a tell
        print_r($args);
$bot -> inc_tell($args);
break;

This will output what the bot core is passed from the AOChat library and is the first step we need in order to figure out what is going on here.

You say the bot crashes when you try to add a buddy, are there any error messages shown in the log?
BeBot Founder and Fixer Kingpin

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: bot 6.3 installation problem
« Reply #2 on: July 24, 2009, 05:59:37 pm »
(
    
  • => 136824331
  • [1] => hello mistake
        [2] =>
    )
    Pibox [15:47:24]        
[TELL]  [INC]   Y: hello mistake
Pibox [15:47:24]        [TELL]  [OUT]   -> Y: I only listen to members of this bot.

Heres the output after i made the changes to Main.php.
Looks all ok i think.. My Chari-Id is complete here and the arguments are splitted as ordered.

After i changed the Bot.conf to send commands to it i looks like if the problem with the commands "guest add player" and "member add player" is solved.

Heres the crash after the whois command

Array
(
    
  • => 136824331
  • [1] => whois pippy
        [2] =>
    )
    Pibox [15:57:02]        
[TELL]  [INC]   Y: whois pippy
Pibox [15:57:02]        [BUDDY] [BUDDY-ADD]     Pippy
Read error: EOF
Pibox [15:57:02]        [CONN]  [ERROR] Bot has disconnected. Reconnecting in 60 seconds.

If you able and ready to connect to my root-server through an SSH-Connection i have no problems to give you the username password and port of this PC to speed up this.

Yusuf
« Last Edit: July 24, 2009, 06:22:41 pm by Yusuf »

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: bot 6.3 installation problem
« Reply #3 on: July 24, 2009, 11:11:03 pm »
So after further investigation i found out, that it have to be a network issue.
I have to say sorry for the time i wasted.

I didn't solve the problem up to now.
I easily build up a vmware client with windows xp and installed there mysql 5.0, php5 and the bebot 0.6.3 and what should i say to you -> i got the same error.

After that i installed static routes in my router for 208.82.194.12:7103 to my server and back.
Nothing changes.
Maybe there is a problem with this provider here, but it can be anywhere in this network here also. I`m not sure and i stopped this process now.

thanks for all

Sincerely

Yusuf

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: bot 6.3 installation problem
« Reply #4 on: July 24, 2009, 11:38:03 pm »
I'm not satisfied that it is a network issue. While there are indications of it being a network issue, the chances of two people having the same error on two different platforms in such a short interval makes me suspect that there is something in the bot going wrong somewhere. Especially if what you say is true that this only happens to superadmins and owners and not regular members or guests (network error really shouldnt play a part in that)

So, being tired and silly as i usually am, we need to look elsewhere, because the bot wont know the username of the player sending the tell just yet.

In AOChat.php around line 344 find the following code:
Code: [Select]
case AOCP_CLIENT_LOOKUP :
list($id, $name) = $packet->args;
$id   = "" . $id;
$name = ucfirst(strtolower($name));
$this->id[$id]   = $name;
$this->id[$name] = $id;
break;

Replace it with this:
Code: [Select]
case AOCP_CLIENT_LOOKUP :
echo "Debug AOCP_CLIENT_LOOKUP package\n";
print_r($packet);
list($id, $name) = $packet->args;
$id   = "" . $id;
echo "Debug nickname detected as: $name\n";
$name = ucfirst(strtolower($name));
echo "Debug nickname ucfirst and strtolowered as $name\m";
$this->id[$id]   = $name;
$this->id[$name] = $id;
break;

This will reveal if it truly is a network problem or if the bug is in the bot or with PHP.
BeBot Founder and Fixer Kingpin

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: bot 6.3 installation problem
« Reply #5 on: July 25, 2009, 02:08:42 pm »
mmh.. you are right..
.ok. i make a try and post the results

Yusuf

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: bot 6.3 installation problem
« Reply #6 on: July 26, 2009, 11:21:30 am »
I did as requested.
Here is a part of the output

Quote
Pibox [09:09:57]        [ROSTER]        [UPDATE]        Starting roster update
Debug AOCP_CLIENT_LOOKUP package
AOChatPacket Object
(
    [args] => Array
        (
           
  • => 337478086
  • [1] => Azze
            )

       
[type] => 21
    [dir] => in
)
Debug nickname detected as: Azze
Debug nickname ucfirst and strtolowered as Azze\mDebug AOCP_CLIENT_LOOKUP package
AOChatPacket Object
(
    [args] => Array
        (
           
  • => 759635445
  • [1] => Pibox
            )

       
[type] => 21
    [dir] => in
)
Debug nickname detected as: Pibox
Debug nickname ucfirst and strtolowered as Pibox\mPibox [09:09:57]      [BUDDY][BUDDY-ADD]      Azze
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Read error: EOF
Pibox [09:09:57]        [ERROR] [AOChatWrapper_Core]    I was unable to get the user id for user: 'Roogan'
Pibox [09:09:57]        [ROSTER]        [INFO]  Roogan is in members table but Apears to have been Deleted, skipping

removal for now
Pibox [09:09:57]        [CRON]  [ROSTER]        Done updating roster. Removed 0 members of which 0 was rerolled

characters.
Pibox [09:09:57]        [CRON]  [ROSTER]        Cleaning buddylist.
Pibox [09:09:57]        [SETTINGS]      [SAVED] LastRosterUpdate for module members set to 1248599397 as datatype int
Pibox [09:09:57]        [CRON]  [ROSTER]        Cleaning buddylist done. 0 buddies removed.
Read error: EOF
Pibox [09:09:57]        [CONN]  [ERROR] Bot has disconnected. Reconnecting in 60 seconds.
The bot is restarting.

when i send commads to the bot the log is the same as earlier.

Quote
(
   
  • => 136824331
  • [1] => settings
        [2] =>
    )
    Pibox
[09:21:53]        [TELL]  [INC]   Y: settings
Pibox [09:21:53]        [TELL]  [OUT]   -> Y: [link]Settings groups for Pibox[/link]


I'am ready for more :)


Yusuf
« Last Edit: July 26, 2009, 11:26:58 am by Yusuf »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: bot 6.3 installation problem
« Reply #7 on: July 26, 2009, 11:55:56 am »
I should have been more clear.

I need to see the debug output similiar to this
Code: [Select]
Debug nickname detected as: Azze
Debug nickname ucfirst and strtolowered as Azze\mDebug AOCP_CLIENT_LOOKUP package
AOChatPacket Object
(
    [args] => Array
        (
           

    * => 759635445
      [1] => Pibox
              )

         

[type] => 21
    [dir] => in
)
Debug nickname detected as: Pibox
Debug nickname ucfirst and strtolowered as Pibox

For the nicknames that get truncated.

If you wish i could SSH in later today which would probably speed up things a bit to try and figure out exactly where things go wrong.
BeBot Founder and Fixer Kingpin

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: bot 6.3 installation problem
« Reply #8 on: July 26, 2009, 12:28:57 pm »
ok.
I'll snd you the account details per PM.

Update:

I did a brandly new install on Ubuntu 8.10 Notebook and put my UMTS-Stick in it to change the network and firewall also.
And i got the same error.
It is now clearly and definitly a bot problem

Yusuf

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: bot 6.3 installation problem
« Reply #9 on: July 26, 2009, 01:56:25 pm »
The error has been found and will be fixed for 0.6.4.

The problem only occurs if you set $dimension in the Bot.conf as Atlantean, Rimor or Die Nue Welt instea of 1, 2 or 3.
If dimension is non numeric, BeBot assumes that you are connecting to Age of Conan servers which have a slightly different protocol.

Simple workaround, use 1, 2 and 3 for Anarchy Online dimensions until 0.6.4 is out.
BeBot Founder and Fixer Kingpin

Offline Yusuf

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: bot 6.3 installation problem
« Reply #10 on: July 26, 2009, 02:17:22 pm »
Really nice support.../wave for Khalem.

Thanks a lot.

The bot works now as wished...


Sincerely

Yusuf

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 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: 201
  • 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