This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] 1.12.1 and names of characters in cyrillic  (Read 665 times)

PRoToRiaN

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 1
    • View Profile
[QUESTION] 1.12.1 and names of characters in cyrillic
« on: July 18, 2015, 07:28:19 pm »
Hi guys! Please excuse me, for my google-translate language  :)

I'm trying to make so, that the players, playing in Vanilla, have the opportunity to create characters with russian names.
After a series of tests with the core server, i came to the conclusion, that not only server check the names, it also makes the client. I'm trying to encode Win-1251 in UTF-8. It was useless. Apparently, the check, located inside the client, rejects absolutely all the symbols, that go beyond the basic latin.
By my calculations, name checking happens between

Code: [Select]
function CharacterCreate_Okay()
PlaySound("gsCharacterCreationCreateChar");
CreateCharacter(CharacterCreateNameEdit:GetText());
end

And

Code: [Select]
void WorldSession::HandleCharCreateOpcode(WorldPacket& recv_data)
{
std::string name;
recv_data >> name;

~
~
~
}

But where, how and what are the conditions of this check.. I can't imagine.
I think, that in this situation, need to dig into the main executable WoW.exe.

Unfortunately, I hardly know this area, and therefore ask something to help me in this matter.
Or maybe I'm wrong and the problem is elsewhere.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »