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: AOChat.php issues  (Read 4637 times)

0 Members and 1 Guest are viewing this topic.

Offline WeZoN

  • Global Moderator
  • *****
  • Posts: 92
  • Karma: +0/-0
AOChat.php issues
« on: March 28, 2011, 02:35:23 pm »
Hey

So now the bot's cannot log on it seems

Warning: Error while reading rpc header. () in \Sources\AOChat.php on line 503

Warning: handleRPCPackets: Packet is not an object (no RPCPacket?) in \Sources\AOChat.php on line 725
Informerbot [CONN]      [ERROR] Failed authenticating to server. Retrying in 60
seconds.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: AOChat.php issues
« Reply #1 on: March 28, 2011, 04:19:06 pm »
This just happen suddenly out of the blue?

* Did you change anything latly? Even small changes can cause something..
* Did you wait 15min and try again? You could have been locked out of the account.
* What dimension are you trying to connect?
* Check firewall, dns and other ISP related stuff

Fury connection is and have been working without interrupt since patch sometime last week..
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline WeZoN

  • Global Moderator
  • *****
  • Posts: 92
  • Karma: +0/-0
Re: AOChat.php issues
« Reply #2 on: March 28, 2011, 06:18:52 pm »
haha,, look at that:P

Seems to work now. Just had to wait like you mentioned.

Weird problem :S

Offline Chaoz

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: AOChat.php issues
« Reply #3 on: May 24, 2011, 02:47:43 am »
I will add the errorhandling for the unsuccessful login ( the error you actually get here is "Player is already logged in".
AoC Junkie.
Check out conanchat http://www.conanchat.com/index.php?id=3 a windows chat client for Age Of Conan

Offline sinza

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: AOChat.php issues
« Reply #4 on: August 04, 2011, 02:17:12 am »
Hello,

unfortunalety i have following error:

Gsys [LOGIN]    [STATUS]        Connecting to aoc server aoc-eu-um.live.ageofconan.com:7000
Gsys [LOGIN]    [STATUS]        Authenticating
Sending RPCPacket:0
Received RPC Packet:0
Sending RPCPacket:1
Read error: EOF
Warning: Error while reading rpc header. () in /chat_tools/Sources/AOChat.php on line 505
Warning: handleRPCPackets: Packet is not an object (no RPCPacket?) in /chat_tools/Sources/AOChat.php on line 727
Gsys [CONN]     [ERROR] Failed authenticating to server. Retrying in 60 seconds.

While the Bot is working on Windows 7 and Vista on Wamp installations, it won`t work with on my readynas
Linux 2.6.17.14 ReadyNAS (sparc)
I tested it with:
PHP 5.2.0-8
PHP5_5.2.13
PHP5_5.3.6-11
But on all versions i get the same error.
I copied the Bebot files from Windows to my NAS (including Database and the last AOC_CHAT.php patch you provided in this forum)
I changed Network settings and cables, as well i attached my NAS directly on the Router and at a Switch (unmanaged).
The NAS is behind a NAT Router, same subnet as my Windows Machines, so i think it could not be a routing problem.

I edited the AOC_CHAT.PHP file to get some outputs and tested it on Windows and my NAS.
The output seems to be different, (Windows has 8 spaces between the "Universe" string and the rest of the text, while this spaces are not in the string from the NAS) but i think the output depends on the shell, respectively the windows batch.


Any help, input and/or suggestions would be great.

regards,

sin


Offline sinza

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: AOChat.php issues
« Reply #5 on: August 09, 2011, 12:02:28 am »
common guys, no idea`s ?

currently it seems not to be a Bebot problem at all (maybe the socket handling in different machines??)
I tested it since my last post and it seems that the response after the second "send packet" is empty.
For sure, the "debug" info`s inside the script doesn`t messed up anything, the exactly same script works best on a windows machine.
This might be a topic for the "running bebot on a linux box" cracks out there, any help and suggestion is appreciated!
Once again, i`d like to run the Bot on my shiny Netgear Readynas with a Sparc Processor:
Linux 2.6.17.14 ReadyNAS padre (sparc-linux-gnu )
PHP Version 5.3.6-11.1
cURL support    enabled
cURL Information    7.19.7
Sockets Support    enabled
----

Below the output from my debug try`s:
theBot[LOGIN]    [STATUS]        Connecting to aoc server aoc-eu-um.live.ageofconan.com:7000
connect: Socket created
theBot[LOGIN]    [STATUS]        Authenticating
function: authenticateConan
authenticateConan creating new aochatPackage(rpc_universe_init)
authenticateConan calling: send_rpcPacket(initPacket)
function: send_rpcpacket
        Data written to socket: 82of 82
        Sending RPCPacket:0
authenticateConan calling: get_rpcPacket
function get_rpcpacket calling read_data(8)
INBOUND DATA:>>>>>>>>>>>
\¥á£2
INBOUND DATA:>>>>>>>>>>>
        get_rpcpacket head contains: \¥á£2
        get_rpcpacket calling read_data(88)
INBOUND DATA:>>>>>>>>>>>
UniverseAgentUniverseInterface}P 204089e6bfa380505e9be633e24d3c9a
INBOUND DATA:>>>>>>>>>>>
       get_rpcPackage Received RPC Packet:0
       get_rpcPackage create new RPCPacket
       get_rpcPacket return packet
authenticateConan calling: handleRPCPackets
function: handleRPCPackets Packet:     
        handleRPCPackets create new aochatPackage
        handleRPCPackets calling send_rpcPacket(outPacket) type:0
function: send_rpcpacket
        Data written to socket: 465of 465
        Sending RPCPacket:1
authenticateConan calling: get_rpcPacket
function get_rpcpacket calling read_data(8)
INBOUND DATA:>>>>>>>>>>>

INBOUND DATA:>>>>>>>>>>>
        get_rpcpacket head contains:

Warning: Error while reading rpc header. () in /chat_tools/Sources/AOChat.php on line 629
authenticateConan calling: handleRPCPackets
function: handleRPCPackets Packet:
Warning:        handleRPCPackets: Packet is not an object (no RPCPacket?) in /chat_tools/Sources/AOChat.php on line 867
authenticateConan received -1 from handleRPCPackets
theBot [CONN]     [ERROR] Failed authenticating to server. Retrying in 60 seconds.

Offline nodkan

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: AOChat.php issues
« Reply #6 on: August 11, 2011, 11:28:52 am »
Same problem here .. trying to run bebot from NSLU2 with unslung ... noticed different packets being sent from linux than from windows.

Also stuck after "Sending RPCPacket:1" with Read error: EOF etc etc

 

* 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: 528
  • 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