Rank: Administrator Browser : Y!M : alexu_ptm Mesaje : 189 Experienta : 363 Data de inscriere : 31/01/2011 Varsta : 39 Localizare : Bucharest Stare de spirit : Be Happy Bara Warn :
| Subiect: [Tutorial] Cum sa ai 2 servare in acelasi Client !? Lun Ian 31, 2011 10:42 pm |
|
| Salut!
1.Pentru inceput desfacem "root.eix" 2.Intram in "serverinfo.py" 3.Cautam unde scrie : - Cod:
-
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 : - Cod:
-
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 : - Cod:
-
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 . |
|