Çözüldü Serverinfo.py Farklı Server İsimleri

  • Konuyu açan Konuyu açan DarkNight
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 15
  • Gösterim Gösterim 245
Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

DarkNight

Üye
Üye
Mesaj
162
Çözümler
8
Beğeni
36
Puan
454
Ticaret Puanı
0
Serverinfo.py'e farklı server isimleri de ekleyip aynı ip üzerinde oyunu çalıştırıyorum ancak örnek verecek olursam Alesta seçince alesta gözüküyor harita altında ama Tuva, Tramola vs. seçince yine Alesta gözüküyor. Benim istediğim hangi sunucu seçilirse o sunucunun ismi harita altında gözüksün. Nasıl yapabilirim?
 
Çözüm
uiminimap.py def update altında girilen server den değil de hep server 1 den alınacak şekilde bir satır vardı onu getserverinfo olara değiştirdik olay düzeldi. kolay gelsin.

@okan4141 dediğin gibi yapmışlarda update altında gidip manuel çekilmiş. orayı düzeltince olay çözüldü.
Serverinfo.py'e farklı server isimleri de ekleyip aynı ip üzerinde oyunu çalıştırıyorum ancak örnek verecek olursam Alesta seçince alesta gözüküyor harita altında ama Tuva, Tramola vs. seçince yine Alesta gözüküyor. Benim istediğim hangi sunucu seçilirse o sunucunun ismi harita altında gözüksün. Nasıl yapabilirim?
serverinfo yetmez bunun için, bir kaç ayarlama yapmak gerek
 
Serverinfo.pyni at bakalım.
Python:
Genişlet Daralt Kopyala
SERVER_1 = "|cffffcc00 Alesta" #
SERVER_2 = "|cffffcc00 Tramola" #
SERVER_3 = "|cffffcc00 Tuva" #
SERVER_4 = "|cffffcc00 Yakamoz" #
SERVER_5 = "|cffffcc00 Manas" #
SERVER_6 = "|cffffcc00 Samarra" #
SERVER_7 = "|cffffcc00 Artemis" #
SERVER_8 = "|cffffcc00 Kilikya" #
SERVER_9 = "|cffffcc00 Pitaya" #
SERVER_10 = "|cffffcc00 Asena" #
SERVER_11 = "|cffffcc00 Vilusa" #
SERVER_12 = "|cffffcc00 Grifon" #
SERVER_13 = "|cffffcc00 Ergenekon" #
SERVER_14 = "|cffffcc00 Anatolia" #
SERVER_15 = "|cffffcc00 Turkuaz" #
SERVER_16 = "|cffffcc00 Agamemnon" #
SERVER_17 = "|cffffcc00 Yeniceri" #
SERVER_18 = "|cffffcc00 Malazgirt" #
SERVER_19 = "|cffffcc00 Efes" #
SERVER_20 = "|cffffcc00 Ayasofya" #
SERVER_21 = "|cffffcc00 Istiklal" #
SERVER_22 = "|cffffcc00 Osmanli" #
SERVER_23 = "|cffffcc00 Anubis" #
SERVER_24 = "|cffffcc00 Rumeli" #
SERVER_25 = "|cffffcc00 Estergon" #
SERVER_26 = "|cffffcc00 Altay" #
SERVER_27 = "|cffffcc00 Yoruk" #
SERVER_28 = "|cffffcc00 Kaos" #
SERVER_29 = "|cffffcc00 Aspendos" #
SERVER_30 = "|cffffcc00 Odin" #
#############################
# Server Detaylarý Kýsmý 1 #
# TurkMMO - yt2official #
##########################################################################
# SERVER_IP1 = "192.168.1.100"# Lütfen Alesta Sunucusu için IP Giriniz... #
SERVER_IP1 = "193.17.4.170"# Lütfen Alesta Sunucusu için IP Giriniz... #
##########################################################################
##########################################################################
SERVER_IP2 = "193.17.4.170"# Lütfen Tramola Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP3 = "193.17.4.170"# Lütfen Tuva Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP4 = "193.17.4.170"# Lütfen Yakamoz Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP5 = "193.17.4.170"# Lütfen Manas Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP6 = "193.17.4.170"# Lütfen Samarra Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP7 = "193.17.4.170"# Lütfen Artemis Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP8 = "193.17.4.170"# Lütfen Kilikya Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP9 = "193.17.4.170"# Lütfen Pitaya Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP10 = "193.17.4.170"# Lütfen Asena Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP11 = "193.17.4.170"# Lütfen Vilusa Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP12 = "193.17.4.170"# Lütfen Grifon Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP13 = "193.17.4.170"# Lütfen Ergenekon Sunucusu için IP Giriniz. #
##########################################################################
SERVER_IP14 = "193.17.4.170"# Lütfen Anatolia Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP15 = "193.17.4.170"# Lütfen Turkuaz Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP16 = "193.17.4.170"# Lütfen Agamemnon Sunucusu için IP Giriniz. #
##########################################################################
SERVER_IP17 = "193.17.4.170"# Lütfen Yeniceri Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP18 = "193.17.4.170"# Lütfen Malazgirt Sunucusu için IP Giriniz..#
##########################################################################
SERVER_IP19 = "193.17.4.170"# Lütfen Efes Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP20 = "193.17.4.170"# Lütfen Ayasofya Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP21 = "193.17.4.170"# Lütfen Istiklal Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP22 = "193.17.4.170"# Lütfen Osmanli Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP23 = "193.17.4.170"# Lütfen Anubis Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP24 = "193.17.4.170"# Lütfen Rumeli Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP25 = "193.17.4.170"# Lütfen Estergon Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP26 = "193.17.4.170"# Lütfen Altay Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP27 = "193.17.4.170"# Lütfen Yoruk Sunucusu için IP Giriniz... #
##########################################################################
SERVER_IP28 = "193.17.4.170"# Lütfen Kaos Sunucusu için IP Giriniz.... #
##########################################################################
SERVER_IP29 = "193.17.4.170"# Lütfen Aspendos Sunucusu için IP Giriniz.. #
##########################################################################
SERVER_IP30 = "193.17.4.170"# Lütfen Odin Sunucusu için IP Giriniz... #
##########################################################################

####################
# Ayarlar Bölümü 1 #
###############################
CH_1_NAME = "|cff00FF7FCH 1"#
CH_2_NAME = "|cff00FF7FCH 2"#
CH_3_NAME = "|cff00FF7FCH 3"#
CH_4_NAME = "|cff00FF7FCH 4"#
CH_1 = 12002############
CH_2 = 12102#
CH_3 = 12202#
CH_4 = 12302#
AUTH = 11002#
MARKADDR = 12002#
####################

###########################
# Durum Bölümü 1 #
# #
STATE_NONE = "|cFFFFF8DC ... " #
 #
