LCKB
Read special characters - 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: Read special characters (/showthread.php?tid=4794)



- kranzo - 07-09-2021


Hey guys, how to make the engine to read special characters like: " Çç^^~~´´`` " ?

 

Thanks for helping!




- Scura - 07-09-2021



5 hours ago, kranzo said:




Hey guys, how to make the engine to read special characters like: " Çç^^~~´´`` " ?



 



Thanks for helping!




Custom title from crean should allow it already! (strongly un-suggested, many crash by it)




- rondo157 - 07-09-2021


compile the client by gerlive and add tex with symbols 




- Desarija - 07-12-2021


i dont remember who posted this, so can't give credits, but if you want to compile for usa and still use characters like ç, ä, ö, ü, ß etc, you can do the following:

 

1. you must add german font in your local folder to your wanted font

2. in source client engine  engine/interface/UItexturemanager.cpp line 103

 

replace USA code by your german code (but dont remove "case USA:")

 

case USA:
        {
            m_nLanguage = FONT_GERMAN;

            for( iTex = 0; iTex < TEXCT_FONT_GERMAN; iTex++ )
            {
                strFileName.PrintF( "FontGerman%d.tex", iTex );
                strFullPath = strDirectory + strFileName;
                m_aptdFont[iTex] = _pTextureStock->Obtain_t( strFullPath );
            }

            m_nFontTextureCount = TEXCT_FONT_GERMAN;
            m_nFontSpacing = 0;
            m_nLineSpacing = 2;
        }
        break;

3. engine/interface/UiEditBox.cpp line 819 & 1515 add || g_iCountry == USA to the list to enable 2 byte characters (ß, ä, ö, ü etc)

4. line 1190 
void CUIEditBox:Big GrineleteChar( int nDeletePos )
{
    // If current character is 2 byte character
//    if(Is2ByteChar(nDeletePos))
    // connie [2009/9/11] - 

there u need add && (g_iCountry != USA) too then is this fixed with delete