Jump to content
  • 0

How can I edit rank names from PythonPlayerSettingsModule?


lime

Question

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

0uTX0Gl.png 

But it shows like this... and i don't know why... 

lD6ISDj.png

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 by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I have it, doesn't work either 😕 
I'll recheck, but it doesn't work 

7Oodbu2.png

localeInfo.py

XTHe1GE.png

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 by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 0

LATER EDIT

I have deleted the old system and added @ VegaS™ system from your git link. 
All i can say is this: 4PPYAte.png
I don't understand. What am I missing? No errors at all.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.