STATE_DICT = { #
 0 : "|cffff00ff....", #
 1 : "|cff8B8B83 NORM", #
 2 : "|cffFFC125 BUSY", #
 3 : "|cff00FF7F FULL" #
} #
###########################

SERVER01_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP1,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP1,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP1,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP1,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER02_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP2,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP2,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP2,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP2,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER03_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP3,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP3,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP3,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP3,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER04_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP4,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP4,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP4,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP4,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER05_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP5,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP5,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP5,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP5,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER06_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP6,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP6,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP6,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP6,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER07_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP7,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP7,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP7,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP7,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER08_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP8,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP8,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP8,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP8,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER09_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP9,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP9,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP9,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP9,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER10_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP10,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP10,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP10,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP10,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER11_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP11,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP11,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP11,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP11,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER12_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP12,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP12,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP12,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP12,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER13_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP13,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP13,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP13,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP13,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER14_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP14,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP14,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP14,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP14,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER15_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP15,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP15,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP15,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP15,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER16_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP16,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP16,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP16,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP16,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER17_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP17,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP17,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP17,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP17,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER18_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP18,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP18,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP18,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP18,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER19_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP19,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP19,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP19,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP19,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER20_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP20,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP20,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP20,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP20,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER21_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP21,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP21,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP21,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP21,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER22_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP22,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP22,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP22,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP22,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER23_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP23,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP23,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP23,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP23,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER24_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP24,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP24,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP24,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP24,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER25_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP25,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP25,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP25,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP25,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER26_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP26,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP26,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP26,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP26,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER27_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP27,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP27,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP27,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP27,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER28_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP28,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP28,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP28,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP28,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER29_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP29,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP29,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP29,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP29,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

SERVER30_CHANNEL_DICT = {
 1:{"key":11,"name":CH_1_NAME,"ip":SERVER_IP30,"tcp_port":CH_1,"udp_port":CH_1,"state":STATE_NONE,},
 2:{"key":12,"name":CH_2_NAME,"ip":SERVER_IP30,"tcp_port":CH_2,"udp_port":CH_2,"state":STATE_NONE,},
 3:{"key":13,"name":CH_3_NAME,"ip":SERVER_IP30,"tcp_port":CH_3,"udp_port":CH_3,"state":STATE_NONE,},
 4:{"key":14,"name":CH_4_NAME,"ip":SERVER_IP30,"tcp_port":CH_4,"udp_port":CH_4,"state":STATE_NONE,},

}

REGION_NAME_DICT = {
 0 : "",
}

REGION_AUTH_SERVER_DICT = {
 0 : {
 1 : { "ip":SERVER_IP1, "port":AUTH, },
 2 : { "ip":SERVER_IP2, "port":AUTH, },
 3 : { "ip":SERVER_IP3, "port":AUTH, },
 4 : { "ip":SERVER_IP4, "port":AUTH, },
 5 : { "ip":SERVER_IP5, "port":AUTH, },
 6 : { "ip":SERVER_IP6, "port":AUTH, },
 7 : { "ip":SERVER_IP7, "port":AUTH, },
 8 : { "ip":SERVER_IP8, "port":AUTH, },
 9 : { "ip":SERVER_IP9, "port":AUTH, },
 10 : { "ip":SERVER_IP10, "port":AUTH, },
 11 : { "ip":SERVER_IP11, "port":AUTH, },
 12 : { "ip":SERVER_IP12, "port":AUTH, },
 13 : { "ip":SERVER_IP13, "port":AUTH, },
 14 : { "ip":SERVER_IP14, "port":AUTH, },
 15 : { "ip":SERVER_IP15, "port":AUTH, },
 16 : { "ip":SERVER_IP16, "port":AUTH, },
 17 : { "ip":SERVER_IP17, "port":AUTH, },
 18 : { "ip":SERVER_IP18, "port":AUTH, },
 19 : { "ip":SERVER_IP19, "port":AUTH, },
 20 : { "ip":SERVER_IP20, "port":AUTH, },
 21 : { "ip":SERVER_IP21, "port":AUTH, },
 22 : { "ip":SERVER_IP22, "port":AUTH, },
 23 : { "ip":SERVER_IP23, "port":AUTH, },
 24 : { "ip":SERVER_IP24, "port":AUTH, },
 25 : { "ip":SERVER_IP25, "port":AUTH, },
 26 : { "ip":SERVER_IP26, "port":AUTH, },
 27 : { "ip":SERVER_IP27, "port":AUTH, },
 28 : { "ip":SERVER_IP28, "port":AUTH, },
 29 : { "ip":SERVER_IP29, "port":AUTH, },
 30 : { "ip":SERVER_IP30, "port":AUTH, },
 }
}

REGION_DICT = {
 0 : {
 1 : { "name" :SERVER_1, "channel" : SERVER01_CHANNEL_DICT, },
 2 : { "name" :SERVER_2, "channel" : SERVER02_CHANNEL_DICT, },
 3 : { "name" :SERVER_3, "channel" : SERVER03_CHANNEL_DICT, },
 4 : { "name" :SERVER_4, "channel" : SERVER04_CHANNEL_DICT, },
 5 : { "name" :SERVER_5, "channel" : SERVER05_CHANNEL_DICT, },
 6 : { "name" :SERVER_6, "channel" : SERVER06_CHANNEL_DICT, },
 7 : { "name" :SERVER_7, "channel" : SERVER07_CHANNEL_DICT, },
 8 : { "name" :SERVER_8, "channel" : SERVER08_CHANNEL_DICT, },
 9 : { "name" :SERVER_9, "channel" : SERVER09_CHANNEL_DICT, },
 10 : { "name" :SERVER_10, "channel" : SERVER10_CHANNEL_DICT, },
 11 : { "name" :SERVER_11, "channel" : SERVER11_CHANNEL_DICT, },
 12 : { "name" :SERVER_12, "channel" : SERVER12_CHANNEL_DICT, },
 13 : { "name" :SERVER_13, "channel" : SERVER13_CHANNEL_DICT, },
 14 : { "name" :SERVER_14, "channel" : SERVER14_CHANNEL_DICT, },
 15 : { "name" :SERVER_15, "channel" : SERVER15_CHANNEL_DICT, },
 16 : { "name" :SERVER_16, "channel" : SERVER16_CHANNEL_DICT, },
 17 : { "name" :SERVER_17, "channel" : SERVER17_CHANNEL_DICT, },
 18 : { "name" :SERVER_18, "channel" : SERVER18_CHANNEL_DICT, },
 19 : { "name" :SERVER_19, "channel" : SERVER19_CHANNEL_DICT, },
 20 : { "name" :SERVER_20, "channel" : SERVER20_CHANNEL_DICT, },
 21 : { "name" :SERVER_21, "channel" : SERVER21_CHANNEL_DICT, },
 22 : { "name" :SERVER_22, "channel" : SERVER22_CHANNEL_DICT, },
 23 : { "name" :SERVER_23, "channel" : SERVER23_CHANNEL_DICT, },
 24 : { "name" :SERVER_24, "channel" : SERVER24_CHANNEL_DICT, },
 25 : { "name" :SERVER_25, "channel" : SERVER25_CHANNEL_DICT, },
 26 : { "name" :SERVER_26, "channel" : SERVER26_CHANNEL_DICT, },
 27 : { "name" :SERVER_27, "channel" : SERVER27_CHANNEL_DICT, },
 28 : { "name" :SERVER_28, "channel" : SERVER28_CHANNEL_DICT, },
 29 : { "name" :SERVER_29, "channel" : SERVER29_CHANNEL_DICT, },
 30 : { "name" :SERVER_30, "channel" : SERVER30_CHANNEL_DICT, },
 },
}

