Silver Sonitex 1438 Posted December 3, 2020 Silver Share Posted December 3, 2020 (edited) M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) I would not recommend using this as it's missing many features, head over to Mali's release for an updated version. This is the hidden content, please Sign In or Sign Up Edited April 21, 2023 by Sonitex Added very very very important topic warning. 232 3 2 4 4 2 2 3 6 8 2 93 10 256 Link to comment Share on other sites More sharing options...
Flourine 106 Posted December 3, 2020 Share Posted December 3, 2020 Noice 1 Link to comment Share on other sites More sharing options...
Kafa 153 Posted December 3, 2020 Share Posted December 3, 2020 Waited for this release, thanks bro. Really great job and thanks for always helping me 1 Link to comment Share on other sites More sharing options...
Calliope 1 Posted December 4, 2020 Share Posted December 4, 2020 You should update the download. The function: GetFormatSpecifierType on clientside is missing 1 Link to comment Share on other sites More sharing options...
Silver Sonitex 1438 Posted December 5, 2020 Author Silver Share Posted December 5, 2020 10 hours ago, Calliope said: You should update the download. The function: GetFormatSpecifierType on clientside is missing Done. Sorry for the inconvenience. 1 Link to comment Share on other sites More sharing options...
Active Member Helia01 2130 Posted December 5, 2020 Active Member Share Posted December 5, 2020 not bad :) Link to comment Share on other sites More sharing options...
newreboot 0 Posted December 6, 2020 Share Posted December 6, 2020 (edited) Please can u explain how to use it? I already compiled the source, and added the locale_string on client, But nothing changed. still reading from my locale_string on serverside... Edited December 6, 2020 by newreboot Link to comment Share on other sites More sharing options...
Silver Sonitex 1438 Posted December 6, 2020 Author Silver Share Posted December 6, 2020 6 hours ago, newreboot said: Please can u explain how to use it? I already compiled the source, and added the locale_string on client, But nothing changed. still reading from my locale_string on serverside... You need to use LocaleChatPacket instead of ChatPacket. Link to comment Share on other sites More sharing options...
newreboot 0 Posted December 6, 2020 Share Posted December 6, 2020 (edited) pkChar->LocaleChatPacket(CHAT_TYPE_INFO, "%d %s %s", m_vec_quiz[i][j].level, m_vec_quiz[i][j].Quiz, m_vec_quiz[i][j].answer ? LC_TEXT("Âü") : LC_TEXT("°ÅÁþ")); } } pkChar->LocaleChatPacket(CHAT_TYPE_INFO, LC_TEXT("ÃÑ ÄûÁî ¼ö: %d"), c); well i changed the ChatPacket to LocaleChatPacket and give me error on copilation. The error: Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Silver Sonitex 1438 Posted December 6, 2020 Author Silver Share Posted December 6, 2020 (edited) Yeah because you have to pass index of the string as an argument. In your case, the bottom part of your code should look like this: pkChar->ChatPacket(CHAT_TYPE_INFO, 880, LC_TEXT("Total number of the Quiz: %d"), c); Or: pkChar->ChatPacket(CHAT_TYPE_INFO, 880, "Total number of the Quiz: %d", c); Also, this does not support quiz strings. Those are stored in a separate file called locale_quiz.txt and additional changes are needed for it to be usable. This release only supports strings that are inside locale_string text files. Edited December 6, 2020 by Sonitex Link to comment Share on other sites More sharing options...
Management AZICKO 7340 Posted December 7, 2020 Management Share Posted December 7, 2020 #Updated Archive 1 Scamming ? Reselling ? metin2.download | metin2.dev | fr.metin2.dev | metin2dev.org | metin2.top | top-metin2.org Link to comment Share on other sites More sharing options...
DrTurk 133 Posted December 17, 2020 Share Posted December 17, 2020 @Sonitex How do you declare from which locale_string.txt it should load the information? My locale_string.txt is located in /locale/de 1217 19:56:49074 :: CPythonLocaleString::FindLocaleString: cannot find "1"; Link to comment Share on other sites More sharing options...
Silver Sonitex 1438 Posted December 17, 2020 Author Silver Share Posted December 17, 2020 5 minutes ago, DrTurk said: @Sonitex How do you declare from which locale_string.txt it should load the information? My locale_string.txt is located in /locale/de 1217 19:56:49074 :: CPythonLocaleString::FindLocaleString: cannot find "1"; It should be automatically loaded from an active locale path 1 Link to comment Share on other sites More sharing options...
DrTurk 133 Posted December 17, 2020 Share Posted December 17, 2020 Everything works fine, just forget to load the locale_string in PythonApplication.cpp 1 Link to comment Share on other sites More sharing options...
Premium DemOnJR 564 Posted December 31, 2020 Premium Share Posted December 31, 2020 On 12/3/2020 at 11:51 AM, Sonitex said: M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) Hidden Content Metin2 general format specifiers have been added such as %d, %u, %s, %lu, %lld and %f. If you wish to add others, edit the table. Flags, precision and width parameters have not been implemented because they weren't really used besides floating numbers which are always set to 2 decimals places precision. You can also use this as a template for quest strings, which have been moved to client side on official servers. Chat function takes 3 main arguments: You can modify it's structure to your likings. You can use the default structure which takes chat type and string as arguments and find index of the string in the function it self. Without string index, client will not be able to find the right string. Without string, server will not be able to find format specifiers and pull arguments to send them to client. Chat type, String index, String. thanks but can you make an example about how to use this? for the new people. 1 1 Link to comment Share on other sites More sharing options...
Kafa 153 Posted December 31, 2020 Share Posted December 31, 2020 3 hours ago, DemOnJR said: thanks but can you make an example about how to use this? for the new people. Bro read the posts he made a example.. Link to comment Share on other sites More sharing options...
Silver Sonitex 1438 Posted December 31, 2020 Author Silver Share Posted December 31, 2020 4 hours ago, DemOnJR said: thanks but can you make an example about how to use this? for the new people. I have added usage example in the main post 1 Link to comment Share on other sites More sharing options...
Premium DemOnJR 564 Posted December 31, 2020 Premium Share Posted December 31, 2020 8 hours ago, Sonitex said: I have added usage example in the main post thanks Link to comment Share on other sites More sharing options...
numNum 37 Posted December 31, 2020 Share Posted December 31, 2020 Thanks, very useful system Link to comment Share on other sites More sharing options...
Kafa 153 Posted December 31, 2020 Share Posted December 31, 2020 (edited) I made my strings like numbers some weeks ago, wish there would be a tool to make my ChatPacket(CHAT_TYPE_INFO, LC_TEXT(''1111'')); into your Format Edited December 31, 2020 by Kafa Link to comment Share on other sites More sharing options...
LeMo 2 Posted January 31, 2021 Share Posted January 31, 2021 (edited) ChatPacket(CHAT_TYPE_INFO,LC_TEXT ("You can't drop this item because is binded!")); in that one i did that for test it from locale ChatPacket(CHAT_TYPE_INFO, 22219, "dd"); but i got error so how i can do it for that to make it call from locale i fixed this error i was must use LocaleChatPacket new error CPythonLocaleString::FindLocaleString: cannot find "22219"; and i have 22219 in my srting Edited January 31, 2021 by LeMo Link to comment Share on other sites More sharing options...
Kafa 153 Posted January 31, 2021 Share Posted January 31, 2021 I tested it and it works perfect. Link to comment Share on other sites More sharing options...
LeMo 2 Posted January 31, 2021 Share Posted January 31, 2021 (edited) 4 minutes ago, Kafa said: I tested it and it works perfect. i know its work fine from server side but i do not know why cant load from client and everything is good Edited January 31, 2021 by LeMo Link to comment Share on other sites More sharing options...
Honorable Member Mali 41810 Posted February 6, 2021 Honorable Member Share Posted February 6, 2021 You could expand the topic for locale_quest.txt and locale_quiz.txt keep it up, nice work 1 2 Link to comment Share on other sites More sharing options...
Kafa 153 Posted February 6, 2021 Share Posted February 6, 2021 2 hours ago, Mali61 said: You could expand the topic for locale_quest.txt and locale_quiz.txt keep it up, nice work As far as i remember, at the time when he released this topic those things were not there Link to comment Share on other sites More sharing options...
Recommended Posts