BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.2 support => Topic started by: Stelai on November 09, 2006, 11:18:44 pm

Title: 2.9 : Cloak Messages and Tower messages
Post by: Stelai on November 09, 2006, 11:18:44 pm
Hey there,

First off I'm not 100% sure i'm posting in the right place, if not, i'm sorry.

I've been playing with 2.9 and had some things not working correctly regarding tower attack messages and cloak messages. I don't know if the AOExtMsg were changed recently ingame, or if the aochat.php bundled in 2.9 is somehow customized or not up to date.

Here are the fixes I figured :
- Cloak messages : the aochat.php bundled with 2.9 didn't seemed up to date according to auno's one (at least regarding the AOExtMsg Class, it seemed incomplete). I replaced it with Auno's one and it worked nice.
- Tower messages : probably due to the replacement above, or to a change in messages, the preg_matches in TowerAttack.php didn't trigger on an attack. Here are the fixes I made to make it fit current auno's aochat.php :
the first 2 preg_matches in the gmsg function are to be replaced with theses ones
Code: [Select]
if (preg_match("/(.+) \((.+), (Clan|Neutral|Omni)\) attacked (.+) \((Clan|Neutral|Omni)\) in (.+) at ([0-9]+), ([0-9]+)\./i", $msg, $info))
<...>
else if (preg_match("/(.+) just attacked the (clan|neutral|omni) organization (.+)'s tower in (.+) at location \(([0-9]+), ([0-9]+)\)\./i", $msg, $info))

I don't know if anyone else around had issues with 2.9 recently, but if so looking into theses ones might help.

I jump on the occasion to post here to say a great thanks to the whole bebot community, cause this bot really owns. :)
Title: Re: 2.9 : Cloak Messages and Tower messages
Post by: Naturalistic on November 10, 2006, 12:39:13 am
iirc you need to get the new AOChat... found on the main page.

Nesi made one for php4, and Neo's is for php5 ( at least that's what I've been told they are for :P)

Those fix that error I believe.
Title: Re: 2.9 : Cloak Messages and Tower messages
Post by: Stelai on November 10, 2006, 12:51:31 am
I should read more before to post, I guess the AOChat.php fixes just solve it. I'm sorry.  ::)

Still, it seems that the first towerattack.php's preg_match (in gmsg function) needs to be fixed.
Title: Re: 2.9 : Cloak Messages and Tower messages
Post by: Khalem on November 12, 2006, 12:21:19 am
Auno changed the text output formatting around some unfortunately, which means that updating AOChat will break backwards compatibility with modules that parse the strings like tower attack.
The ext messages are also hard coded into the library which is not very handy when it comes to the changes that will occur in the future when eventually everything sent by the server will be ext messages, but that's a different subject.

I have received a few reports indicating that Nesi's fix might also break ext messages due to originating from 0, but i haven't had time to look at it yet.
SimplePortal 2.3.7 © 2008-2024, SimplePortal