MARKADDR_DICT = {
 10 : { "ip" : SERVER_IP1, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "10", },
 20 : { "ip" : SERVER_IP2, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "20", },
 30 : { "ip" : SERVER_IP3, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "30", },
 40 : { "ip" : SERVER_IP4, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "40", },
 50 : { "ip" : SERVER_IP5, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "50", },
 60 : { "ip" : SERVER_IP6, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "60", },
 70 : { "ip" : SERVER_IP7, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "70", },
 80 : { "ip" : SERVER_IP8, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "80", },
 90 : { "ip" : SERVER_IP9, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "90", },
 100 : { "ip" : SERVER_IP10, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "100", },
 110 : { "ip" : SERVER_IP11, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "110", },
 120 : { "ip" : SERVER_IP12, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "120", },
 130 : { "ip" : SERVER_IP13, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "130", },
 140 : { "ip" : SERVER_IP14, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "140", },
 150 : { "ip" : SERVER_IP15, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "150", },
 160 : { "ip" : SERVER_IP16, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "160", },
 170 : { "ip" : SERVER_IP17, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "170", },
 180 : { "ip" : SERVER_IP18, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "180", },
 190 : { "ip" : SERVER_IP19, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "190", },
 200 : { "ip" : SERVER_IP20, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "200", },
 210 : { "ip" : SERVER_IP21, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "210", },
 220 : { "ip" : SERVER_IP22, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "220", },
 230 : { "ip" : SERVER_IP23, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "230", },
 240 : { "ip" : SERVER_IP24, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "240", },
 250 : { "ip" : SERVER_IP25, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "250", },
 260 : { "ip" : SERVER_IP26, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "260", },
 270 : { "ip" : SERVER_IP27, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "270", },
 280 : { "ip" : SERVER_IP28, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "280", },
 290 : { "ip" : SERVER_IP29, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "290", },
 300 : { "ip" : SERVER_IP30, "tcp_port" : MARKADDR, "mark" : "10.tga", "symbol_path" : "300", },
}

bu şekilde
 
En son bir moderatör tarafından düzenlenmiş:
Serverinfo.py'e farklı server isimleri de ekleyip aynı ip üzerinde oyunu çalıştırıyorum ancak örnek verecek olursam Alesta seçince alesta gözüküyor harita altında ama Tuva, Tramola vs. seçince yine Alesta gözüküyor. Benim istediğim hangi sunucu seçilirse o sunucunun ismi harita altında gözüksün. Nasıl yapabilirim?
uiMinimap.py gir serverismini yazdıran ne ise oradan yola çık.
 
uiMinimap.py gir serverismini yazdıran ne ise oradan yola çık.
uiminimap:
Genişlet Daralt Kopyala
import ui
import uiScriptLocale
import wndMgr
import player
import miniMap
import localeInfo
import net
import app
import colorInfo
import constInfo
import background
import serverInfo

class MapTextToolTip(ui.Window):
    def __init__(self):           
        ui.Window.__init__(self)

        textLine = ui.TextLine()
        textLine.SetParent(self)
        textLine.SetHorizontalAlignCenter()
        textLine.SetOutline()
        textLine.SetHorizontalAlignRight()
        textLine.Show()
        self.textLine = textLine

    def __del__(self):           
        ui.Window.__del__(self)

    def SetText(self, text):
        self.textLine.SetText(text)

    def SetTooltipPosition(self, PosX, PosY):
        if localeInfo.IsARABIC():
            w, h = self.textLine.GetTextSize()
            self.textLine.SetPosition(PosX - w - 5, PosY)
        else:
            self.textLine.SetPosition(PosX - 5, PosY)

    def SetTextColor(self, TextColor):
        self.textLine.SetPackedFontColor(TextColor)

    def GetTextSize(self):
        return self.textLine.GetTextSize()

