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: 2.9 : Cloak Messages and Tower messages  (Read 1914 times)

0 Members and 1 Guest are viewing this topic.

Offline Stelai

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
2.9 : Cloak Messages and Tower messages
« 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. :)

Offline Naturalistic

  • Contributor
  • *******
  • Posts: 221
  • Karma: +0/-0
Re: 2.9 : Cloak Messages and Tower messages
« Reply #1 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.
220/25 Eternalist Doctor
-----------------------------
Campalot Coding Co-ordinator and Super Admin
http://www.campalot.info/index.php

Offline Stelai

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: 2.9 : Cloak Messages and Tower messages
« Reply #2 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.
« Last Edit: November 10, 2006, 12:59:01 am by Stelai »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: 2.9 : Cloak Messages and Tower messages
« Reply #3 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.
BeBot Founder and Fixer Kingpin

 

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