Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 02:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



FONT ID Entry Problem in Dos Version Coding

Discussion on FONT ID Entry Problem in Dos Version Coding within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
RHNbaskan's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 161
Received Thanks: 16
FONT ID Entry Problem in Dos Version Coding

FONT ID Entry Problem in Dos Version Coding

Hello friends, in the DOS and NXT versions,

In the Server and Client source codes:

In the Login ID and Player ID sections,

The foreign character "Asian Languages" is CN-KR.
The system does not recognize letters and languages.
I'm looking for a solution to this issue.


[IMG=expandable: 1][/IMG]

Server source
MyWork_02.cpp verisinde



STATIC_API BOOL IsSpecialCharacter(char str)
{
const char* t = "!#$%&'*+-/=?^_`{|}~@.";
int t_len = (int)strlen(t);

for (int j = 0; j < t_len; j++)
{
if (str == t[j])
return TRUE;
}
return FALSE;
}

STATIC_API BOOL CheckEmailAndPWString(char* tString)
{
if (!tString || tString[0] == '\0')
return FALSE;

int len = (int)strlen(tString);

// --- Yeni Eklendi: UTF-8 -> UTF-16 dönüştürme (Çin karakterlerini kontrol için) ---
int wlen = MultiByteToWideChar(CP_UTF8, 0, tString, len, NULL, 0);
if (wlen <= 0)
return FALSE;

std::wstring wideStr(wlen, L'\0');
MultiByteToWideChar(CP_UTF8, 0, tString, len, &wideStr[0], wlen);

for (wchar_t ch : wideStr)
{
// Latin harfler ve rakamlar (orijinal mantık)
if ((ch >= L'0' && ch <= L'9') || (ch >= L'A' && ch <= L'Z') || (ch >= L'a' && ch <= L'z'))
continue;

// Özel karakterler
if (IsSpecialCharacter((char)ch))
continue;

// --- Yeni Eklendi: Çin karakter aralıkları ---
if ((ch >= 0x4E00 && ch <= 0x9FFF) || // Temel CJK
(ch >= 0x3400 && ch <= 0x4DBF) || // CJK Genişletilmiş A
(ch >= 0xF900 && ch <= 0xFAFF)) // CJK Uyumluluk
continue;

return FALSE; // izin verilmeyen karakter
}
return TRUE;
}


1- If we changed the structure within this type of coding =

Would the game coding allow CN-based Account and ID registration with this intervention by the server?

2- In the traditional DB database setup; we use UTF8 and Unicode when adding tables.

Should UTF-16 */ General_unicode_ci be used for such radical characters and records?

What should be considered when setting the Character Table for countries with mixed alphabets like CN?

In the client player section, the Chinese IMG was added within the DAT, IMG, and G01.

These only ensure that the player in the game sees the game as CN and can write CN characters in the game.

We are analyzing why there is no CN character support in the game's ID and Player Account ID setup.

#define BEGIN_CL(x) void W_##x( MyUser* tUserInfo ) { CL_##x* r = (CL_##x*)&tUserInfo->mBUFFER_FOR_RECV[0];
#define END_CL() }

// Türkçe: E-posta ve şifre özel karakter kontrolü
// 中文: 邮件和密码特殊字符检查
STATIC_API BOOL IsSpecialCharacter(char str)
{
const char* t = "!#$%&'*+-/=?^_`{|}~@.";
int t_len = strlen(t);

for (int j = 0; j < t_len; j++)
{
if (str == t[j])
return TRUE;
}
return FALSE;
}

// Türkçe: E-posta ve şifre formatı kontrolü (TR, EN, CN destekli)
// 中文: 邮箱和密码格式检查 (支持 TR、EN、CN)
STATIC_API BOOL CheckEmailAndPWString(char* tString)
{
if (!tString || tString[0] == '\0')
return FALSE;

int len = (int)strlen(tString);
for (int index01 = 0; index01 < len; index01++)
{
unsigned char tUnicode = (unsigned char)tString[index01];

// 0-9
if ((tUnicode >= '0') && (tUnicode <= '9'))
continue;
// A-Z
if ((tUnicode >= 'A') && (tUnicode <= 'Z'))
continue;
// a-z
if ((tUnicode >= 'a') && (tUnicode <= 'z'))
continue;

// TR karakterleri (UTF-8 üstü)
// Çince karakterler dahil (>=0x80)
if (tUnicode >= 0x80)
continue;

// Özel karakter kontrolü
if (IsSpecialCharacter((char)tUnicode))
continue;

return FALSE; // Geçersiz karakter bulundu
}
return TRUE;
}


With this kind of coding, will the character problem be solved? Any guesses, guys?
RHNbaskan is offline  
Old 08/04/2025, 08:45   #2
 
elite*gold: 0
Join Date: Jun 2023
Posts: 15
Received Thanks: 7
jrex6266 is offline  
Old 08/04/2025, 13:46   #3
 
RHNbaskan's Avatar
 
elite*gold: 0
Join Date: May 2016
Posts: 161
Received Thanks: 16
You see it as a font error.

I'm looking for this kind of fine detail in the SQL system with FONT and Player ID to reach potential players in the 1.4 billion Chinese, over 100 million Korean, and other Asian countries.

There's no problem with the standard coding in Unicode + EN.

When you register for the game in your country's language, and integrate the database and subsystems with your country's language pack, your player will adapt to the game faster.

My opinion is long-term development.
RHNbaskan is offline  
Old 10/22/2025, 08:37   #4
 
elite*gold: 0
Join Date: Oct 2025
Posts: 1
Received Thanks: 0
If you need to solve the ID problem, you need to provide the source code for adaptation
444202344 is offline  
Reply


Similar Threads Similar Threads
[FONT="Arial Black"][Wichtig] Habe ein problem mit meinen server[/FONT]
03/29/2010 - Metin2 Private Server - 0 Replies
HI ich hab vor kurzem meine npc bearbeitet item_prote+mob_proto auf deutsch geadownloadet und jetzt sind alle meine npcs am wandern hab auch versucht move speed auf 0 gestellt klappt trotzdem nicht könnt ihr mir pls schnell helfen
[FONT="Arial Black"][Wichtig] Habe ein problem mit meinen hamachi server[/FONT]
03/27/2010 - Metin2 Private Server - 9 Replies
Hi gestern hab ich mein server gestartet und da kam connection refused dann hab ich den fehler behoben und alles ind der db repariert und heute startet er nach na zeit steht da conection refused und so weiter der server bleibt nur 2 min on
[FONT="Comic Sans MS"][/FONT][FONT="Comic Sans MS"][/FONT] lvl 73 körper kriger
03/13/2010 - Metin2 Trading - 2 Replies
hallo leute wollte euch mal begrüßen und hallo sagen ich bin zur vernumpft gekommen ich vk hir mein lvl 73 kriger char (w) skills aura m10 sw m7 kr m4 sausen m5 eq kann cih ingame zeigen oder ihr glaubt einfach ;)
Changing in-game font/font size
09/30/2006 - Conquer Online 2 - 6 Replies
Can anyone kind link me to how to do that please, my eyes are killing me :bandit:



All times are GMT +1. The time now is 02:32.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.