Astazi va voi arata cum sa bagati mai multe servere in lista unui client in genul metin2.ro(nu fac reclama)
1.Pentru inceput desfacem "root.eix"
2.Intram in "serverinfo.py"
3.Cautam unde scrie
SERVER01_CHANNEL_DICT = {
1:{"key":11,"name":"CH1","ip":"metin2b.ath.cx","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
2:{"key":11,"name":"CH2","ip":"metin2b.ath.cx","tcp_port":16000,"udp_port":16000,"state":STATE_NONE,},
}
4. Adaugam inca una si modificam unde scrie cu rosu in functie de servere :
SERVER01_CHANNEL_DICT = {
1:{"key":11,"name":"CH1","ip":"metin2b.ath.cx","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
2:{"key":11,"name":"CH2","ip":"metin2b.ath.cx","tcp_port":16000,"udp_port":16000,"state":STATE_NONE,},
}
SERVER02_CHANNEL_DICT = {
1:{"key":11,"name":"CH1","ip":"metin2b.ath.cx","tcp_port":13000,"udp_port":13000,"state":STATE_NONE,},
2:{"key":11,"name":"CH2","ip":"metin2b.ath.cx","tcp_port":16000,"udp_port":16000,"state":STATE_NONE,},
}
5. Dupa cautam si adaugam :
REGION_DICT = {
0 : {
1 : { "name" : "Metin2Borcea", "channel" : SERVER01_CHANNEL_DICT, },
2 : { "name" : "Metin2Borcea2", "channel" : SERVER02_CHANNEL_DICT, },
},
}
6. Acum salvam si inpachetam tot si in client...
7. Enjoy avem 2 servere in lista