Jump to content

Map name on atlas


Recommended Posts

  • Active Member

Hey guys,

can someone tell me how can I put mapname text.

Thanks for answers!

Sincerely,

ReFresh

---------

.png

 

Already YMIR did that just for codePage (locale.cfg) as 949 < locale/ymir.

  • ../root/uiMiniMap.py
     
# Search for:
	def SetMapName(self, mapName):
		if 949==app.GetDefaultCodePage():
			try:
				self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT[mapName])
			except:
				pass
# Replace with:
	def SetMapName(self, mapName):
		self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT.get(mapName, uiScriptLocale.ZONE_MAP))

If you want to add more maps there exist a dictionary MINIMAP_ZONE_NAME_DICT on localeInfo,the key should be name of map (atlasInfo.txt) and value is your map name.

MINIMAP_ZONE_NAME_DICT = \
{
	"metin2_map_n_flame_dragon"  : MAP_FLAME_DUNGEON, # ..locale/en/locale_game.txt
}
  • Good 1
  • Love 1

I'll be always helpful! 👊 

Link to comment
Share on other sites

Already YMIR did that just for codePage (locale.cfg) as 949 < locale/ymir.

  • ../root/uiMiniMap.py
     
# Search for:
	def SetMapName(self, mapName):
		if 949==app.GetDefaultCodePage():
			try:
				self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT[mapName])
			except:
				pass
# Replace with:
	def SetMapName(self, mapName):
		self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT.get(mapName, uiScriptLocale.ZONE_MAP))

If you want to add more maps there exist a dictionary MINIMAP_ZONE_NAME_DICT on localeInfo,the key should be name of map (atlasInfo.txt) and value is your map name.

MINIMAP_ZONE_NAME_DICT = \
{
	"metin2_map_n_flame_dragon"  : MAP_FLAME_DUNGEON, # ..locale/en/locale_game.txt
}
  • Good 1
  • Love 2
Link to comment
Share on other sites

  • 4 years later...
  • Honorable Member
On 3/4/2018 at 10:09 PM, Tasho said:

Already YMIR did that just for codePage (locale.cfg) as 949 < locale/ymir.

  • ../root/uiMiniMap.py
# Search for:
	def SetMapName(self, mapName):
		if 949==app.GetDefaultCodePage():
			try:
				self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT[mapName])
			except:
				pass
# Replace with:
	def SetMapName(self, mapName):
		self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT.get(mapName, uiScriptLocale.ZONE_MAP))

If you want to add more maps there exist a dictionary MINIMAP_ZONE_NAME_DICT on localeInfo,the key should be name of map (atlasInfo.txt) and value is your map name.

MINIMAP_ZONE_NAME_DICT = \
{
	"metin2_map_n_flame_dragon"  : MAP_FLAME_DUNGEON, # ..locale/en/locale_game.txt
}

 

After 2020, official game uses it.

.png

@ ASIKOOthis topic can be moved to releases

Edited by Mali
  • Good 1

 

Link to comment
Share on other sites

Announcements



×
×
  • 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.