Logo

CS.RIN.RU - Steam Underground Community

IRC: #cs.rin.ru at irc.rizon.net
It is currently Friday, 17 Apr 2015, 09:10

English | Русский




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 432 posts ] 
Author Message

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Friday, 24 Dec 2010, 18:24   
I live here Три раза сломал клаву :)
Joined: Friday, 24 Jun 2005, 18:42
Posts: 3140
Tested it and works
Image

_________________
~


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Saturday, 25 Dec 2010, 14:18   
Beginner Без звания
Joined: Sunday, 01 Mar 2009, 16:29
Posts: 10
I can't make it work on steam serversbrowser and 48 prot non-steam browsers. How to do it?
On 47 prot non-steam it works perfect.


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Saturday, 25 Dec 2010, 23:03   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
thx illpillow.
aaarnas, hum i don't know... it there any error in the logs ?


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 28 Dec 2010, 15:20   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
thanks for updated linux version ,testing :)

-- Edit --

steamCooker
may be better to leave the opportunity to Bans c aid of base access.db and leave as is, through allow=IP IP IP ;deny=IP IP IP? ::)

_________________
New masterserver: http://setmaster.info/


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 28 Dec 2010, 18:46   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
if u disable the "db=access.db" property, then the allow= and ip= are used


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 28 Dec 2010, 18:50   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
config:
  1. [Access]
  2. deny=89.179.242.85 91.144.132.90 89.179.242.85
  3. allow=127.0.0.1 95.65.64.90
  4. ;db=access.db


logs:
  1. [root@myhost masterserver_beta]# ./MasterServer
  2.  INFO : MasterServer - by steamCooker
  3.  INFO : -----------------------------
  4. TRACE : Opening DB connection /media/Servers/masterserver_beta
  5. ERROR : Error 14 opening connection : unable to open database file
  6. ERROR : DBException (14) : Error opening connection : unable to open database file at line 17 in api/BaseApi/db/DBConnection.cpp
  7. ^C
  8. [root@myhost masterserver_beta]#



on master added over 1000 fake servers ,when i m get list of servers i m view in log this:
  1. 2010/12/28 17:31:49 - DEBUG : HL Master Server - Processing get Game servers list request from 95.65.64.90:47374
  2. 2010/12/28 17:31:49 - TRACE : HL Master Server - Requested Region 255, filter : \gamedir\cstrike\nap\10, last received server : 0.0.0.0:0
  3. 2010/12/28 17:31:49 - TRACE : Preparing statement SELECT _ip,_port FROM gameServers   WHERE _ip>? AND _port>? AND gamedir=? AND nap=? ORDER BY _ip,_port LIMIT ?
  4. 2010/12/28 17:31:49 - TRACE : HL Master Server - Sending Game servers list (231 entries)

_________________
New masterserver: http://setmaster.info/


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 28 Dec 2010, 20:03   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
hum, yeah i see there's a small bug, i fixed it to make the database optional. i'll building it now.
about the 231 servers, it's cause an UDP packet (used to send servers to the client) has a limited size, so the master server sends maximum 230 servers to the client the next ones can be retrieved using another request.


Last edited by steamCooker on Tuesday, 28 Dec 2010, 20:13, edited 1 time in total.

Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 28 Dec 2010, 20:08   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
You can think of to get by set off the entire list :?

bad google translator :\

you speak russian ?

_________________
New masterserver: http://setmaster.info/


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 28 Dec 2010, 20:50   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
sorry, i don't speak russian.

i can't send the entire list in a single packet. if sending them all, Steam will not be able to read the response properly.

here is a new linux build.


Attachments:
MasterServer.linux.rar [376.43 KiB]
Downloaded 114 times
Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 29 Dec 2010, 08:53   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
create procedure with sending of 2-10 packets ,for receiving all servers from master server

sorry for my bad english :oops:

_________________
New masterserver: http://setmaster.info/


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 29 Dec 2010, 11:28   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
the protocol is the following :
1- the client send a request telling "i want the list from the begining"
2- then the server sends servers. if there is too many ones, it sends only a part of them and write there there are more servers to send.
3- if the client recieve the packet telling that there is more servers to send, then it sends a new request telling "i want the list from server xxx.xxx.xx.xx:xxxx"
4- then the server sends servers from xxx.xxx.xx.xx:xxxx. if there is too many ones, it sends only a part of them and write there there are more servers to send.
5- go back to step 3

