Limmek / MStats-for-rust

Logs player statistics and other server stuff to MySql
https://buymeacoffee.com/Limmek
5 stars 3 forks source link

player_name not displayed #15

Closed logistic94 closed 2 years ago

logistic94 commented 2 years ago

If player in they steam profile have unique id in personal link, player_name not displayed -Default steam profle link teamcommunity.com/profiles/000000000000000000 -With id https://steamcommunity.com/id/sometext/

logistic94 commented 2 years ago

I think its not problem with steam link, i test and player name display only in eng, in ukr or russian not display

Limmek commented 2 years ago

The problem is in EncodeNonAsciiCharacters The function only works for english characters and replace all other with an empty one. It is following the ISO-8859-1 standard. The function should probably be replaced to support non english standard characters like ukr, ru, chinese and so on or just remove it completely.

You could try to remove the encoding then it should work. Just replace all EncodeNonAsciiCharacters(player.displayName) with player.displayName EncodeNonAsciiCharacters(((BasePlayer)entity).displayName) with ((BasePlayer)entity).displayName EncodeNonAsciiCharacters(((BasePlayer)player).displayName) with ((BasePlayer)player).displayName

logistic94 commented 2 years ago

I research all day and do this 10 min ago :D Thnx anyway