In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGeneral Usage Support (Moderator: MordyT)Support for special characters?
Pages: [1]   Go Down
  Print  
Author Topic: Support for special characters?  (Read 301 times) Bookmark and Share
Full Member
***
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD5, CoD6
Posts: 85
Offline Offline
WWW
« on: July 23, 2010, 03:07:51 AM »

Hi there!

I have a CODwaw server that's been running for soon to be 4 weeks now with b3, and i have to say i love b3.

Now then, i've got alot of people coming and going on my server, and i've added alot of rules in different languages with the apropriate commands.

French rules, german rules, polish rules etc etc. The bad thing is that these languages often use special characters and b3 doesn't like that. Special characters like Â, ò, é and so on.

One sample line from our german rules = Kein laufen, außer man steht unter Beschuss
oder flieht vor Granaten!

And by inserting that into the plugin_admin.xml file gives me the following error.

Code:
100723 12:55:27 BOT    Connected to database [1 times]
100723 12:55:27 BOT    Game log C:\Program Files (x86)\Activision\Call of Duty - World at War\main\games_mp.log
100723 12:55:27 BOT    Starting bot reading file C:\Program Files (x86)\Activision\Call of Duty - World at War\main\games_mp.log
100723 12:55:27 BOT    Loading Plugins (external plugin directory: C:\Program Files (x86)\b3\b3\extplugins)
100723 12:55:27 BOT    Loading Plugin #1 admin [@conf\plugin_admin.xml]
100723 12:55:27 BOT    AdminPlugin: Loading config @conf\plugin_admin.xml for AdminPlugin
100723 12:55:27 CRITICAL AdminPlugin: The config file XML syntax is broken: 'not well-formed (invalid token): line 172, column 46'
Traceback (most recent call last):
  File "C:\Program Files (x86)\b3\b3\plugin.py", line 53, in __init__
    self.loadConfig(config)
  File "C:\Program Files (x86)\b3\b3\plugin.py", line 97, in loadConfig
    self.config = b3.config.load(fileName)
  File "C:\Program Files (x86)\b3\b3\config.py", line 271, in load
    if config.load(fileName):
  File "C:\Program Files (x86)\b3\b3\config.py", line 180, in load
    self.readfp(f)
  File "C:\Program Files (x86)\b3\b3\config.py", line 75, in readfp
    raise ConfigFileNotValid("%s" % e)
ConfigFileNotValid: 'not well-formed (invalid token): line 172, column 46'
100723 12:55:27 INFO STDOUT 220
100723 12:55:27 INFO STDOUT

Line 172 looks like this

Code:
<set name="ruleger2">^1#2: ^2Kein laufen, außer man steht unter Beschuss oder flieht vor Granaten!</set>

On another note, i also get this at the start of the log when starting up my b3 bot.

Code:
100723 12:55:26 ERROR STDERR C:\Program Files (x86)\Python 2.6.5\lib\site-packages\MySQLdb\__init__.py:34: DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet

I get this error no even if the rest of the bot works or not. So for now i haven't really bothered trying to fix it, as it works, and i don't want to fix something that isn't broken  Tongue

We've also got russian rules, but with a-z letters as the game doesn't seem to want to support the special characters of the russian alphabet. And if i should try to copy paste a russian line into the game, it just gives me question marks along the whole line.

Anyway, primarily wondering how one could support special characters like that in the xml files so that commands like "rulesger" works without the b3 bot crashing upon startup.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: July 23, 2010, 03:32:37 AM »

See this discussion: http://www.bigbrotherbot.net/forums/general-usage-support/spams-in-multiple-languages/

It's related to your question.
Logged

Full Member
***
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD5, CoD6
Posts: 85
Offline Offline
WWW
« Reply #2 on: August 22, 2010, 03:57:40 AM »

I've read and re-read the post and forum for clues. Googled and had alot of trial and error and i'm tired of trying.

Thank you for trying to put me in the right direction Smiley
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal