halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Russian text in nickname

Open ghost opened this issue 13 years ago • 16 comments

First of all, thank you very much for your work. The Update is awesome. I use Counter-Strike 1.6 beta. With this beta I'm able to use russian symbols in the console and chat. But when I'm trying to use cyrillic symbols in my nickname, it doesn't work. For example. I type in the console: name "Русский Текст" and it changes to "empty"

Also, cyrillic doesn't work if a server is outdated (or non-steam, maybe). Is there any way to fix it?

ghost avatar Feb 15 '13 15:02 ghost

For the outdate server problem, it is actually more likely that the server has plugins they need to fix/upgrade that is corrupting your text, I am sure those developers are working hard on updates. I'll investigate UTF8 support for player names, I am not sure what state that is meant to be in.

alfred-valve avatar Feb 15 '13 16:02 alfred-valve

alfred, I creating listenserver and view my console log: ] maxplayers 11 ] map de_dust2 NET Ports: server 27015, client 27005 Server IP address 192.168.1.2:27015 Server: Size of custom.hpk > 0.001000 MB, deleting.  BUILD 5956 SERVER (0 CRC) Server # 1 Server: Size of custom.hpk > 0.001000 MB, deleting. ex_interp forced up to 10 Player connected Connection to Steam servers successful. Player is joining the Counter-Terrorist force Scoring will not start until both teams have players VAC secure mode is activated. ] name "Игрок"

  • Player changed name to unnamed unnamed : рфырфый unnamed : ыфл ыфыфбю unnamed :

unnamed :

] ё (Counter-Terrorist) unnamed : ячфыаь ыа (Counter-Terrorist) unnamed :

unnamed : Игрок unnamed :

] version Exe version 1.1.2.7/Stdio (cstrike) Exe build: 15:00:41 Feb 13 2013 (5956) ]

too server problem? ,-)

DENYAdolphin avatar Feb 16 '13 00:02 DENYAdolphin

I think the idea is not very good, all have become accustomed. It was necessary to make Russian nicknames when was the first release of the game, but not now. An example of this CS:S and CS:GO.

sweetru avatar Feb 16 '13 08:02 sweetru

The idea is supportive. Being able to use unicode text should be done.

di57inct avatar Feb 16 '13 08:02 di57inct

Not fixed, I can't use cyrillic in "Name" input, if I set name "Тест" in the console, my name changes to "unnamed"

] version 
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 15:28:40 Feb 26 2013 (5969)

ghost avatar Feb 28 '13 08:02 ghost

Can you post the output of typing that name command and then "setinfo" please, it sounds to me like you don't have the beta update.

alfred-valve avatar Feb 28 '13 17:02 alfred-valve

Also note that you need to test using a listen server, as a dedicated server using assorted AMX plugins may also cause a problem with this command.

alfred-valve avatar Feb 28 '13 17:02 alfred-valve

Just tried using cyrillic name on listen server, and it worked fine. However, you can't input anything cyrillic in "player name" under options, so that has to be fixed.

xPaw avatar Feb 28 '13 17:02 xPaw

I confirm it works on listenserver. But there's still a few bugs with it:

  • I can't use cyrillic symbols in Options->Multiplayer->Playername input box
  • I can't use cyrillic and non-cyrillic symbols at once if I use a name command without quote marks (see next)
  • I can't set my nickname using name command if I use it without quote marks, like name Тест instead of name "Тест"
  • I don't see cyrillic output from chat in console, dup: https://github.com/ValveSoftware/halflife/issues/239

console output:

] name Тест
"name" is "maxkorz"
] name "Тест"
] name
"name" is "Тест"
] name ТестTest
] name
"name" is "Test"
] name "ТестTest"
] name
"name" is "ТестTest"
] name "Тест"
] name "Тест1"
* maxkorz changed name to 
*  changed name to Test
* Test changed name to Test
* Test changed name to 
*  changed name to 1

ghost avatar Feb 28 '13 18:02 ghost

I'll look at fixing the options dialog and look at the behavior as your name changes, thanks for the details.

alfred-valve avatar Feb 28 '13 18:02 alfred-valve

It seems like even clean server doesn't support unicode names:

217.0 fps  1/21 on           de_dust2
Console initialized.
Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 10:33:29 Feb 21 2013 (5964)
STEAM Auth Server
Server IP address 95.28.230.171:27016
Server logging data to file logs\L0228001.log
L 02/28/2013 - 22:25:34: Log file started (file "logs\L0228001.log") (game "cstrike") (version "48/1.1.2.7/5964")
L 02/28/2013 - 22:25:34: Server cvar "mp_logdetail" = "3"
couldn't exec listip.cfg
couldn't exec banned.cfg
Connection to Steam servers successful.
   VAC secure mode is activated.
L 02/28/2013 - 22:25:42: "Test<1><STEAM_0:1:29437217><>" connected, address "95.28.230.171:27005"
L 02/28/2013 - 22:25:42: World triggered "Round_Start"
L 02/28/2013 - 22:25:43: "Test<1><STEAM_0:1:29437217><>" STEAM USERID validated
L 02/28/2013 - 22:25:50: "Test<1><STEAM_0:1:29437217><>" entered the game
L 02/28/2013 - 22:25:51: "Test<1><STEAM_0:1:29437217><>" joined team "CT"
L 02/28/2013 - 22:25:55: "Test<1><STEAM_0:1:29437217><CT>" changed name to "unnamed"
L 02/28/2013 - 22:26:06: "unnamed<1><STEAM_0:1:29437217><CT>" changed name to "1"
L 02/28/2013 - 22:26:13: "1<1><STEAM_0:1:29437217><CT>" disconnected
Dropped 1 from server
Reason:  Client sent 'drop'

client console:

] connect 95.28.230.171:27016
Connecting to 95.28.230.171:27016...
Connecting to 95.28.230.171:27016...
Connection accepted by 95.28.230.171:27016

BUILD 5964 SERVER (0 CRC)
Server # 1
Serverinfo packet received.
Clearing memory
Remote host:  Counter-Strike 1.6 Server
Spooling demo header.
"sv_cheats" changed to "0"
Verifying and downloading resources...
Using WAD File: halflife.wad
Using WAD File: decals.wad
Texture load:   64.0ms
Setting up renderer...
SKY:  cityrt, citybk, citylf, cityft, cityup, citydn, done
CL_SignonReply: 1
122.4 megabyte data cache
CL_SignonReply: 2
Test connected
Test is joining the Counter-Terrorist force
Scoring will not start until both teams have players
] name "Тест"
* Test changed name to unnamed
] name "Тест1"
* unnamed changed name to 1
] name "Тест1"
] disconnect

ghost avatar Feb 28 '13 18:02 ghost

@MaxKorz , name changes are limited when playing on a CS server (once per round and not when you are dead) so make sure you aren't hitting those limits.

alfred-valve avatar Feb 28 '13 18:02 alfred-valve

Yeah. I am absolutely sure I'm not hitting those limits. Another test. I change my name before I connect to my server.

] name "ТестTest"
] setinfo
_cl_autowepswitch   0
bottomcolor         6
cl_dlmax            512
cl_lc               1
cl_lw               1
cl_updaterate       102
topcolor            30
_vgui_menus         1
_ah                 0
_gm                 9763
_uc                 b0a5
_ae                 b0a5
_lg                 b0a5
_js                 b0a5
translit            0
rate                100000
model               gordon
name                ТестTest
Connecting to 95.28.230.171:27016...
Connection accepted by 95.28.230.171:27016

BUILD 5964 SERVER (0 CRC)
Server # 1
Serverinfo packet received.
Clearing memory
Remote host:  Counter-Strike 1.6 Server
Spooling demo header.
Verifying and downloading resources...
Using WAD File: halflife.wad
Using WAD File: decals.wad
Texture load:    8.7ms
Setting up renderer...
SKY:  desrt, desbk, deslf, desft, desup, desdn, done
CL_SignonReply: 1
122.4 megabyte data cache
CL_SignonReply: 2
Test connected
Test is joining the Counter-Terrorist force
Scoring will not start until both teams have players

Server console:

239.7 fps  1/21 on           de_dust2
Console initialized.
Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 10:33:29 Feb 21 2013 (5964)
STEAM Auth Server
Server IP address 95.28.230.171:27016
Server logging data to file logs\L0228003.log
L 02/28/2013 - 22:31:30: Log file started (file "logs\L0228003.log") (game "cstrike") (version "48/1.1.2.7/5964")
L 02/28/2013 - 22:31:30: Server cvar "mp_logdetail" = "3"
couldn't exec listip.cfg
couldn't exec banned.cfg
   VAC secure mode disabled.
L 02/28/2013 - 22:31:36: "╨в╨╡╤Б╤ВTest<1><STEAM_ID_LAN><>" connected, address "95.28.230.171:27005"
L 02/28/2013 - 22:31:38: World triggered "Round_Start"
L 02/28/2013 - 22:31:40: "Test<1><STEAM_ID_LAN><>" entered the game
L 02/28/2013 - 22:31:41: "Test<1><STEAM_ID_LAN><>" joined team "CT"
L 02/28/2013 - 22:33:09: "Test<1><STEAM_ID_LAN><CT>" disconnected
L 02/28/2013 - 22:33:09: World triggered "Round_Draw" (CT "0") (T "0")
L 02/28/2013 - 22:33:09: World triggered "Round_End"
Dropped Test from server
Reason:  Client sent 'drop'

It looks like the server cuts off unfamiliar symbols and sends new nickname to client

