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)Multilanguage (Russian) message into in-game chat
Pages: [1]   Go Down
  Print  
Author Topic: Multilanguage (Russian) message into in-game chat  (Read 2904 times) Bookmark and Share
Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4,CoD5
Posts: 2
Offline Offline
« on: February 25, 2010, 05:16:07 AM »

Hi,
I can't do what B3 send message with Cyrillics symbols into ingame chat.
part of plugin_admin.xml
Code:
<?xml version="1.0" encoding="cp1251" ?>
<configuration plugin="admin">
<settings name="commands">
<set name="enable">100</set>
............
<settings name="messages">
<set name="ban_denied">^7Hey %s^7, you're no Elvis, can't ban %s</set>
<set name="help_available">^7Available ?????????commands: %s</set>
also i test with <?xml version="1.0" encoding="utf-8" ?>
If i type in game chat !help then is no any meesage and write in log
Code:
100225 15:26:23 CONSOLE 252:52 say;5f15d3a7610d0f2db794c1f6ac83ced7;3;Nachkar;!help
100225 15:26:23 VERBOSE Queueing event Say !help
100225 15:26:23 VERBOSE Parsing Event: Say: CensorPlugin
100225 15:26:23 VERBOSE Parsing Event: Say: SpamcontrolPlugin
100225 15:26:23 VERBOSE Parsing Event: Say: AdminPlugin
100225 15:26:23 DEBUG AdminPlugin: OnSay handle 5:"!help"
100225 15:26:23 DEBUG AdminPlugin: Handle command !help
100225 15:26:23 VERBOSE RCON sending (127.0.0.1:28961) tell 3 ^0(^2b3^0)^7: ^3[pm]^7 ^7^7Available ? ?‘? ?•????????????“? ?—? ?…?????? ?µcommands: admins, admintest, aliases,
100225 15:26:23 ERROR RCON: ERROR sending: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
100225 15:26:23 VERBOSE RCON: retry sending tell 3 ^0(^2b3^0)^7: ^3[pm]^7 ^7^7Available ? ?‘? ?•????????????“? ?—? ?…?????? ?µcommands: admins, admintest, aliases,...
100225 15:26:23 ERROR RCON: ERROR sending: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
100225 15:26:23 DEBUG RCON: Did not send any data
100225 15:26:24 VERBOSE RCON sending (127.0.0.1:28961) tell 3 ^0(^2b3^0)^7: ^3[pm]^7 ^3>b3, ban, banall, baninfo, ci, clear, find, greeting, help, kick,
100225 15:26:24 ERROR RCON: ERROR sending: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
100225 15:26:24 VERBOSE RCON: retry sending tell 3 ^0(^2b3^0)^7: ^3[pm]^7 ^3>b3, ban, banall, baninfo, ci, clear, find, greeting, help, kick,...
100225 15:26:24 ERROR RCON: ERROR sending: 'ascii' codec can't decode byt
........
Please HELP.
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: February 25, 2010, 05:25:49 AM »

if you want to use Cyrillic characters in a xml config file, you should specify a charset that supports such characters on the fisrt line.

In the following snippet, notice how the xml file is declared to use the UTF-8 charset (which support Cyrillic)
You also have to make sure you are using a text editor which is able to detect and write proper UTF-8 (I suggest you use notepad++ with its xml plugin)
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration plugin="admin">
<settings name="commands">
<set name="enable">100</set>
............
<settings name="messages">
<set name="ban_denied">^7Hey %s^7, you're no Elvis, can't ban %s</set>
<set name="help_available">^7Available ?????????commands: %s</set>

More info on xml files : http://en.wikipedia.org/wiki/XML

Having a config file with the proper encoding/charset is the first step. Once you got that, will see how it goes with the bot. (There are not many users that reported using Cyrillic charset yet and we lack experience on that matter)
Logged

Newbie
*
OS: Windows
Type: Owner dedicated server(s)
Gameservers: CoD4,CoD5
Posts: 2
Offline Offline
« Reply #2 on: February 25, 2010, 09:37:54 AM »

ok.
I want use b3 with my COD4 server's
I use notepad++ and all xml files is UTF-8 Charset.
The first line plugin_admin.xml is <?xml version="1.0" encoding="UTF-8"?>
But....
Code:
....
100225 18:22:44 CONSOLE 429:19 say;4bd67ac5656a436c5392801dba6bb115;4;T-1000;!help
100225 18:22:44 VERBOSE Queueing event Say !help
100225 18:22:44 VERBOSE Parsing Event: Say: AdminPlugin
100225 18:22:44 DEBUG AdminPlugin: OnSay handle 5:"!help"
100225 18:22:44 DEBUG AdminPlugin: Handle command !help
100225 18:22:44 VERBOSE RCON sending (127.0.0.1:28961) tell 4 ^0(^2b3^0)^7: ^3[pm]^7 ^7^7Available ?????????commands: admins, admintest, aliases, b3,
100225 18:22:44 ERROR RCON: ERROR sending: 'ascii' codec can't decode byte 0xff in position 0: ordinal not in range(128)
.....
IF i don't type cyrillics symbols in game chat then b3.log is UTF-8, but if type cyrillics symbols then b3.log is ANSI encoding. And also that ingame cyrillics message is ANSI, but b3 cyrillics message is UTF-8 encoding into b3.log
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3347
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: February 25, 2010, 11:03:33 AM »

can you give a try to the following charsets ?

iso-8859-5 : ISO Latin/Cyrillic
Code:
<?xml version="1.0" encoding="iso-8859-5"?>

cp1251 (or Windows-1251) : Windows-specific Cyrillic charset
Code:
<?xml version="1.0" encoding="windows-1251"?>

cp866 : DOS-specific Cyrillic charset
Code:
<?xml version="1.0" encoding="cp866"?>

ISO-IR-111 : ECMA Cyrillic
Code:
<?xml version="1.0" encoding="ISO-IR-111"?>
« Last Edit: February 25, 2010, 11:05:29 AM by Courgette » Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal