Witam ; ]
Od 2 lat uczê siê skryptu i siê wiele nauczy³em wiêc. Je¿eli siê wl±cza serwer to w plikach czyta wszystko. A niektóre zdania w plikach s± niezbêdne. A kiedy Zacz±³ wczytywaæ te zdania to mog± byæ blêdy. a wiêc
w pliku GateServer powinno byæ tak :
;GateServer³õÊ¥»¯ÐÅÏ¢ÎÄ¥þ [Main] Name = PrivateServer Version =136 [GroupServer] IP = 127.0.0.1 Port = 2322 EnablePing = 180 [ToClient] //IP = 192.168.1.1 IP = 0.0.0.0 //IP = 5.48.180.118 Port = 1973 CommEncrypt = 1 EnablePing = 60 MaxConection =1500 [ToGameServer] IP = 127.0.0.1 Port = 2320 EnablePing = 180 [ShowRange] ShowMin = 500 ShowMax = 800 IsUse=0
a mamy tak
;GateServer³õÊ¥»¯ÐÅÏ¢ÎÄ¥þ [Main] Name = PrivateServer // ±µGateServerµÇÂ¥µ½GroupServerÉϵÄΨһÃû×Ö Version =136 // ±µGateServerÑéÖ¤¿Í»§ËµÄ°æ±µºÅ£¬Èç1.01°æ£½£½101 [GroupServer] IP = 127.0.0.1 // IP Address Of GroupServer Port = 2322 // Á¬½ÓµÄGroupServerÕìÌýGateServerÁ¬½ÓµÄÕìÌýTCPË¿Ú EnablePing = 180 // GateServerµ½GroupServerµÄSocketÁ¬½ÓµÄKeepAliveÖµ [ToClient] //IP = 192.168.1.1 // GateServerÕìÌýÓÎÏ·¿Í»§ËÁ¬½ÓµÄÕìÌýIPµØÖ· IP = 0.0.0.0 // change the ip to 0.0.0.0 to accept gameservers from different IPs //IP = 5.48.180.118 // GateServerÕìÌýÓÎÏ·¿Í»§ËÁ¬½ÓµÄÕìÌýIPµØÖ· Port = 1973 // GateServerÕìÌýÓÎÏ·¿Í»§ËÁ¬½ÓµÄÕìÌýTCPË¿Ú CommEncrypt = 1 // µ½¿Í»§ËµÄSocketÁ¬½ÓÊÇ·ñ´ò¿ª¥ÓÃÜͨÐÅ EnablePing = 60 // GateServerµ½ÓÎÏ·¿Í»§ËµÄSocketÁ¬½ÓµÄKeepAliveÖµ MaxConection =1500 // The largest initial connection [ToGameServer] IP = 127.0.0.1 // IP Address Of GameServer Port = 2320 // GateServerÕìÌýGameServerÁ¬½ÓµÄÕìÌýTCPË¿Ú EnablePing = 180 // GateServerµ½GameServerµÄSocketÁ¬½ÓµÄKeepAliveÖµ [ShowRange] ShowMin = 500 // зÓÚµÈÓÚShowMinʱÏÔʵÕý³£ ShowMax = 800 // ´óÓÚShowMin²¢ÇÒзÓÚµÈÓÚShowMaxÏÔʵ·±Ã¦£¬´óÓÚShowMaxÏÔʵÂú IsUse=0 // ÊÇ·ñÆôÓøººÉ״̬ÏÔʵ±¦ÄÜ£¬1ʱÓã¬0²»Ê±ÓÃ
Pomog³em wielu serwerom i ka¿demu to pomog³o ... Oczywi¶cie w wszystkich plikach trzeba tak zrobiæ. Zosta³em poproszony o napisanie takiego poradnika tutaj ... Szybko to zrobi³em ...
Offline
W±tpie by to cos dawa³o jedynie to ¿e szybciej sie odpali gateserver. Je¿eli wpiszemy // przed wyrazem to od tego wyrazu do konca linijki program nie czyta
Ostatnio edytowany przez neros94 (2010-07-01 14:38:02)
Offline
Maly offtop :
[Poradnik]Jak zrobiæ ¿êby Serwer by³ stabilniejszy i mniej lagów
Powinno byc raczej tak :
[Poradnik]Co zrobiæ, aby serwer by³ stabilniejszy oraz jak zapobiegaæ lagom?
To taka ma³a uwaga : ).
Offline