LCKB
November files RUSLIVE - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193)
+---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157)
+----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128)
+----- Thread: November files RUSLIVE (/showthread.php?tid=4850)



- General - 01-13-2022


Hi

I got a problem while compiling the client. which I didn't have in June Source.

When choosing the RUSLIVE option, the client continues to use the paths, fonts and prefixes of the US client.

I noticed a difference in the source code.

For example, November Source

else
{
if (g_iCountry == RUSSIA)
nBoxWidth = pDraw->GetTextWidth(_pNetwork->MyCharacterInfo.name) + 27;
else
nBoxWidth = _pNetwork->MyCharacterInfo.name.Length() * nFontWidth + 27;
}

June Source

//if(g_iCountry == RUSSIA)
#if defined G_RUSSIA
nBoxWidth = pDraw->GetTextWidth(_pNetwork->MyCharacterInfo.name) + 27;
//else

November Source

if (g_iCountry == RUSSIA)
{
g_bDrawportRus = true;
}
else
{
g_bDrawportRus = false;
}

if (g_bDrawportRus == true)
{
_pfdDefaultFont->Clear();
FONT_STOCK_RELEASE(_pfdDefaultFont);
}

June Source

 

ifdef G_RUSSIA
_pfdDefaultFont->Clear();
FONT_STOCK_RELEASE(_pfdDefaultFont);
#endif // G_RUSSIA

 

How to remake the client for the Russian version?

Where in the code is g_country == RUSSIA? Why is it equal to 0 in Engine.cpp?

//ѕИЕВИЖ јцБ¤ іЎ //(5th Closed beta)(0.1)
//ѕИЕВИЖ јцБ¤ ЅГАЫ //(Taiwan Closed beta)(0.2)
ENGINE_API INDEX g_iCountry = 0; //0 : Korea
INDEX g_iEnterChat = 1;
INDEX g_iShowName = 0;
INDEX g_iShowNameItem = 1;

Such forced changes obviously lead to a crash

 

TString DefHelp::getNationPostfix( int nNation, bool bFolder )
{
CTString strRet;

if (bFolder == false)
strRet = "_";
nNation = RUSSIA; // added
switch (nNation)
{
case KOREA: strRet += "kr"; break;
case GERMANY: strRet += "de"; break;
case SPAIN: strRet += "es"; break;
case FRANCE: strRet += "fr"; break;
case ITALY: strRet += "it"; break;
case POLAND: strRet += "pl"; break;
case ENGLAND: strRet += "uk"; break;
case USA: strRet += "us"; break;

case BRAZIL: strRet += "br"; break;
case MEXICO: strRet += "mx"; break;

case RUSSIA: strRet += "ru"; break;

case THAILAND: strRet += "th"; break;
default:
break;
}

 




- MiniPig - 12-27-2024


+1




- JLT - 12-31-2024


Changing the COUNTRY does not affect the language of the game, you just need to remove the COUNTRY check at the entrance so that the game server and the login server give authorization, and change ps.dat to Russia in the client