class AtlasWindow(ui.ScriptWindow):

    class AtlasRenderer(ui.Window):
        def __init__(self):
            ui.Window.__init__(self)
            self.AddFlag("not_pick")

        def OnUpdate(self):
            miniMap.UpdateAtlas()

        def OnRender(self):
            (x, y) = self.GetGlobalPosition()
            fx = float(x)
            fy = float(y)
            miniMap.RenderAtlas(fx, fy)

        def HideAtlas(self):
            miniMap.HideAtlas()

        def ShowAtlas(self):
            miniMap.ShowAtlas()

    def __init__(self):
        self.tooltipInfo = MapTextToolTip()
        self.tooltipInfo.Hide()
        self.infoGuildMark = ui.MarkBox()
        self.infoGuildMark.Hide()
        self.AtlasMainWindow = None
        self.mapName = ""
        self.board = 0

        ui.ScriptWindow.__init__(self)

    def __del__(self):
        ui.ScriptWindow.__del__(self)

    def SetMapName(self, mapName):
        if 949==app.GetDefaultCodePage():
            try:
                self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT[mapName])
            except:
                pass

    def LoadWindow(self):
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "UIScript/AtlasWindow.py")
        except:
            import exception
            exception.Abort("AtlasWindow.LoadWindow.LoadScript")

        try:
            self.board = self.GetChild("board")

        except:
            import exception
            exception.Abort("AtlasWindow.LoadWindow.BindObject")

        self.AtlasMainWindow = self.AtlasRenderer()
        self.board.SetCloseEvent(self.Hide)
        self.AtlasMainWindow.SetParent(self.board)
        self.AtlasMainWindow.SetPosition(7, 30)
        self.tooltipInfo.SetParent(self.board)
        self.infoGuildMark.SetParent(self.board)
        self.SetPosition(wndMgr.GetScreenWidth() - 136 - 256 - 10, 0)
        self.Hide()

        miniMap.RegisterAtlasWindow(self)

    def Destroy(self):
        miniMap.UnregisterAtlasWindow()
        self.ClearDictionary()
        self.AtlasMainWindow = None
        self.tooltipAtlasClose = 0
        self.tooltipInfo = None
        self.infoGuildMark = None
        self.board = None

    def OnUpdate(self):

        if not self.tooltipInfo:
            return

        if not self.infoGuildMark:
            return

        self.infoGuildMark.Hide()
        self.tooltipInfo.Hide()

        if False == self.board.IsIn():
            return

        (mouseX, mouseY) = wndMgr.GetMousePosition()
        (bFind, sName, iPosX, iPosY, dwTextColor, dwGuildID) = miniMap.GetAtlasInfo(mouseX, mouseY)

        if False == bFind:
            return

        if "empty_guild_area" == sName:
            sName = localeInfo.GUILD_EMPTY_AREA

        if localeInfo.IsARABIC() and sName[-1].isalnum():
            self.tooltipInfo.SetText("(%s)%d, %d" % (sName, iPosX, iPosY))                       
        else:
            self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))
            
        (x, y) = self.GetGlobalPosition()
        self.tooltipInfo.SetTooltipPosition(mouseX - x, mouseY - y)
        self.tooltipInfo.SetTextColor(dwTextColor)
        self.tooltipInfo.Show()
        self.tooltipInfo.SetTop()

        if 0 != dwGuildID:
            textWidth, textHeight = self.tooltipInfo.GetTextSize()
            self.infoGuildMark.SetIndex(dwGuildID)
            self.infoGuildMark.SetPosition(mouseX - x - textWidth - 18 - 5, mouseY - y)
            self.infoGuildMark.Show()

    def Hide(self):
        if self.AtlasMainWindow:
            self.AtlasMainWindow.HideAtlas()
            self.AtlasMainWindow.Hide()
        ui.ScriptWindow.Hide(self)

    def Show(self):
        if self.AtlasMainWindow:
            (bGet, iSizeX, iSizeY) = miniMap.GetAtlasSize()
            if bGet:
                self.SetSize(iSizeX + 15, iSizeY + 38)

                if localeInfo.IsARABIC():
                    self.board.SetPosition(iSizeX+15, 0)

                self.board.SetSize(iSizeX + 15, iSizeY + 38)
                #self.AtlasMainWindow.SetSize(iSizeX, iSizeY)
                self.AtlasMainWindow.ShowAtlas()
                self.AtlasMainWindow.Show()
        ui.ScriptWindow.Show(self)

    def SetCenterPositionAdjust(self, x, y):
        self.SetPosition((wndMgr.GetScreenWidth() - self.GetWidth()) / 2 + x, (wndMgr.GetScreenHeight() - self.GetHeight()) / 2 + y)

    def OnPressEscapeKey(self):
        self.Hide()
        return True

def __RegisterMiniMapColor(type, rgb):
    miniMap.RegisterColor(type, rgb[0], rgb[1], rgb[2])

