collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: AoC bot issue with parsing text after Funcom patch 1.04.6  (Read 5097 times)

0 Members and 2 Guests are viewing this topic.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
AoC bot issue with parsing text after Funcom patch 1.04.6
« on: March 31, 2009, 02:06:17 pm »
I just noticed that our bot is messing something up after todays patch. Basically we use a guides.php module share here at one point to read .txt files and show them in-game.

This have worked fine forever, and I believe it uses Bebots built in-code to do the job, but I might be wrong, though I can't see any code in the file that would do it directly.

In any case the patch today should just have been some DX10 and exploit fixes, so that something like this suddenly don't work is suspect as no changes has been done to the bot, why it is done and if its a deliberate change or bug is also unknown.

The bot in essence do no longer parse line breaks in the .txt files, so all the content shows as one big bunch of text now without breaks. If the .txt file got a forced <br> it works as normal.

Some members also think he noticed that the whole log-on member message spam changed. It is now all blue except text for the charver level being in another cyan blue. And I guess he might be right, as I think there used to be another colour as well to better split the different parts aside, if so again it is likely linked to whatever goes wrong with some html code in the parser (presuming its called that).

Hope I have managed to at least explain the issue reasonably enough, as done in a hurry from work atm :) Maybe someone else can confirm as well?

Organizer
« Last Edit: March 31, 2009, 04:56:18 pm by Organizer »

Offline Monk4y

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #1 on: March 31, 2009, 06:29:47 pm »
I have the problem with scripts not being parsed correctly as well. <br> works to move to the next line but <br><br> does not give you a gap in the text as it should. in php modules the \n\n does not dive you a gap like it used to it only drops dow to the next text line.

its all very annoying.

I didnt notice any changes in colour yet though.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #2 on: March 31, 2009, 07:48:34 pm »
Yeah, maybe I am dreaming with the logon spam msg color, hehe. In any case something happened, would be nice to figure out what as if not I need to change the formatting of all the text files we got...

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #3 on: April 02, 2009, 02:10:06 am »
I guess its just impatience but presuming all bebot versions are affected it would be nice to know if its possible to do workaround or if we need to wait for Funcom (and report it to them) to make this issue go away. Temar, Alreadythere? pleeeease :) ::)

Offline Rekkx

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #4 on: April 02, 2009, 01:18:13 pm »
I noticed this also.

For my scripts, I included something like:

Code: [Select]
."\n &nbsp; \n".
to get my line break.... dirty hack, but works for now.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #5 on: April 02, 2009, 05:35:02 pm »
What's the actual problem? Are only line-breaks read from file no longer working correctly, while \n as well as <br> do still work correctly? Or is only <br> still working?

On a side note, FC usually doesn't announce changes to the chat server.

Offline Rekkx

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #6 on: April 02, 2009, 06:21:23 pm »
The problem is lying with multiple <br> or \n tags together not creating the extra line.

<br><br> or \n\n do not line feed and then line feed again right now.

The non breaking space between the <br> or \n however works at the present time.

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #7 on: April 02, 2009, 08:22:32 pm »
As Rekkx says, multiple \n and <br> tags create only one line break even if there are two or more. In addition any module reading .txt files (like the guides module) that normally read this files and require neither <br> nor \p tags gets output as one big chunk of text...

If you need any more info let us know, happy to test and get this resolved somehow as it destroy layout of tons of output.
 

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #8 on: April 04, 2009, 06:56:46 pm »
Code: [Select]
."\n &nbsp; \n".
Does this work? Putting a &nbsp; before every \n and <br> would be pretty easy to accomplish. And it shouldn't influence the look of the output in any noticeable way.

Offline Solldara

  • BeBot Rookie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #9 on: April 05, 2009, 09:28:17 am »
Mine are mushed too :(

Which bearing in mind that we use over 60 guides and use the guides to do the updated raid lists (7 per week) this is a real pain.

A manual solution is to put <BR> at the end of each text line, as others have already said <BR><BR> does not work so at the moment I've simply used a full stop as text ie

fvujfvfvjufv<BR>
.<BR>
fhjfhfuffgfg<BR>

which displays correctly.

Incidently the guides list which lists all the text files with links has also got the same problem - which again can be solved atm by using the <BR> fix.

It would be really nice to know if this will resolve itself or whether I will have to manually update all the guides - pasting <BR> doesn't take too long for 1 guide - but for 60....... :( 

Offline Organizer

  • BeBot Apprentice
  • ***
  • Posts: 135
  • Karma: +0/-0
Re: AoC bot issue with parsing text after Funcom patch 1.04.6
« Reply #10 on: April 06, 2009, 03:19:22 pm »
Code: [Select]
."\n &nbsp; \n".
Does this work? Putting a &nbsp; before every \n and <br> would be pretty easy to accomplish. And it shouldn't influence the look of the output in any noticeable way.

Unless I'm crazy, could happen, <br>&nbsp;<br> and likely \n &nbsp; \n should work indeed (edited first response)
« Last Edit: April 06, 2009, 03:30:49 pm by Organizer »

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 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: 78
  • 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