BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => BeBot Hyborian support => Topic started by: Organizer on December 03, 2008, 10:47:29 am

Title: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 10:47:29 am
The Bot is running 0.56 and was running (restarting every minutes) from the downtime to realms came back online. At the first run after it managed to start again I believe I got 20-30 messages as below, then after closing the window and starting the bot again there are no error messages and everything seems to load correct!

[AOChatWrapper_Core]    No user specified

When trying to send a command all responses are " I only listen to members of this bot." and the Bot shows the following in console:

[ERROR]  [AOChatWrapper_Core]    No user specified

The error is no surprise due to the fact that the table WHOIS in the DB in completely empty and even setting the cron for to 1min instead of 24h in the roster*php does not help getting the whois populated again. So nobody, including me (owner) can't talk to the bot in-game, and I can't trigger the in-game !rosterupdate...

Any ideas on what I can do? The rest of the DB, including USERS table looks to be all fine, I don't see any problems and the bot seems to load everything as usual with no errors... I am presuming something crashed during the downtime and that it has nothing to do with Funcom's update of course, none the less got no clue atm.

Help and tips are welcome :)

*update* did a check/repair of the whole DB but all was OK :(
Title: Re: Bot not working after todays game patch
Post by: Sudoka on December 03, 2008, 11:32:38 am
well i have the same problem on my 2 bots also, so FC must have done something.  :(
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 11:38:24 am
Thanks for posting Sudoka, that information surprised me... but at least explains. I really hope whatever they did require a minor change, but I can't understand what in such a patch should mess up things (typical Funcom though). We need help from the experts...


*EDIT*
Note! The bot still responds to e.g. our guild information script, where ANONYMOUS access is allowed to communicate. Everything else is not working due to I presume the WHOIS table failing to populate!

*EDIT*
Adding myself to the WHOIS table manually does not help at all. So what affect that part also affect checking against it for know members/users as far as I can see.
Title: Re: Bot not working after todays game patch
Post by: IKShadow on December 03, 2008, 02:52:57 pm
Well bot does not recognize player name anymore either in guild chat or if you send tell.
Title: Re: Bot not working after todays game patch
Post by: Getrix on December 03, 2008, 03:13:37 pm
Did not shutdown my 0.6.0 bot when the patch was going on.
It was disconnected and back online when i was back from work today.
Cant see any problem atm. Online/offline is working as before.
Connected to Soulstorm PVP EU
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 03:15:18 pm
Please Post the Version you are running as 0.6 may be OK from what im learning so far
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 03:23:00 pm
As posted in the first post 0.56, I'll try to upgrade to 6.0 somehow, lot of customs so need to be careful :) I'll post the results...
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 03:27:22 pm
branches/0.6 is Stable
the 0.6.0 Release is NOT
its best to get from SVN
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 04:00:36 pm
Updated to latest SVN and copied over all changed files to my live bot folder and the WHOIS table is still empty. So whatever Funcom's patch did the latest SVN don' fix it. Also confirmed issues with other Bot owners of Dagon EU... don't know their versions though.

The only change at the moment is that some CRON tasks from several modules executed directly (even if they are supposed to be on a pretty huge delay after a restart). Could be caused by some change from 5.6 to latest SVN I guess, and that there is an error message in the console saying [ERROR]  [AOChatWrapper_Core]    I was unable to get the user id for user: 'Aidbot' <- name of our the bot in this case!

Also started the Bot without any Customs, same result, so that's not what breaks it either.
Title: Re: Bot not working after todays game patch
Post by: Getrix on December 03, 2008, 04:35:36 pm
Im sorry, but looks like i was to quick to tell 0.6.0 was working prober.
When more ppl are joining today it looks like i got same problem.

Thinking about the changes i know they did today, preparing for Server merges something come up in my minde.
They may have changed players ID, if there are two of same name on two different servers...
I got 2 chars with same nick on two different Realms. On the bot realms this char is broken, but not one of my other chars...


[ERROR]        [AOChatWrapper_Core]    No user specified MySQL error (# 0) on query: SELECT value, module, name FROM botname_preferences AS t1 JOIN botname_preferences_def AS t2 ON t1.pref_ID = t2.ID WHERE owner= You have an error in your SQL syntax; check the manual that corresponds to yourMySQL server version for the right syntax to use near '' at line 1
[ERROR]        [AOChatWrapper_Core]    No user specified
[Whois]        [Update]         had an invalid user ID! UID:
[ERROR]        [AOChatWrapper_Core]    No user specified


EDIT1:
Removed my bots char and added a fresh one without buddies added same problem.
Title: Re: Bot not working after todays game patch
Post by: hewes on December 03, 2008, 05:22:29 pm
I've been busy heacily editing my version of bebot, so I've a reasonable idea of how it works.

I'm trying to get mine working, but FAO any official bebot developer looking here, the reason bebot isn't working is that they seem to have changed the reply to a client name query.

Specifically

 (in aoc packet wrapper)

AOCP_CLIENT_NAME => array("name"=>"Client Name", "args"=>"IBS")

change it to

AOCP_CLIENT_NAME => array("name"=>"Client Name", "args"=>"IIS")

having updated that in my bot (currently running 0.5.3) it now works fine

edit: this doesn't work on newer versions, however the fix should be approximately the same. I'm looking over the code of the new version now
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 06:21:41 pm
This Fix has been Tested and Altho diferent due to AO and AOC compatability the change was the same IBS to IIS for AOCP_CLIENT_NAME
this has been commited and all should get an update from

http://svn.shadow-realm.org/index.py/BeBot/branches/0.6/Sources/AOChat.php?view=co
Title: Re: Bot not working after todays game patch
Post by: hewes on December 03, 2008, 06:36:48 pm
looks like they have changed some more things as well, my bot isn't getting or understanding the buddy notifications.

I've not got time right this second to find the correct arg value you require.

if you've not posted an update when I've finished some personal stuff (dad comming around for dinner lol), I'll try and find out what need to be done, and post a follow up
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 06:39:36 pm
Temar; as hews say in his edit, the change does not work for latest SVN build and I can confirm that as well (running latest now). Still getting unable to get user ID for Botname during startup, as well as an empty WHOIS table and maybe more as hewes just posted about...
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 06:44:52 pm
he prob said that because the line he posted was diferent
this update to AOChat.php has been tested by atleast 2 people
Title: Re: Bot not working after todays game patch
Post by: Sudoka on December 03, 2008, 07:02:13 pm
Tested with 0.5.3 and worked. Had to remove all members from database tho. When autoadd add them to bot again, everything works ok.
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 07:04:41 pm
you had to remove all the poeple from database?
Title: Re: Bot not working after todays game patch
Post by: Sudoka on December 03, 2008, 07:09:58 pm
you had to remove all the poeple from database?

Yes. members could do commands, but no one appeared on notify, member or online list. a re-add of members took care of it.
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 07:10:29 pm
did u try !rosterupdate
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 07:15:15 pm
he prob said that because the line he posted was diferent
this update to AOChat.php has been tested by atleast 2 people

Strange, well I and others can chat to the bot again at least, thats correct with latest SVN. Still there are tons of errors (maybe something do with what one just said, had to delete the user DB). The WHOIS table is empty and a rosterupdate does not change that either... so needs further fixing, some errors for each character include e.g.;
 
Aidbot [GETUNAME]       [FAILED]        I was unable to get the user name belonging to: 33725180

AND

Aidbot [ERROR]  [AOChatWrapper_Core]    I was unable to get the user id for user: 'Ahran'
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 07:19:01 pm
once US server come back online i can verify all this and what need to be done (hopefully with out deleteing member list)
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 07:20:44 pm
Soundn good, I'd like to avoid deleting as well, surely it's linked the the issue located. When are the US servers scheduled to go online?
Title: Re: Bot not working after todays game patch
Post by: Sudoka on December 03, 2008, 07:24:12 pm
I deleted the 'online', 'users' and 'whois'. That fixed it for me.
I didn't try a rosterupdate. We dont have that many members anyway ;)
Title: Re: Bot not working after todays game patch
Post by: Temar on December 03, 2008, 07:31:11 pm
whois and online is fine
user i dont like to delete
it contains ur member list with last seen and some settings too
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 03, 2008, 11:22:27 pm
No further fixes yet I presume? Anything you need tested let me know...
Title: Re: Bot not working after todays game patch
Post by: Kentarii on December 04, 2008, 12:40:38 am
I'm running version 0.5.3 and updated Sources/AOChat.php as per hewes post and ran a !rosterupdate.

Looks ok so far.
Title: Re: Bot not working after todays game patch
Post by: -Fionn- on December 04, 2008, 03:11:46 am
I'm also running version 0.5.3 and I changed the line in Hewes post from IBS to IIS and everything is back working properly again. Thanks for this fix. :D
Title: Re: Bot not working after todays game patch
Post by: Elesar1 on December 04, 2008, 07:35:34 am
Updated AOChat.php and all is well :D
Title: Re: Bot not working after todays game patch
Post by: GBH on December 04, 2008, 10:49:35 am
Made the update on 0.5.3 all is well

As for it not recognising the notify I just left it overnight and it's slowly re-syncing itself.

Started off the night recognising 3 or 4 out of 15 and by the end it was nearly everyone. I can't see what's triggering the recognition code though.

Buff
Title: Re: Bot not working after todays game patch
Post by: morisey on December 04, 2008, 01:09:05 pm
so any tips how to fix 0.6.0 without downgrade to 0.5.3?
Title: Re: Bot not working after todays game patch
Post by: Getrix on December 04, 2008, 01:56:42 pm
Upgrade to 2files according to this topic: http://bebot.link/news-b10/bebot-v0-6-0-released/msg11389/?topicseen#new

This is working with 0.6.0 release.

Tips: Run !rosterupdate after first start
Title: Re: Bot not working after todays game patch
Post by: morisey on December 04, 2008, 04:12:11 pm
Took some tinkering to get all back as it was , but taking fresh 0.6.0 with thos 2 additionaly changed files did the job , w/o tampering with DB

thanks
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 04, 2008, 04:31:43 pm
Our BOT is still not working... just checked the latest SVN (clean) and it's not working properly as earlier described. However as someone have pointed out a clean 6.0 release with the two patched files does work.

I'd still like to see the latest SVN get fixed though, don't feel free reverting and merging my custom changes once again!
Title: Re: Bot not working after todays game patch
Post by: Getrix on December 04, 2008, 04:40:22 pm
The SVN 0.6 branche is working...
http://svn.shadow-realm.org/svn/BeBot/branches/0.6

As stated in BeBot 0.6.0 topic:
http://bebot.link/news-b10/bebot-v0-6-0-released/msg11389/?topicseen#new

Quote
Warning about SVN
In the near future we may be implementing several architectural changes, which may break stuff in SVN.
We'll try to add it to the commit log if we do break stuff, so better check there first before doing an update.

They are rewriting ALOT so latest SVN trunk is not a working version!
Title: Re: Bot not working after todays game patch
Post by: Alreadythere on December 04, 2008, 04:47:52 pm
Basically what geborg said.

While up to the 0.6.0 release running SVN trunk was fairly save the last few months right now we are working on the next line of bebot code. Which include further architectural changes. At one point or another there will be a broken state in SVN. Most likely some fundamental change breaking most/all modules before reworking. The reworking will be done as we want trunk functional too, but it may take a few days in worst cases.
So for the moment running trunk is risky for most people.

All bug-fixes or feature enhancements will end in the 0.6 branch in the near future too. So savest bet is to run the branch code, it will be stable.
Title: Re: Bot not working after todays game patch
Post by: Organizer on December 04, 2008, 06:20:06 pm
Okay, I'll get cracking on converting our stuff into 6.0 release then, thanks for the update and details :)
Title: Re: Bot not working after todays game patch
Post by: Alreadythere on December 04, 2008, 07:04:41 pm
0.6 is fully compatible to 0.5.5, in that part there shouldn't be any need to convert anything.
Title: Re: Bot not working after todays game patch
Post by: Blueeagle on December 05, 2008, 02:34:05 am
So for the moment running trunk is risky for most people.

Allow me to upgrade that:
Running SVN version will be insanity over the next few months.
We are slaying AOChat and 0.8.0 will be radically different in that respect.

However we are attempting to remain compatible most of the time but when you start to change the fundamentals alot of things are expected to break.
Title: Re: Bot not working after todays game patch
Post by: upstart on December 05, 2008, 05:20:01 pm
Have been trying since patch to get this fixed, have reinstalled from scratch, have installed 0.6.0(including file fixes) bla blah, but cant get this to work for me at all.

It will connect to Guild chat, but users come up as "0" instead of names, i've tried clearing the whois, users, online, but this dont help.  I cant run a rosterupdate becouse the bot dont recognise me as member, even though i'm set to owner!!

This is driving me nuts, is there a way that will work for me to start again? Each new install seems to give same errors.
SimplePortal 2.3.7 © 2008-2024, SimplePortal