class MiniMap(ui.ScriptWindow):

    CANNOT_SEE_INFO_MAP_DICT = {
        "metin2_map_monkeydungeon" : False,
        "metin2_map_monkeydungeon_02" : False,
        "metin2_map_monkeydungeon_03" : False,
        "metin2_map_devilsCatacomb" : False,
    }

    def __init__(self):
        ui.ScriptWindow.__init__(self)

        self.__Initialize()

        miniMap.Create()
        miniMap.SetScale(2.0)

        self.AtlasWindow = AtlasWindow()
        self.AtlasWindow.LoadWindow()
        self.AtlasWindow.Hide()

        self.tooltipMiniMapOpen = MapTextToolTip()
        self.tooltipMiniMapOpen.SetText(localeInfo.MINIMAP)
        self.tooltipMiniMapOpen.Show()
        self.tooltipMiniMapClose = MapTextToolTip()
        self.tooltipMiniMapClose.SetText(localeInfo.UI_CLOSE)
        self.tooltipMiniMapClose.Show()
        self.tooltipScaleUp = MapTextToolTip()
        self.tooltipScaleUp.SetText(localeInfo.MINIMAP_INC_SCALE)
        self.tooltipScaleUp.Show()
        self.tooltipScaleDown = MapTextToolTip()
        self.tooltipScaleDown.SetText(localeInfo.MINIMAP_DEC_SCALE)
        self.tooltipScaleDown.Show()
        self.tooltipAtlasOpen = MapTextToolTip()
        self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_SHOW_AREAMAP)
        self.tooltipAtlasOpen.Show()
        self.tooltipInfo = MapTextToolTip()
        self.tooltipInfo.Show()

        if miniMap.IsAtlas():
            self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_SHOW_AREAMAP)
        else:
            self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_CAN_NOT_SHOW_AREAMAP)

        self.tooltipInfo = MapTextToolTip()
        self.tooltipInfo.Show()

        self.mapName = ""

        self.isLoaded = 0
        self.canSeeInfo = True
        
        # AUTOBAN
        self.imprisonmentDuration = 0
        self.imprisonmentEndTime = 0
        self.imprisonmentEndTimeText = ""
        # END_OF_AUTOBAN

    def __del__(self):
        miniMap.Destroy()
        ui.ScriptWindow.__del__(self)

    def __Initialize(self):
        self.positionInfo = 0
        self.observerCount = 0

        self.OpenWindow = 0
        self.CloseWindow = 0
        self.ScaleUpButton = 0
        self.ScaleDownButton = 0
        self.MiniMapHideButton = 0
        self.MiniMapShowButton = 0
        self.AtlasShowButton = 0

        self.tooltipMiniMapOpen = 0
        self.tooltipMiniMapClose = 0
        self.tooltipScaleUp = 0
        self.tooltipScaleDown = 0
        self.tooltipAtlasOpen = 0
        self.tooltipInfo = None
        self.serverInfo = None

    def SetMapName(self, mapName):
        self.mapName=mapName
        self.AtlasWindow.SetMapName(mapName)

        if self.CANNOT_SEE_INFO_MAP_DICT.has_key(mapName):
            self.canSeeInfo = False
            self.HideMiniMap()
            self.tooltipMiniMapOpen.SetText(localeInfo.MINIMAP_CANNOT_SEE)
        else:
            self.canSeeInfo = True
            self.ShowMiniMap()
            self.tooltipMiniMapOpen.SetText(localeInfo.MINIMAP)
            
    # AUTOBAN
    def SetImprisonmentDuration(self, duration):
        self.imprisonmentDuration = duration
        self.imprisonmentEndTime = app.GetGlobalTimeStamp() + duration               
        
        self.__UpdateImprisonmentDurationText()
        
    def __UpdateImprisonmentDurationText(self):
        restTime = max(self.imprisonmentEndTime - app.GetGlobalTimeStamp(), 0)
        
        imprisonmentEndTimeText = localeInfo.SecondToDHM(restTime)
        if imprisonmentEndTimeText != self.imprisonmentEndTimeText:
            self.imprisonmentEndTimeText = imprisonmentEndTimeText
            self.serverInfo.SetText("%s: %s" % (uiScriptLocale.AUTOBAN_QUIZ_REST_TIME, self.imprisonmentEndTimeText))
    # END_OF_AUTOBAN   

    def Show(self):
        self.__LoadWindow()

        ui.ScriptWindow.Show(self)

    def __LoadWindow(self):
        if self.isLoaded == 1:
            return

        self.isLoaded = 1

        try:
            pyScrLoader = ui.PythonScriptLoader()
            if localeInfo.IsARABIC():
                pyScrLoader.LoadScriptFile(self, uiScriptLocale.LOCALE_UISCRIPT_PATH + "Minimap.py")
            else:
                pyScrLoader.LoadScriptFile(self, "UIScript/MiniMap.py")
        except:
            import exception
            exception.Abort("MiniMap.LoadWindow.LoadScript")

        try:
            self.OpenWindow = self.GetChild("OpenWindow")
            self.MiniMapWindow = self.GetChild("MiniMapWindow")
            self.ScaleUpButton = self.GetChild("ScaleUpButton")
            self.ScaleDownButton = self.GetChild("ScaleDownButton")
            self.MiniMapHideButton = self.GetChild("MiniMapHideButton")
            self.AtlasShowButton = self.GetChild("AtlasShowButton")
            self.CloseWindow = self.GetChild("CloseWindow")
            self.MiniMapShowButton = self.GetChild("MiniMapShowButton")
            self.positionInfo = self.GetChild("PositionInfo")
            self.observerCount = self.GetChild("ObserverCount")
            self.serverInfo = self.GetChild("ServerInfo")
            self.VSaat = self.GetChild("Vectors1")
            self.VTarih = self.GetChild("Vectors2")
        except:
            import exception
            exception.Abort("MiniMap.LoadWindow.Bind")

        if constInfo.MINIMAP_POSITIONINFO_ENABLE==0:
            self.positionInfo.Hide()

        self.serverInfo.SetText(net.GetServerInfo())
        self.ScaleUpButton.SetEvent(ui.__mem_func__(self.ScaleUp))
        self.ScaleDownButton.SetEvent(ui.__mem_func__(self.ScaleDown))
        self.MiniMapHideButton.SetEvent(ui.__mem_func__(self.HideMiniMap))
        self.MiniMapShowButton.SetEvent(ui.__mem_func__(self.ShowMiniMap))

        if miniMap.IsAtlas():
            self.AtlasShowButton.SetEvent(ui.__mem_func__(self.ShowAtlas))

        (ButtonPosX, ButtonPosY) = self.MiniMapShowButton.GetGlobalPosition()
        self.tooltipMiniMapOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.MiniMapHideButton.GetGlobalPosition()
        self.tooltipMiniMapClose.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.ScaleUpButton.GetGlobalPosition()
        self.tooltipScaleUp.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.ScaleDownButton.GetGlobalPosition()
        self.tooltipScaleDown.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.AtlasShowButton.GetGlobalPosition()
        self.tooltipAtlasOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)

        self.ShowMiniMap()

    def Destroy(self):
        self.HideMiniMap()

        self.AtlasWindow.Destroy()
        self.AtlasWindow = None

        self.ClearDictionary()

        self.__Initialize()

    def UpdateObserverCount(self, observerCount):
        if observerCount>0:
            self.observerCount.Show()
        elif observerCount<=0:
            self.observerCount.Hide()

        self.observerCount.SetText(localeInfo.MINIMAP_OBSERVER_COUNT % observerCount)
        
    def OnUpdate(self):
        (x, y, z) = player.GetMainCharacterPosition()
        miniMap.Update(x, y)

        self.positionInfo.SetText("(%.0f, %.0f)" % (x/100, y/100))
        
        serverName = serverInfo.SERVER_1
        self.serverInfo.SetText(str(serverName)+", CH"+str(constInfo.indexver))

        import time
        VectorsSaat = time.strftime("|cffffcc00%H:%M:%S")
        VectorsTarih = time.strftime("|cffffcc00%d.%m.%Y")
        self.VSaat.SetText(VectorsSaat)
        self.VTarih.SetText(VectorsTarih)

        if self.tooltipInfo:
            if True == self.MiniMapWindow.IsIn():
                (mouseX, mouseY) = wndMgr.GetMousePosition()
                (bFind, sName, iPosX, iPosY, dwTextColor) = miniMap.GetInfo(mouseX, mouseY)
                if bFind == 0:
                    self.tooltipInfo.Hide()
                elif not self.canSeeInfo:
                    self.tooltipInfo.SetText("%s(%s)" % (sName, localeInfo.UI_POS_UNKNOWN))
                    self.tooltipInfo.SetTooltipPosition(mouseX - 5, mouseY)
                    self.tooltipInfo.SetTextColor(dwTextColor)
                    self.tooltipInfo.Show()
                else:
                    if localeInfo.IsARABIC() and sName[-1].isalnum():
                        self.tooltipInfo.SetText("(%s)%d, %d" % (sName, iPosX, iPosY))
                    else:
                        self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))
                    self.tooltipInfo.SetTooltipPosition(mouseX - 5, mouseY)
                    self.tooltipInfo.SetTextColor(dwTextColor)
                    self.tooltipInfo.Show()
            else:
                self.tooltipInfo.Hide()
            
            # AUTOBAN
            if self.imprisonmentDuration:
                self.__UpdateImprisonmentDurationText()               
            # END_OF_AUTOBAN

        if True == self.MiniMapShowButton.IsIn():
            self.tooltipMiniMapOpen.Show()
        else:
            self.tooltipMiniMapOpen.Hide()

        if True == self.MiniMapHideButton.IsIn():
            self.tooltipMiniMapClose.Show()
        else:
            self.tooltipMiniMapClose.Hide()

        if True == self.ScaleUpButton.IsIn():
            self.tooltipScaleUp.Show()
        else:
            self.tooltipScaleUp.Hide()

        if True == self.ScaleDownButton.IsIn():
            self.tooltipScaleDown.Show()
        else:
            self.tooltipScaleDown.Hide()

        if True == self.AtlasShowButton.IsIn():
            self.tooltipAtlasOpen.Show()
        else:
            self.tooltipAtlasOpen.Hide()

    def OnRender(self):
        (x, y) = self.GetGlobalPosition()
        fx = float(x)
        fy = float(y)
        miniMap.Render(fx + 4.0, fy + 5.0)

    def Close(self):
        self.HideMiniMap()

    def HideMiniMap(self):
        miniMap.Hide()
        self.OpenWindow.Hide()
        self.CloseWindow.Show()

    def ShowMiniMap(self):
        if not self.canSeeInfo:
            return

        miniMap.Show()
        self.OpenWindow.Show()
        self.CloseWindow.Hide()

    def isShowMiniMap(self):
        return miniMap.isShow()

    def ScaleUp(self):
        miniMap.ScaleUp()

    def ScaleDown(self):
        miniMap.ScaleDown()

    def ShowAtlas(self):
        if not miniMap.IsAtlas():
            return
        if not self.AtlasWindow.IsShow():
            self.AtlasWindow.Show()

    def ToggleAtlasWindow(self):
        if not miniMap.IsAtlas():
            return
        if self.AtlasWindow.IsShow():
            self.AtlasWindow.Hide()
        else:
            self.AtlasWindow.Show()

