Active Member lime 247 Posted September 29, 2021 Active Member Share Posted September 29, 2021 (edited) Hi! So I've been trying to fetch data from locale and use it, depending on the gender of the character, in changing the alignment of the player. Here's my code But it shows like this... and i don't know why... What am I missing? How do I Get the String from Locale? #ifdef ENABLE_GENDER_ALIGNMENT typedef std::map<const char*, const char*> TTitleNameList; static const TTitleNameList titleNameList{ {"PVP_LEVEL0_M", "PVP_LEVEL0_F"}, {"PVP_LEVEL1_M", "PVP_LEVEL1_F"}, {"PVP_LEVEL2_M", "PVP_LEVEL2_F"}, {"PVP_LEVEL3_M", "PVP_LEVEL3_F"}, {"PVP_LEVEL4_M", "PVP_LEVEL4_F"}, {"PVP_LEVEL5_M", "PVP_LEVEL5_F"}, {"PVP_LEVEL6_M", "PVP_LEVEL6_F"}, {"PVP_LEVEL7_M", "PVP_LEVEL7_F"}, {"PVP_LEVEL8_M", "PVP_LEVEL8_F"} }; #else static const std::array<const char*, 9> titleNameList{ "PVP_LEVEL0", "PVP_LEVEL1", "PVP_LEVEL2", "PVP_LEVEL3", "PVP_LEVEL4", "PVP_LEVEL5", "PVP_LEVEL6", "PVP_LEVEL7", "PVP_LEVEL8"}; #endif Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Nitro Booster Jxxkub 56 Posted September 29, 2021 Nitro Booster Share Posted September 29, 2021 (edited) Never mind, didnt read the post correctly -.- If you want a little hint, vegas did a similar system if you wanna know how he did it This is the hidden content, please Sign In or Sign Up Edited September 29, 2021 by Jxxkub bb 9 1 4 1 Link to comment Share on other sites More sharing options...
Active Member lime 247 Posted September 29, 2021 Author Active Member Share Posted September 29, 2021 (edited) I have it, doesn't work either I'll recheck, but it doesn't work localeInfo.py The problem that I have is that the texts from localegame.txt aren't loading. I think everything is added correctly. It just keeps getting the text from source/**.h file. Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Active Member lime 247 Posted September 30, 2021 Author Active Member Share Posted September 30, 2021 (edited) LATER EDIT I have deleted the old system and added @ VegaS™ system from your git link. All i can say is this: I don't understand. What am I missing? No errors at all. Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now