the server shouldn't send all the servers , the client must ask for them


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 29 Dec 2010, 13:21   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
your master server sends the response to the client request if the second client request received?

_________________
New masterserver: http://setmaster.info/


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 29 Dec 2010, 13:49   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
yes. at least, it's supposed to do it :razz:


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 29 Dec 2010, 17:46   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
New ideas:
1.Ban by subnet ,by port
2.Creation of PID file(Linux version)
3.Extended Logs (in diferently files)
4.Cvar for define max servers in master server list

:8=)

-- Edit --

  1. [root@myhost masterserver_beta]# ./MasterServer
  2.  INFO : MasterServer - by steamCooker
  3.  INFO : -----------------------------
  4.  INFO : Registring game server 109.185.121.198:27015 on HLMasterServer
  5.  INFO : Registring game server 109.185.121.72:27015 on HLMasterServer
  6.  INFO : Registring game server 109.185.144.156:27015 on HLMasterServer
  7.  INFO : Registring game server 109.185.156.147:27016 on HLMasterServer
  8.  INFO : Registring game server 109.185.172.202:27016 on HLMasterServer
  9.  INFO : Registring game server 109.185.182.126:27016 on HLMasterServer
  10.  INFO : Registring game server 109.185.186.109:27015 on HLMasterServer
  11.  INFO : Registring game server 109.185.186.109:27016 on HLMasterServer
  12.  INFO : Registring game server 109.185.202.33:27015 on HLMasterServer
  13.  INFO : Registring game server 109.185.214.216:27015 on HLMasterServer
  14.  INFO : Registring game server 109.185.39.224:27018 on HLMasterServer
  15.  INFO : Registring game server 109.185.54.188:27018 on HLMasterServer
  16.  INFO : Registring game server 178.168.13.76:27016 on HLMasterServer
  17.  INFO : Registring game server 178.168.25.71:27016 on HLMasterServer
  18.  INFO : Registring game server 195.22.241.186:27015 on HLMasterServer
  19.  INFO : Registring game server 195.22.241.186:27016 on HLMasterServer
  20.  INFO : Registring game server 77.89.240.20:27015 on HLMasterServer
  21.  INFO : Registring game server 87.255.67.242:27015 on HLMasterServer
  22.  INFO : Registring game server 89.28.101.227:27015 on HLMasterServer
  23.  INFO : Registring game server 89.28.104.15:27015 on HLMasterServer
  24.  INFO : Registring game server 89.28.106.145:27015 on HLMasterServer
  25.  INFO : Registring game server 89.28.106.145:27016 on HLMasterServer
  26.  INFO : Registring game server 89.28.106.145:27018 on HLMasterServer
  27.  INFO : Registring game server 89.28.113.7:27015 on HLMasterServer
  28.  INFO : Registring game server 89.28.113.7:27016 on HLMasterServer
  29.  INFO : Registring game server 89.28.114.107:27015 on HLMasterServer
  30.  INFO : Registring game server 89.28.35.121:27016 on HLMasterServer
  31.  INFO : Registring game server 89.28.50.145:27017 on HLMasterServer
  32.  INFO : Registring game server 89.28.51.248:27016 on HLMasterServer
  33.  INFO : Registring game server 89.28.51.248:27018 on HLMasterServer
  34.  INFO : Registring game server 89.28.51.248:27019 on HLMasterServer
  35.  INFO : Registring game server 89.28.69.96:27015 on HLMasterServer
  36.  INFO : Registring game server 89.28.83.141:27015 on HLMasterServer
  37.  INFO : Registring game server 89.28.83.141:27020 on HLMasterServer
  38.  INFO : Registring game server 89.28.83.141:27030 on HLMasterServer
  39.  INFO : Registring game server 89.45.1.201:27015 on HLMasterServer
  40.  INFO : Registring game server 89.45.1.201:27016 on HLMasterServer
  41.  INFO : Registring game server 89.45.1.201:27018 on HLMasterServer
  42.  INFO : Registring game server 89.45.1.201:27020 on HLMasterServer
  43.  INFO : Registring game server 89.45.1.202:27015 on HLMasterServer
  44.  INFO : Registring game server 91.214.201.120:27016 on HLMasterServer
  45.  INFO : Registring game server 91.214.203.162:27015 on HLMasterServer
  46.  INFO : Registring game server 92.114.199.229:27011 on HLMasterServer
  47.  INFO : Registring game server 92.114.199.229:27012 on HLMasterServer
  48.  INFO : Registring game server 92.115.107.159:27015 on HLMasterServer
  49.  INFO : Registring game server 92.115.13.239:27015 on HLMasterServer
  50.  INFO : Registring game server 92.115.138.85:27015 on HLMasterServer
  51.  INFO : Registring game server 92.115.163.24:28015 on HLMasterServer
  52.  INFO : Registring game server 92.115.20.33:27016 on HLMasterServer
  53.  INFO : Registring game server 92.115.34.107:27019 on HLMasterServer
  54.  INFO : Registring game server 92.115.68.172:27016 on HLMasterServer
  55.  INFO : Registring game server 92.39.52.196:27015 on HLMasterServer
  56.  INFO : Registring game server 92.39.52.196:27016 on HLMasterServer
  57.  INFO : Registring game server 93.116.207.123:27015 on HLMasterServer
  58.  INFO : Registring game server 93.116.215.180:27016 on HLMasterServer
  59.  INFO : Registring game server 93.116.233.144:27017 on HLMasterServer
  60.  INFO : Registring game server 93.116.250.129:27016 on HLMasterServer
  61.  INFO : Registring game server 95.65.100.236:27015 on HLMasterServer
  62.  INFO : Registring game server 95.65.100.236:27016 on HLMasterServer
  63.  INFO : Registring game server 95.65.113.178:27017 on HLMasterServer
  64.  INFO : Registring game server 95.65.17.191:27015 on HLMasterServer
  65.  INFO : Registring game server 95.65.45.227:27015 on HLMasterServer
  66.  INFO : Registring game server 95.65.63.123:23016 on HLMasterServer
  67.  INFO : Registring game server 95.65.63.123:23017 on HLMasterServer
  68.  INFO : Registring game server 95.65.63.123:23018 on HLMasterServer
  69.  INFO : Registring game server 95.65.63.123:27015 on HLMasterServer
  70.  INFO : Registring game server 95.65.63.123:27017 on HLMasterServer
  71.  INFO : Registring game server 95.65.63.123:28015 on HLMasterServer
  72.  INFO : Registring game server 95.65.64.111:27017 on HLMasterServer
  73.  INFO : Registring game server 95.65.64.90:27014 on HLMasterServer
  74.  INFO : Registring game server 95.65.64.90:27015 on HLMasterServer
  75.  INFO : Registring game server 95.65.64.90:27016 on HLMasterServer
  76.  INFO : Registring game server 95.65.70.225:27015 on HLMasterServer
  77.  INFO : Registring game server 95.65.87.71:27017 on HLMasterServer
  78.  INFO : HL Master Server started
  79.  INFO : -----------------------------
  80.  INFO : Server status :
  81.  INFO :  HL Master Server (0.0.0.0:27010) : Online
  82. >>>> UDP Socket (4) received 1 bytes from 77.122.227.30:60238 :
  83. 00000000 | 71                                               | q              
  84. Segmentation fault (core dumped)
  85. [root@myhost masterserver_beta]#
  86.  


  1. [Access]
  2.  
  3. ;Redirect BANS
  4.  
  5. ;deny=89.179.242.85 91.144.132.90 89.179.242.85
  6.  
  7. ;allow=127.0.0.1 95.65.64.90
  8.  
  9. ;db=access.db


what this ? :(

-- Edit --

with

  1. [Access]
  2. ;Redirect BANS
  3. ;deny=89.179.242.85 91.144.132.90 89.179.242.85
  4. ;allow=127.0.0.1 95.65.64.90
  5. db=access.db


master server its work :8=)

_________________
New masterserver: http://setmaster.info/


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 29 Dec 2010, 23:50   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
?! how did u get these   ?


Top
 Profile  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 432 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11, 12, 13 ... 29  Next


Who is online

Users browsing this forum: No registered users and 10 guests


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum




Powered by phpBB® Forum Software © phpBB Group