size zahmet bi bakar mısınız
 
uiminimap:
Genişlet Daralt Kopyala
import ui
import uiScriptLocale
import wndMgr
import player
import miniMap
import localeInfo
import net
import app
import colorInfo
import constInfo
import background
import serverInfo

class MapTextToolTip(ui.Window):
    def __init__(self):          
        ui.Window.__init__(self)

        textLine = ui.TextLine()
        textLine.SetParent(self)
        textLine.SetHorizontalAlignCenter()
        textLine.SetOutline()
        textLine.SetHorizontalAlignRight()
        textLine.Show()
        self.textLine = textLine

    def __del__(self):          
        ui.Window.__del__(self)

    def SetText(self, text):
        self.textLine.SetText(text)

    def SetTooltipPosition(self, PosX, PosY):
        if localeInfo.IsARABIC():
            w, h = self.textLine.GetTextSize()
            self.textLine.SetPosition(PosX - w - 5, PosY)
        else:
            self.textLine.SetPosition(PosX - 5, PosY)

    def SetTextColor(self, TextColor):
        self.textLine.SetPackedFontColor(TextColor)

    def GetTextSize(self):
        return self.textLine.GetTextSize()

class AtlasWindow(ui.ScriptWindow):

    class AtlasRenderer(ui.Window):
        def __init__(self):
            ui.Window.__init__(self)
            self.AddFlag("not_pick")

        def OnUpdate(self):
            miniMap.UpdateAtlas()

        def OnRender(self):
            (x, y) = self.GetGlobalPosition()
            fx = float(x)
            fy = float(y)
            miniMap.RenderAtlas(fx, fy)

        def HideAtlas(self):
            miniMap.HideAtlas()

        def ShowAtlas(self):
            miniMap.ShowAtlas()

    def __init__(self):
        self.tooltipInfo = MapTextToolTip()
        self.tooltipInfo.Hide()
        self.infoGuildMark = ui.MarkBox()
        self.infoGuildMark.Hide()
        self.AtlasMainWindow = None
        self.mapName = ""
        self.board = 0

        ui.ScriptWindow.__init__(self)

    def __del__(self):
        ui.ScriptWindow.__del__(self)

    def SetMapName(self, mapName):
        if 949==app.GetDefaultCodePage():
            try:
                self.board.SetTitleName(localeInfo.MINIMAP_ZONE_NAME_DICT[mapName])
            except:
                pass

    def LoadWindow(self):
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "UIScript/AtlasWindow.py")
        except:
            import exception
            exception.Abort("AtlasWindow.LoadWindow.LoadScript")

        try:
            self.board = self.GetChild("board")

        except:
            import exception
            exception.Abort("AtlasWindow.LoadWindow.BindObject")

        self.AtlasMainWindow = self.AtlasRenderer()
        self.board.SetCloseEvent(self.Hide)
        self.AtlasMainWindow.SetParent(self.board)
        self.AtlasMainWindow.SetPosition(7, 30)
        self.tooltipInfo.SetParent(self.board)
        self.infoGuildMark.SetParent(self.board)
        self.SetPosition(wndMgr.GetScreenWidth() - 136 - 256 - 10, 0)
        self.Hide()

        miniMap.RegisterAtlasWindow(self)

    def Destroy(self):
        miniMap.UnregisterAtlasWindow()
        self.ClearDictionary()
        self.AtlasMainWindow = None
        self.tooltipAtlasClose = 0
        self.tooltipInfo = None
        self.infoGuildMark = None
        self.board = None

    def OnUpdate(self):

        if not self.tooltipInfo:
            return

        if not self.infoGuildMark:
            return

        self.infoGuildMark.Hide()
        self.tooltipInfo.Hide()

        if False == self.board.IsIn():
            return

        (mouseX, mouseY) = wndMgr.GetMousePosition()
        (bFind, sName, iPosX, iPosY, dwTextColor, dwGuildID) = miniMap.GetAtlasInfo(mouseX, mouseY)

        if False == bFind:
            return

        if "empty_guild_area" == sName:
            sName = localeInfo.GUILD_EMPTY_AREA

        if localeInfo.IsARABIC() and sName[-1].isalnum():
            self.tooltipInfo.SetText("(%s)%d, %d" % (sName, iPosX, iPosY))                      
        else:
            self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))
           
        (x, y) = self.GetGlobalPosition()
        self.tooltipInfo.SetTooltipPosition(mouseX - x, mouseY - y)
        self.tooltipInfo.SetTextColor(dwTextColor)
        self.tooltipInfo.Show()
        self.tooltipInfo.SetTop()

        if 0 != dwGuildID:
            textWidth, textHeight = self.tooltipInfo.GetTextSize()
            self.infoGuildMark.SetIndex(dwGuildID)
            self.infoGuildMark.SetPosition(mouseX - x - textWidth - 18 - 5, mouseY - y)
            self.infoGuildMark.Show()

    def Hide(self):
        if self.AtlasMainWindow:
            self.AtlasMainWindow.HideAtlas()
            self.AtlasMainWindow.Hide()
        ui.ScriptWindow.Hide(self)

    def Show(self):
        if self.AtlasMainWindow:
            (bGet, iSizeX, iSizeY) = miniMap.GetAtlasSize()
            if bGet:
                self.SetSize(iSizeX + 15, iSizeY + 38)

                if localeInfo.IsARABIC():
                    self.board.SetPosition(iSizeX+15, 0)

                self.board.SetSize(iSizeX + 15, iSizeY + 38)
                #self.AtlasMainWindow.SetSize(iSizeX, iSizeY)
                self.AtlasMainWindow.ShowAtlas()
                self.AtlasMainWindow.Show()
        ui.ScriptWindow.Show(self)

    def SetCenterPositionAdjust(self, x, y):
        self.SetPosition((wndMgr.GetScreenWidth() - self.GetWidth()) / 2 + x, (wndMgr.GetScreenHeight() - self.GetHeight()) / 2 + y)

    def OnPressEscapeKey(self):
        self.Hide()
        return True

def __RegisterMiniMapColor(type, rgb):
    miniMap.RegisterColor(type, rgb[0], rgb[1], rgb[2])