ghost avatar Feb 28 '13 18:02 ghost

] name maxkorz
] setinfo
_cl_autowepswitch   0
bottomcolor         6
cl_dlmax            512
cl_lc               1
cl_lw               1
cl_updaterate       102
model               gordon
topcolor            30
_vgui_menus         1
_ah                 0
_gm                 9763
_uc                 b0a5
_ae                 b0a5
_lg                 b0a5
_js                 b0a5
translit            0
rate                100000
name                maxkorz
] connect 95.28.230.171:27016
Connecting to 95.28.230.171:27016...
Connection accepted by 95.28.230.171:27016

BUILD 5956 SERVER (0 CRC)
Server # 1
Serverinfo packet received.
Clearing memory
Remote host:  Counter-Strike 1.6 Server
Spooling demo header.
Verifying and downloading resources...
Using WAD File: halflife.wad
Using WAD File: decals.wad
Using WAD File: cs_dust.wad
Texture load:    7.1ms
Setting up renderer...
SKY:  desrt, desbk, deslf, desft, desup, desdn, done
Compressed !MD5d04f9179ed0e37128715cb3230d78612 for transmission (6296 -> 1618)
CL_SignonReply: 1
121.6 megabyte data cache
CL_SignonReply: 2
maxkorz connected
maxkorz is joining the Counter-Terrorist force
Scoring will not start until both teams have players
] name "ТестTestТест"
] name
"name" is "ТестTestТест"
] setinfo
_cl_autowepswitch   0
bottomcolor         6
cl_dlmax            512
cl_lc               1
cl_lw               1
cl_updaterate       102
model               gordon
topcolor            30
_vgui_menus         1
_ah                 0
_gm                 9763
_uc                 b0a5
_ae                 b0a5
_lg                 b0a5
_js                 b0a5
translit            0
rate                100000
name                ТестTestТест
* maxkorz changed name to Test
] name "РусскийТекст"
* Test changed name to unnamed
] setinfo
_cl_autowepswitch   0
bottomcolor         6
cl_dlmax            512
cl_lc               1
cl_lw               1
cl_updaterate       102
model               gordon
topcolor            30
_vgui_menus         1
_ah                 0
_gm                 9763
_uc                 b0a5
_ae                 b0a5
_lg                 b0a5
_js                 b0a5
translit            0
rate                100000
name                РусскийТекст

screens:

server:

242.6 fps  0/21 on         de_dust2
Console initialized.
Protocol version 48
Exe version 1.1.2.7 (cstrike)
Exe build: 14:59:51 Feb 13 2013 (5956)
STEAM Auth Server
Server logging data to file logs\L0228002.log
L 02/28/2013 - 23:01:23: Log file started (file "logs\L0228002.log") (game "cstrike") (version "48/1.1.2.7/5956")
Server IP address 95.28.230.171:27016
L 02/28/2013 - 23:01:23: Loading map "de_dust2"
couldn't exec listip.cfg
couldn't exec banned.cfg
Connection to Steam servers successful.
   VAC secure mode is activated.
L 02/28/2013 - 23:01:31: World triggered "Round_Start"
L 02/28/2013 - 23:01:41: "maxkorz<1><STEAM_0:1:29437217><>" connected, address "95.28.230.171:27005"
L 02/28/2013 - 23:01:42: "maxkorz<1><STEAM_0:1:29437217><>" STEAM USERID validated
ERROR: couldn't open custom.hpk.
L 02/28/2013 - 23:01:43: "maxkorz<1><STEAM_0:1:29437217><>" entered the game
L 02/28/2013 - 23:01:44: "maxkorz<1><STEAM_0:1:29437217><>" joined team "CT"
L 02/28/2013 - 23:01:53: "maxkorz<1><STEAM_0:1:29437217><CT>" changed name to "Test"
L 02/28/2013 - 23:02:21: "Test<1><STEAM_0:1:29437217><CT>" changed name to "unnamed"
L 02/28/2013 - 23:03:44: "unnamed<1><STEAM_0:1:29437217><CT>" disconnected
L 02/28/2013 - 23:03:44: World triggered "Round_Draw" (CT "0") (T "0")
L 02/28/2013 - 23:03:44: World triggered "Round_End"
Dropped unnamed from server
Reason:  Client sent 'drop'

ghost avatar Feb 28 '13 19:02 ghost

Okay, entry into the console and options dialog will work with the next release. The dedicated server drop needs to update also to support this new data format. Yes, the scoreboard supports full unicode.

alfred-valve avatar Feb 28 '13 22:02 alfred-valve

The update today fixes this, but the server you connect to will also need to be updated to accept the change. I will be releasing an updated dedicated server beta soon, but it could take time for dedicated server operators to update.

alfred-valve avatar Mar 01 '13 01:03 alfred-valve