Active Member ReFresh 2340 Posted March 4, 2018 Active Member Share Posted March 4, 2018 Hey guys, can someone tell me how can I put mapname text. Thanks for answers! Sincerely, ReFresh --------- 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 } 1 1 I'll be always helpful! Link to comment Share on other sites More sharing options...
Tasho 243 Posted March 4, 2018 Share Posted March 4, 2018 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 } 1 2 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41918 Posted February 16, 2023 Honorable Member Share Posted February 16, 2023 (edited) 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. @ ASIKOOthis topic can be moved to releases Edited February 16, 2023 by Mali 1 Link to comment Share on other sites More sharing options...
Recommended Posts