class MiniMap(ui.ScriptWindow):

    CANNOT_SEE_INFO_MAP_DICT = {
        "metin2_map_monkeydungeon" : False,
        "metin2_map_monkeydungeon_02" : False,
        "metin2_map_monkeydungeon_03" : False,
        "metin2_map_devilsCatacomb" : False,
    }

    def __init__(self):
        ui.ScriptWindow.__init__(self)

        self.__Initialize()

        miniMap.Create()
        miniMap.SetScale(2.0)

        self.AtlasWindow = AtlasWindow()
        self.AtlasWindow.LoadWindow()
        self.AtlasWindow.Hide()

        self.tooltipMiniMapOpen = MapTextToolTip()
        self.tooltipMiniMapOpen.SetText(localeInfo.MINIMAP)
        self.tooltipMiniMapOpen.Show()
        self.tooltipMiniMapClose = MapTextToolTip()
        self.tooltipMiniMapClose.SetText(localeInfo.UI_CLOSE)
        self.tooltipMiniMapClose.Show()
        self.tooltipScaleUp = MapTextToolTip()
        self.tooltipScaleUp.SetText(localeInfo.MINIMAP_INC_SCALE)
        self.tooltipScaleUp.Show()
        self.tooltipScaleDown = MapTextToolTip()
        self.tooltipScaleDown.SetText(localeInfo.MINIMAP_DEC_SCALE)
        self.tooltipScaleDown.Show()
        self.tooltipAtlasOpen = MapTextToolTip()
        self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_SHOW_AREAMAP)
        self.tooltipAtlasOpen.Show()
        self.tooltipInfo = MapTextToolTip()
        self.tooltipInfo.Show()

        if miniMap.IsAtlas():
            self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_SHOW_AREAMAP)
        else:
            self.tooltipAtlasOpen.SetText(localeInfo.MINIMAP_CAN_NOT_SHOW_AREAMAP)

        self.tooltipInfo = MapTextToolTip()
        self.tooltipInfo.Show()

        self.mapName = ""

        self.isLoaded = 0
        self.canSeeInfo = True
       
        # AUTOBAN
        self.imprisonmentDuration = 0
        self.imprisonmentEndTime = 0
        self.imprisonmentEndTimeText = ""
        # END_OF_AUTOBAN

    def __del__(self):
        miniMap.Destroy()
        ui.ScriptWindow.__del__(self)

    def __Initialize(self):
        self.positionInfo = 0
        self.observerCount = 0

        self.OpenWindow = 0
        self.CloseWindow = 0
        self.ScaleUpButton = 0
        self.ScaleDownButton = 0
        self.MiniMapHideButton = 0
        self.MiniMapShowButton = 0
        self.AtlasShowButton = 0

        self.tooltipMiniMapOpen = 0
        self.tooltipMiniMapClose = 0
        self.tooltipScaleUp = 0
        self.tooltipScaleDown = 0
        self.tooltipAtlasOpen = 0
        self.tooltipInfo = None
        self.serverInfo = None

    def SetMapName(self, mapName):
        self.mapName=mapName
        self.AtlasWindow.SetMapName(mapName)

        if self.CANNOT_SEE_INFO_MAP_DICT.has_key(mapName):
            self.canSeeInfo = False
            self.HideMiniMap()
            self.tooltipMiniMapOpen.SetText(localeInfo.MINIMAP_CANNOT_SEE)
        else:
            self.canSeeInfo = True
            self.ShowMiniMap()
            self.tooltipMiniMapOpen.SetText(localeInfo.MINIMAP)
           
    # AUTOBAN
    def SetImprisonmentDuration(self, duration):
        self.imprisonmentDuration = duration
        self.imprisonmentEndTime = app.GetGlobalTimeStamp() + duration              
       
        self.__UpdateImprisonmentDurationText()
       
    def __UpdateImprisonmentDurationText(self):
        restTime = max(self.imprisonmentEndTime - app.GetGlobalTimeStamp(), 0)
       
        imprisonmentEndTimeText = localeInfo.SecondToDHM(restTime)
        if imprisonmentEndTimeText != self.imprisonmentEndTimeText:
            self.imprisonmentEndTimeText = imprisonmentEndTimeText
            self.serverInfo.SetText("%s: %s" % (uiScriptLocale.AUTOBAN_QUIZ_REST_TIME, self.imprisonmentEndTimeText))
    # END_OF_AUTOBAN  

    def Show(self):
        self.__LoadWindow()

        ui.ScriptWindow.Show(self)

    def __LoadWindow(self):
        if self.isLoaded == 1:
            return

        self.isLoaded = 1

        try:
            pyScrLoader = ui.PythonScriptLoader()
            if localeInfo.IsARABIC():
                pyScrLoader.LoadScriptFile(self, uiScriptLocale.LOCALE_UISCRIPT_PATH + "Minimap.py")
            else:
                pyScrLoader.LoadScriptFile(self, "UIScript/MiniMap.py")
        except:
            import exception
            exception.Abort("MiniMap.LoadWindow.LoadScript")

        try:
            self.OpenWindow = self.GetChild("OpenWindow")
            self.MiniMapWindow = self.GetChild("MiniMapWindow")
            self.ScaleUpButton = self.GetChild("ScaleUpButton")
            self.ScaleDownButton = self.GetChild("ScaleDownButton")
            self.MiniMapHideButton = self.GetChild("MiniMapHideButton")
            self.AtlasShowButton = self.GetChild("AtlasShowButton")
            self.CloseWindow = self.GetChild("CloseWindow")
            self.MiniMapShowButton = self.GetChild("MiniMapShowButton")
            self.positionInfo = self.GetChild("PositionInfo")
            self.observerCount = self.GetChild("ObserverCount")
            self.serverInfo = self.GetChild("ServerInfo")
            self.VSaat = self.GetChild("Vectors1")
            self.VTarih = self.GetChild("Vectors2")
        except:
            import exception
            exception.Abort("MiniMap.LoadWindow.Bind")

        if constInfo.MINIMAP_POSITIONINFO_ENABLE==0:
            self.positionInfo.Hide()

        self.serverInfo.SetText(net.GetServerInfo())
        self.ScaleUpButton.SetEvent(ui.__mem_func__(self.ScaleUp))
        self.ScaleDownButton.SetEvent(ui.__mem_func__(self.ScaleDown))
        self.MiniMapHideButton.SetEvent(ui.__mem_func__(self.HideMiniMap))
        self.MiniMapShowButton.SetEvent(ui.__mem_func__(self.ShowMiniMap))

        if miniMap.IsAtlas():
            self.AtlasShowButton.SetEvent(ui.__mem_func__(self.ShowAtlas))

        (ButtonPosX, ButtonPosY) = self.MiniMapShowButton.GetGlobalPosition()
        self.tooltipMiniMapOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.MiniMapHideButton.GetGlobalPosition()
        self.tooltipMiniMapClose.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.ScaleUpButton.GetGlobalPosition()
        self.tooltipScaleUp.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.ScaleDownButton.GetGlobalPosition()
        self.tooltipScaleDown.SetTooltipPosition(ButtonPosX, ButtonPosY)

        (ButtonPosX, ButtonPosY) = self.AtlasShowButton.GetGlobalPosition()
        self.tooltipAtlasOpen.SetTooltipPosition(ButtonPosX, ButtonPosY)

        self.ShowMiniMap()

    def Destroy(self):
        self.HideMiniMap()

        self.AtlasWindow.Destroy()
        self.AtlasWindow = None

        self.ClearDictionary()

        self.__Initialize()

    def UpdateObserverCount(self, observerCount):
        if observerCount>0:
            self.observerCount.Show()
        elif observerCount<=0:
            self.observerCount.Hide()

        self.observerCount.SetText(localeInfo.MINIMAP_OBSERVER_COUNT % observerCount)
       
    def OnUpdate(self):
        (x, y, z) = player.GetMainCharacterPosition()
        miniMap.Update(x, y)

        self.positionInfo.SetText("(%.0f, %.0f)" % (x/100, y/100))
       
        serverName = serverInfo.SERVER_1
        self.serverInfo.SetText(str(serverName)+", CH"+str(constInfo.indexver))

        import time
        VectorsSaat = time.strftime("|cffffcc00%H:%M:%S")
        VectorsTarih = time.strftime("|cffffcc00%d.%m.%Y")
        self.VSaat.SetText(VectorsSaat)
        self.VTarih.SetText(VectorsTarih)

        if self.tooltipInfo:
            if True == self.MiniMapWindow.IsIn():
                (mouseX, mouseY) = wndMgr.GetMousePosition()
                (bFind, sName, iPosX, iPosY, dwTextColor) = miniMap.GetInfo(mouseX, mouseY)
                if bFind == 0:
                    self.tooltipInfo.Hide()
                elif not self.canSeeInfo:
                    self.tooltipInfo.SetText("%s(%s)" % (sName, localeInfo.UI_POS_UNKNOWN))
                    self.tooltipInfo.SetTooltipPosition(mouseX - 5, mouseY)
                    self.tooltipInfo.SetTextColor(dwTextColor)
                    self.tooltipInfo.Show()
                else:
                    if localeInfo.IsARABIC() and sName[-1].isalnum():
                        self.tooltipInfo.SetText("(%s)%d, %d" % (sName, iPosX, iPosY))
                    else:
                        self.tooltipInfo.SetText("%s(%d, %d)" % (sName, iPosX, iPosY))
                    self.tooltipInfo.SetTooltipPosition(mouseX - 5, mouseY)
                    self.tooltipInfo.SetTextColor(dwTextColor)
                    self.tooltipInfo.Show()
            else:
                self.tooltipInfo.Hide()
           
            # AUTOBAN
            if self.imprisonmentDuration:
                self.__UpdateImprisonmentDurationText()              
            # END_OF_AUTOBAN

        if True == self.MiniMapShowButton.IsIn():
            self.tooltipMiniMapOpen.Show()
        else:
            self.tooltipMiniMapOpen.Hide()

        if True == self.MiniMapHideButton.IsIn():
            self.tooltipMiniMapClose.Show()
        else:
            self.tooltipMiniMapClose.Hide()

        if True == self.ScaleUpButton.IsIn():
            self.tooltipScaleUp.Show()
        else:
            self.tooltipScaleUp.Hide()

        if True == self.ScaleDownButton.IsIn():
            self.tooltipScaleDown.Show()
        else:
            self.tooltipScaleDown.Hide()

        if True == self.AtlasShowButton.IsIn():
            self.tooltipAtlasOpen.Show()
        else:
            self.tooltipAtlasOpen.Hide()

    def OnRender(self):
        (x, y) = self.GetGlobalPosition()
        fx = float(x)
        fy = float(y)
        miniMap.Render(fx + 4.0, fy + 5.0)

    def Close(self):
        self.HideMiniMap()

    def HideMiniMap(self):
        miniMap.Hide()
        self.OpenWindow.Hide()
        self.CloseWindow.Show()

    def ShowMiniMap(self):
        if not self.canSeeInfo:
            return

        miniMap.Show()
        self.OpenWindow.Show()
        self.CloseWindow.Hide()

    def isShowMiniMap(self):
        return miniMap.isShow()

    def ScaleUp(self):
        miniMap.ScaleUp()

    def ScaleDown(self):
        miniMap.ScaleDown()

    def ShowAtlas(self):
        if not miniMap.IsAtlas():
            return
        if not self.AtlasWindow.IsShow():
            self.AtlasWindow.Show()

    def ToggleAtlasWindow(self):
        if not miniMap.IsAtlas():
            return
        if self.AtlasWindow.IsShow():
            self.AtlasWindow.Hide()
        else:
            self.AtlasWindow.Show()

