BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: Chaoz on November 10, 2011, 01:12:48 am
-
Funcom changes their login again in 3.1. I have updated Conan Chat so it works with the login changes.
im currently refactoring the aoc login code for BeBot a bit, so it will be easier to do changes to the code in the future ( and easier for others to see the changes in the code ).
The main change is that they upgraded to use protobuffers in their remote method login methods ( to the login and character server ).
I will have to test this a bit in php since I have to drag in protobuffers into php to get this to work.
I will let you know when I have a working bot with 3.1 :)
Chaoz
-
Awsome Chaoz :D
-
Ups..3 weeks almost has passed. I have refactored the entire Aoc login. Will see if I can post a diff tomorrow ( Its 4 am here atm ) for the login changes.
-
awesome, thanks for the hard work. Look forward to seeing it soon. Thanks.
-
thx ;)
-
I love your work. It is very appreciated!
-
Was there a patch posted for this and I'm missing it? Just checking status on it.
Thanks again Chaoz and all the other contributers and developers for keeping this project going. My guild and myself depend on Bebot for a lot of things, and when it is down, we miss it!
-
Any News?
-
doesn't look like any updates yet, but I hope Chaoz is well rested by now :)
-
yup Waiting for that sexy update =p
-
thanks for your time and work Chaoz ;D
-
Any luck =p ?
-
:'( wish funcom would stop screwing with the game
and Chaoz thank you for putting time into this to try to make it work
-
"wish funcom would stop screwing with the game"
Yeah, all I had was lag, lag, lag tonight and no BeBot. :( It sounds like the changes will be good once they finally fix the fixes. ??? Thx Chaoz for your efforts.
-
I've been watching your mercurial updates and seen the 'bot now works with new layout'
When trying with those files, I get:
botname [2011-12-04 07:51:33] [LOGIN] [STATUS] Authenticating
[aoc-us-um.live.ageofconan.com] Could not connect on port 7000
Notice: Could not connect to the Loginserver (aoc-us-um.live.ageofconan.com:7000) in /botdir/Sources/AOChat.php on line 493
botname [2011-12-04 07:51:33] [CONN] [ERROR] Failed authenticating to server. Retrying in 60 seconds.
The connect log you showed, is for the eu servers? I thought their patch hasn't happened yet? thinking maybe mine is trying the wrong port?
-
What files? I have yet to see any patched aochat.php file posted... did I miss something?
I've been watching your mercurial updates and seen the 'bot now works with new layout'
When trying with those files, I get:
botname [2011-12-04 07:51:33] [LOGIN] [STATUS] Authenticating
[aoc-us-um.live.ageofconan.com] Could not connect on port 7000
Notice: Could not connect to the Loginserver (aoc-us-um.live.ageofconan.com:7000) in /botdir/Sources/AOChat.php on line 493
botname [2011-12-04 07:51:33] [CONN] [ERROR] Failed authenticating to server. Retrying in 60 seconds.
The connect log you showed, is for the eu servers? I thought their patch hasn't happened yet? thinking maybe mine is trying the wrong port?
-
:'(
Our guild misses our bot also...
What have Funcom done??!!
I hope there is a way to fix the code etc...
Thanks to those who are working on a fix...
We appreciate your work :-*
Ana
-
Also they changed chat port and chat address but that wasn't the issue they changed log on also
-
Any luck folks ?
-
No luck here. I'm still waiting for a fix. :(
-
New song "Here comes guild bot here comes guild bot logging in once again! Here those command lines tells and lag lines ringing at your chat! but lift your chin and give a grin as we want our guild bot back!"
Happy Holidays all!
-
Looks like 3.1 may be fixed tonight. After EU is up, i think we may see the fixed AOChat.php? or at least that is the hope.
BTW, love the X-mas song.
-
Thanks I got banned on AOC IRC For singing it but I thought it was cute =p
-
Someone send out a search party, and check missing persons, or America's Most Wanted.... Chaoz has vanished :o
-
Someone send out a search party, and check missing persons, or America's Most Wanted.... Chaoz has vanished :o
Chaoz plays on EU servers, so more like 'worlds most wanted' or 'aoc most loved/missed' :p
-
Someone send out a search party, and check missing persons, or America's Most Wanted.... Chaoz has vanished :o
Chaoz plays on EU servers, so more like 'worlds most wanted' or 'aoc most loved/missed' :p
OK ... So Who needs a Beer?? :)
I do not buy rounds often outside of my local pub but ....... I will here just for the GREAT effort that has been made by our community.
........ All good things come to those who wait 8)
-
WHISKEY ! For my MEN BEER FOR MY HORSES!!!!!
-
:-* Any news yet ??
-
Just out of curiosity, how is the login process determined when coding for the bot? Is it just done by packet sniffing and coding accordingly or is there some other source of information out there?
-
Yes Current error
arning: Error while reading rpc header. () in C:\Forgiveme\Sources\AOChat.php o
<Bam> n line 503
<Bam> Warning: handleRPCPackets: Packet is not an object (no RPCPacket?) in C:\Forgive
<Bam> me\Sources\AOChat.php on line 725
<Bam> Tawnet [CONN] [ERROR] Failed authenticating to server. Retrying in 60 seconds.
-
Should be a fix by next week at the latest. 3.1 is slated to hit next next week on the euro servers, so they'll need a fix for it by then.
-
Are You saying he's anti -American and holding back LOL
What's his pay-pal account I'll help pay him..
If i was only smart i would try to fix it :P
-
RPC is Remote Procedure Call. http://en.wikipedia.org/wiki/Remote_procedure_call
I assume this is how the AOC code and the Chat system interact, they are seperate systems. The chat system is a very much evolved version of Internet Relay Chat that runs along side the AOC servers.
Time to get some Americans up to speed on this stuff. Keep digging people.
Chaoz talks about protocol buffers and there is some good info here http://code.google.com/apis/protocolbuffers/docs/overview.html
-
RPC is Remote Procedure Call. http://en.wikipedia.org/wiki/Remote_procedure_call
...Time to get some Americans up to speed on this stuff. Keep digging people...
I just don't know enough about PHP. The wireshark trace of the communications is straight forward... i just don't know what to do with it. If the Dif was posted... i could figure it out but it is my php lacking more than anything else...
-
If the Dif was posted... i could figure it out but it is my php lacking more than anything else...
Yeah, kinda makes me wish I kept one from before, not that I would necessarily know enough about php to do anything with it in a timely fashion either. I just wasn't sure if there was some other source from funcom, probably unofficial since they don't really support bots, that might have mentioned changes or if this was how it had to be done.
-
Last time it changed, the changes was as "simpel" as this:
Here is the patch for 2.7.
Changes are in Sources/AOChat.php
Change
AOCP_LOGIN_CHARID => array("name"=>"Login CharacterID", "args"=>"III"),
to
AOCP_LOGIN_CHARID => array("name"=>"Login CharacterID", "args"=>"IIIS"),
Change ( line 468 ish AND 935 ish )
$loginCharacterPacket = new AOChatPacket("out", AOCP_LOGIN_CHARID, array(1,$this->char["id"],$this->serverseed ) );
to
$loginCharacterPacket = new AOChatPacket("out", AOCP_LOGIN_CHARID, array(1,$this->char["id"],$this->serverseed, "en") );
I also attached the whole file if you just want to replace it with the changes.
Earlier fixes if you want diffs:
http://bebot.link/aoc-0-6-support/aoc-rise-of-the-godslayer-authentication-fix/
- http://www.conanchat.com/hg/Php/BeBot.201/rev/8f2cd4da2374
http://bebot.link/aoc-0-6-support/cant-get-the-bot-to-work-after-today%27s-patch-%282-07%29/msg17381/#msg17381
-
this is what funcom is saying when someone asked about a chat client program that isnt running on Testlive.
#2
Einride
--------------------------------------------------------------------------------
Yes, the login authentication has changed in this patch. The main change is that it is using protocol buffers. Some of the packets has changed signature but it shouldn't be too many.
Upgrading the interface is not too trivial, but I will see if I can post some example code for it.
__________________
//
// Einride : Lead programmer for Age Of Conan
//
--------------------------------------------------------------------------------
Last edited by Einride; 10-20-2011 at 06:52 PM.. Reason: removed double signature
-
Heya :)
Sorry for beeing afk here. I have been off for a week with my job.
Ok, so down to the details.
- I have refactored the entore AoC login code
- I had to plug in and fix up a 3rd party protobuf library for PhP. This is where I got stuck, since I thought I had a bug in my code, but it turned out to be broken protobuf library.
So over to the good news, I now have a working bebot running on US with the 3.1 patch. :D
I will not give diffs this time since there are so many changes, but I will attach a zipped file that you can just apply directly in your bebot folder.
Ok, uploading the zip file on my webpage in a few.
Chaoz
-
Ok, the patch is here : http://www.conanchat.com/ConanChat/BeBot/BeBot.301.patch.zip
Just make sure that it unpacks in the root folder.
I will make a proper bebot patch tomorrow with comments, diffs, etc.
Let me know if you have problems with this patch on US ( or if Im missing any files )
Chaoz
-
Issue resolved.
Btw, thanks for the work on the update.
-
Gah I fixed it now :)
Redownload the patch and try it :)
-
Thanks Man, I don't know what I'm doing, BUT we got a working Bot now!! A Thousand gratitudes to you...I wish you worked for FunkyCom ;D (*thinks to himself "maybe he does. Well, they should fire the rest!!")
-
YEY BOT! thank you for your hard work.
1 Error to report sofar, not sure if its on my end or not. But my guild spazzed out and sent the bot about 500 tells as soon as it came online.
Read error: EOF
Warning: unpack(): Type N: not enough input, need 4, have 0 in C:\bebot\Sources\AOChat.php on line 1394
Warning: array_pop() expects parameter 1 to be array, boolean given in C:\bebot\Sources\AOChat.php on line 1395
Warning: unpack(): Type n: not enough input, need 2, have 0 in C:\bebot\Sources\AOChat.php on line 1406
Warning: array_pop() expects parameter 1 to be array, boolean given in C:\bebot\Sources\AOChat.php on line 1407
Warning: unpack(): Type n: not enough input, need 2, have 0 in C:\bebot\Sources\AOChat.php on line 1406
Warning: array_pop() expects parameter 1 to be array, boolean given in C:\bebot\Sources\AOChat.php on line 1407
Read error: EOF
Furbot [CONN] [ERROR] Bot has disconnected. Reconnecting in 60 seconds.
The bot is restarting.
-
Hm, this error is in the old AO packet part. I haven't really touched that. And yes, all the tells that members of the bot have been sending the last week and a half, will be answered when the bot comes online :)
Let me know if you continue to get errors in this area. What version of BeBot are you running before you applied the patch btw ?
Chaoz
YEY BOT! thank you for your hard work.
1 Error to report sofar, not sure if its on my end or not. But my guild spazzed out and sent the bot about 500 tells as soon as it came online.
Read error: EOF
Warning: unpack(): Type N: not enough input, need 4, have 0 in C:\bebot\Sources\AOChat.php on line 1394
Warning: array_pop() expects parameter 1 to be array, boolean given in C:\bebot\Sources\AOChat.php on line 1395
Warning: unpack(): Type n: not enough input, need 2, have 0 in C:\bebot\Sources\AOChat.php on line 1406
Warning: array_pop() expects parameter 1 to be array, boolean given in C:\bebot\Sources\AOChat.php on line 1407
Warning: unpack(): Type n: not enough input, need 2, have 0 in C:\bebot\Sources\AOChat.php on line 1406
Warning: array_pop() expects parameter 1 to be array, boolean given in C:\bebot\Sources\AOChat.php on line 1407
Read error: EOF
Furbot [CONN] [ERROR] Bot has disconnected. Reconnecting in 60 seconds.
The bot is restarting.
-
in the php output, I'm getting alot of spam for buddy add regarding '4294967295' not sure if it will persist after the roster is done updating or not?
edit, roster update done its no longer doing the repeat for add request.
on the tells while it was offline, you could manually logon the bot toon, to 'read' the offline msgs and logoff, wait a min then log the bot ;)
-
Yeah the 4294967295 add is actually buddy add with ID -1. The is a bebot bug that has been there for a while ( located in the joint AO/AOC chat module ).
This bug is annoying since I keep getting unknown members :)
Might be some weird issues reading offline messages.
Chaoz
in the php output, I'm getting alot of spam for buddy add regarding '4294967295' not sure if it will persist after the roster is done updating or not?
edit, roster update done its no longer doing the repeat for add request.
on the tells while it was offline, you could manually logon the bot toon, to 'read' the offline msgs and logoff, wait a min then log the bot ;)
-
Thanks Chaoz!!!
Appreciate your hard work :)
Ana
-
Thanks so much!!!!!!!!
-
Error out
Fatal error: Class 'PBMessage' not found in C:\Forgiveme\Sources\AocLogin\pb_pro
to_Endpoints.php on line 3
-
ok i think i did this wrong i opened the zip file and moved the 3 php files manualy and saved and now i get this
(http://i179.photobucket.com/albums/w287/dragonslayerjr/th_boterrorpatch.png) (http://s179.photobucket.com/albums/w287/dragonslayerjr/?action=view¤t=boterrorpatch.png)
and at the end of it i get this
(http://i179.photobucket.com/albums/w287/dragonslayerjr/th_errorpatch2.png) (http://s179.photobucket.com/albums/w287/dragonslayerjr/?action=view¤t=errorpatch2.png)
so what am i dong wrong ?
-
nvm i missed a file and thank you for all your hard work
-
I readded the zip file and added the include for PBMessage incase something is fubar in the include paths for php. Just download the file again and see if it works.
[edit] I also removed some console spam when the bot is logging in.
Bamsina: If it doesnt work, I guess I have to look a bit deeper into it. Also make sure that you extracted the protobuf subfolder in the AocLogin folder
Chaoz
-
on another note from sheeths post the bot seems to be stable now
but takes half hour if we !yg and will not take any commands till its finished teh yg search
anyone else have this ?
-
I remember that issue way back with the old item command, until it 'timed out' it ignored everything else in guild chat, tells still worked though
-
it does return the yg search just takes an age
-
working great here, thanks for the patch!
Looks like they've added distributed character servers, and guild servers.... I guess they're gonna re-use this for Secret World or maybe this infrastructure allows them better tools for cross-server tech.
-
Fatal error: Class 'RpcHeader' not found in C:\TAWNEW\Sources\AocLogin\ServerCon
nection.php on line 168
Same error
No file that name was in patches I am on windows 7
-
Hmmm odd. I will try this on win 7 tomorrow
Fatal error: Class 'RpcHeader' not found in C:\TAWNEW\Sources\AocLogin\ServerCon
nection.php on line 168
Same error
No file that name was in patches I am on windows 7
-
:-* Someone needs to open a bot hosting service =p
-
Am I missing something Extra I need to have Im on PHP 5.3
Funny thing tank sent me his EXACT bot folder with all the correct stuff and its not letting, me get past these two errors its looking for a class almost like java
-
Here is a pastebin
http://pastebin.com/NMUFTRT8
-
As for everyone who has been asking me about this for the past week, I'm flattered but I can't help you.
I'm currently not active in the AoC community and barely have enough time to throw in the occasional maintenance to my AO projects.
Chaoz seems on the ball with this, you're in fine hands.
The chat system is a very much evolved version of Internet Relay Chat that runs along side the AOC servers.
It's not actually. It's not even remotely close or a has single hint of similarity with IRC.
I'm not sure where this information came from, as I see it popping up every once in a while.
But I am curious to what lead you to this conclusion. Where did you get that information from?
-
thanks for the update!
serverlist.php is missing this for the deathwish server:
$server_list['aoc']['Deathwish'] = $server_list['aoc']['US'];
not that there are many bots on that server...
~Kyr
-
Many thanks for your time and effort Chaoz.. on behalf of the TTL members on Wiccana
-
Yes thanks for all your help on behalf of TAW And also thanks Corrupted Tanks for his help also still trying to fix this
-
I'm off to bed pulled my hair out for 9 hours on this thanks again For all the work your doing guys
-
Ya on behalf of Furious (set) we thank you for your work
u dont how much we missed !timeraa ;D
-
:-* Someone needs to open a bot hosting service =p
I previously had thought about it.. But it would be rather pain imo. Would either have to manually (host operated) restart bot etc, or a custom control panel. (highly doubt anyone wants to rent out shell access for this)
-
on another note from sheeths post the bot seems to be stable now
but takes half hour if we !yg and will not take any commands till its finished teh yg search
anyone else have this ?
going a bit offtopic:
YG the past day or so has been slow or non-communicative - both website and !yg queries; happened last week as well on Sunday but got fixed fairly quick...
/edit - adding the following 2 lines into YG.php has helped me with this timing out issue:
FIND:
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
After that line, add:
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT,5);
curl_setopt($ch, CURLOPT_TIMEOUT,20);
Can't remember if these lines are in by default (made several changes to YG.php over time):
Find:
$xmlobj = simplexml_load_string($xmlprf);
After that line, add:
if ($xmlobj === FALSE)
{
return "##red##YG.COM isn't responding or returned an invalid result!##end##";
}
Save and restart the bot
-
Yep, all good and up and running here. Cheers from Mist Wolves on Wiccana. :)
-
Someone needs to open a bot hosting service =p
already running 9 bots now so im out of doing more :)
-
Great work Chaoz, thank you on behalf of Mercenaries/Tyranny
:D
-
Awesome job Chaoz!
Everyone in our Guild missed the Guild Bot especially me! It really sux to have to log on every 80 and check AAs because somebody is to dumb to use a pencil and paper to keep track of his 14 - 80s AA Timers :-X
-
Still bugged
-
Bamsina,
Try changing
"protocolbuf/message/pb_message.php"
to
"./protocolbuf/message/pb_message.php"
You are windows, and it may have a problem with the directory starting directory... or maybe fully qualify the directory.
-
oh, this was in pb_proto_Endpoints.php found in Sources\AocLogin
-
Thank you very much for the patch. Love bot, best utility in game. Keep it going.
-
WORKING!! Needed to put PHP in my C: also update PHP to there new system it didn't like normal php5
-
Hi,
thx for the patch, for info be careful some files only have at the beginning:
<?
instead of
<?php
wich can cause problems for the bot to start on some system (Slackware 13.37 in my case).
-
Thank you so much Chaoz for the fix, IronFist guild on Set thanks you a ton!
One issue im having, since you own also the Conan Chat program for windows: im using the chat toon and the bot toon on same account (created only for them) and the chat toon was set as Owner for bot and i used to start commands for the bot through the 'tells' in the Conan Chat window; since the latest fix you posted (both chat and bot) i cannot get any commands through from the bot back to the chat toon when using the Conan Chat: it will send the 'tell' to the bot but the bot seems not to receive it and not being able to send any 'tell' back with the requested command. This issue ive noticed only when using the Conan Chat program, sending commands in-game works as before and for everyone.
Thanks again for your time and effort.
Pit
-
Im installing the patch on a Mac OSX install and the bot will no longer launch after doing so. I had a backup so i deleted everything and the backup runs fine. I apply the patch again and it breaks the bot.
I have went through and made sure the start of each file has <?php instead of just <? and it still breaks my bot install when i apply the patch...
Any ideas?
-
Can someone upload the patch in this thread please? Conanchat.com is having issues it seems...
-
http://www.filesonic.com/file/4236741665/BeBot.301.patch.zip
By the way .. thanks for the HARD work been done so far for all of you peeps who done there share ..
Keep it up , please :D
Greetings
Patromonus
-
Thank you for the patch Chaoz and Patromonus for the extra mirror :)
-
Yeah sorry about that. The hosting server for conanchat died for a brief moment.
And I uploaded a new version of Conan Chat with the tell bug fixed.
Chaoz
Thank you so much Chaoz for the fix, IronFist guild on Set thanks you a ton!
One issue im having, since you own also the Conan Chat program for windows: im using the chat toon and the bot toon on same account (created only for them) and the chat toon was set as Owner for bot and i used to start commands for the bot through the 'tells' in the Conan Chat window; since the latest fix you posted (both chat and bot) i cannot get any commands through from the bot back to the chat toon when using the Conan Chat: it will send the 'tell' to the bot but the bot seems not to receive it and not being able to send any 'tell' back with the requested command. This issue ive noticed only when using the Conan Chat program, sending commands in-game works as before and for everyone.
Thanks again for your time and effort.
Pit
-
Yeah sorry about that. The hosting server for conanchat died for a brief moment.
And I uploaded a new version of Conan Chat with the tell bug fixed.
Chaoz
Ah, nice.. could you perhaps update your first post to include the link?
-
Updated my signature with the conan chat link.
I will update the patch file a little bit for the BeBot patch :)
Chaoz
-
Thanks so much, I'll try to get my Deathwish bot back online.
To the person asking about a bot hosting serveice... there is a fella who offers such a service. He can be reached at Christer.r.olsen(at)gmail(dot)com.
-
I have not been successful as to downloading the file to fix my bot. It says that the link that I try to use (chaoz's signature and links he posted) are either no longer sharing files on a site that it brings me to, or does not actually load in my browser. Apparently it cannot find the page the link takes me to. Right clicking on it does not work. Anyone able to help me figure out how i can obtain the file?
-
This should still work: http://www.conanchat.com/ConanChat/BeBot/BeBot.301.patch.zip
Mirrored it on my page: http://aoc.is-better-than.tv/bebot/BeBot.301.patch.zip
Anyways.. Rage and Deathwish are missing in the ServerList.php file, so you need to update that, see attached file.
Might be other stuff as well...
-
Alright I unzipped the file to the desktop (so I could find it). Then I placed the unzipped file in my root directory of the bebot (Have it running from PHP5 folder). i get the same error. didn't change nothing. am i doing something wrong??
-
What error? We're not mind readers...
The ServerList.php in the zip was missing Rage and Deathwish, see my updated previous post.
-
I also get an error. I don't know much about php programming so I don't have any idea what's wrong.
error code: fatal error: call-time pass-by-refernence has been removed in c:\bebot\sources\bo.php on line 1703
Chris
-
I also get an error. I don't know much about php programming so I don't have any idea what's wrong.
error code: fatal error: call-time pass-by-refernence has been removed in c:\bebot\sources\bo.php on line 1703
Chris
Try downgrading to PHP 5.3 (or 5.2), I assume you just grabbed the latest and greatest version (5.4) you could find.