size zahmet bi bakar mısınız
self.serverInfo.SetText(net.GetServerInfo())

Şuna bak PythonNetworkStreamModule.cpp den
 
peki örneğin tramola serverini seçtiğinde tramolaya girdiğinden emin misin?
 
Bende 5 adetle yaptım evet ilk 1 de hangisi kayıtlı ise onun ismini alıyor .
kankacım kodları görmediğim şöyle şöyle yap diyemeceğim. Ama sıfırdan yapıyormuş gibi düşünürsek mantık şu

introLogin.py de ben hangi serveri seçtiysem net.SetServerInfo(secilen_server_name)

Client tarafına bu isim kayıt edilir.
Bu metin verisi saklayacak.
Sonra uiMinimapten harita altına
SetText(net.GetServerInfo())

böyle de saklanan ismi oradan alıyoruz.

Her server değiştirdiğinde clientte bu ismi saklayacağız sonra uiMinimapte o saklanan ismi alacaksın(zaten ekli).
 
Son düzenleme:
uiminimap.py def update altında girilen server den değil de hep server 1 den alınacak şekilde bir satır vardı onu getserverinfo olara değiştirdik olay düzeldi. kolay gelsin.

@okan4141 dediğin gibi yapmışlarda update altında gidip manuel çekilmiş. orayı düzeltince olay çözüldü.
 
Çözüm
uiminimap.py def update altında girilen server den değil de hep server 1 den alınacak şekilde bir satır vardı onu getserverinfo olara değiştirdik olay düzeldi. kolay gelsin.

@okan4141 dediğin gibi yapmışlarda update altında gidip manuel çekilmiş. orayı düzeltince olay çözüldü.
İlgi ve alakanız için çok teşekkür ederim <3
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.
Geri
Üst