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: Thursday, 30 Dec 2010, 01:41   
A+
User avatar
Joined: Wednesday, 26 Dec 2007, 00:42
Posts: 7317
steamCooker wrote:
?! how did u get these   ?

  are non-breaking spaces in HTML. Considering his log had them, too, I'd conclude to a conversion error on pasting etc. Anyway, this shouldn't be part of the problem, which I think is being related to the commented db line. Looks to me as if it crashed if the db was only held in memory.

_________________
Game Industry Guardian (1K+).


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Friday, 31 Dec 2010, 10:41   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
client on query to master server ,not receive respond with all servers ,only 230-250 :(
maybe need to sniff packets

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


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Friday, 31 Dec 2010, 14:27   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
you mean the tiny test client i sent some time ago ? yeah ... it"s asking only the first batch, was only to test basic stuff.


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Friday, 31 Dec 2010, 22:13   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
on random time ,master server send to client variable number of servers (230/560) from any Counter Strike Client
on random time ,master server send to quakestat tool real number of server from master :8=)

-- Edit --

config:
  1.  
  2. [Servers]
  3. HLMasterServer=127.0.0.1:30000
  4.  
  5. [Access]
  6. deny=89.179.242.85
  7. allow=127.0.0.1 95.65.64.90
  8. ;db=access.db
  9.  
  10. [Database]
  11. HLMasterServer=HLMasterServer.db
  12.  
  13. [Options]
  14. disableJoin=false
  15. enableRating=false
  16. traceProtocol=true
  17.  
  18. [Logs]
  19. ;trace = 0, debug = 1, info = 2, warn = 3, error = 4, fatal = 5, off = 6
  20. Level=(int32)0
  21. LogFile=MasterServer.log
  22.  



terminal:
  1. [root@myhost masterserver_test]# ./MasterServer
  2.  INFO : MasterServer - by steamCooker
  3.  INFO : -----------------------------
  4.  INFO : Allowed IP : 127.0.0.1:0
  5.  INFO : Allowed IP : 95.65.64.90:0
  6.  INFO : Denied IP : 89.179.242.85:0
  7. TRACE : Opening DB connection :memory:
  8. TRACE : Executing CREATE TABLE gameServers (challenge INTEGER PRIMARY KEY, _ip INTEGER, _port INTEGER, _lastHeartBeat INTEGER, protocol INTEGER, players INTEGER, max INTEGER, bots INTEGER, gamedir VARCHAR, map VARCHAR, type VARCHAR, password INTEGER, os VARCHAR, secure INTEGER, lan INTEGER, version VARCHAR, region INTEGER, product VARCHAR, gameport INTEGER, specport INTEGER, dedicated INTEGER, appid INTEGER, proxy INTEGER, gdversion INTEGER, CONSTRAINT UNIQUE_GSER UNIQUE(_ip,_port))
  9. TRACE : Executing CREATE TABLE gameServersGametype (challenge INTEGER, gametype VARCHAR, CONSTRAINT GAMETYPE_PK PRIMARY KEY(challenge,gametype))
  10. TRACE : Executing CREATE TRIGGER gametypeTrigger BEFORE DELETE ON gameServers BEGIN DELETE FROM gameServersGametype WHERE challenge=OLD.challenge; END
  11. TRACE : Executing CREATE TABLE gameServersGamedata (challenge INTEGER, gamedata VARCHAR, CONSTRAINT GAMETYPE_PK PRIMARY KEY(challenge,gamedata))
  12. TRACE : Executing CREATE TRIGGER gamedataTrigger BEFORE DELETE ON gameServers BEGIN DELETE FROM gameServersGamedata WHERE challenge=OLD.challenge; END
  13. TRACE : Closing DB connection
  14. TRACE : Opening DB connection /media/Servers/masterserver_test/HLMasterServer.db
  15. TRACE : Executing CREATE TABLE gameServers (challenge INTEGER PRIMARY KEY, _ip INTEGER, _port INTEGER, _lastHeartBeat INTEGER, protocol INTEGER, players INTEGER, max INTEGER, bots INTEGER, gamedir VARCHAR, map VARCHAR, type VARCHAR, password INTEGER, os VARCHAR, secure INTEGER, lan INTEGER, version VARCHAR, region INTEGER, product VARCHAR, gameport INTEGER, specport INTEGER, dedicated INTEGER, appid INTEGER, proxy INTEGER, gdversion INTEGER, CONSTRAINT UNIQUE_GSER UNIQUE(_ip,_port))
  16. TRACE : Executing CREATE TABLE gameServersGametype (challenge INTEGER, gametype VARCHAR, CONSTRAINT GAMETYPE_PK PRIMARY KEY(challenge,gametype))
  17. TRACE : Executing CREATE TRIGGER gametypeTrigger BEFORE DELETE ON gameServers BEGIN DELETE FROM gameServersGametype WHERE challenge=OLD.challenge; END
  18. TRACE : Executing CREATE TABLE gameServersGamedata (challenge INTEGER, gamedata VARCHAR, CONSTRAINT GAMETYPE_PK PRIMARY KEY(challenge,gamedata))
  19. TRACE : Executing CREATE TRIGGER gamedataTrigger BEFORE DELETE ON gameServers BEGIN DELETE FROM gameServersGamedata WHERE challenge=OLD.challenge; END
  20. TRACE : Executing ALTER TABLE gameServers ADD COLUMN nap VARCHAR
  21. TRACE : Executing ALTER TABLE gameServers ADD COLUMN rating INTEGER
  22. TRACE : Executing ALTER TABLE gameServers ADD COLUMN rated_order INTEGER
  23. TRACE : Executing CREATE TRIGGER IF NOT EXISTS rev_cs AFTER UPDATE ON gameServers FOR EACH ROW BEGIN UPDATE gameServers SET nap=10 WHERE gamedir='cstrike' AND rowid=NEW.rowid; END
  24. TRACE : Executing CREATE TRIGGER IF NOT EXISTS init_rating AFTER INSERT ON gameServers FOR EACH ROW BEGIN UPDATE gameServers SET rating=0, rated_order=_ip WHERE rowid=NEW.rowid; END
  25. TRACE : Executing CREATE TRIGGER IF NOT EXISTS update_rating AFTER UPDATE ON gameServers FOR EACH ROW BEGIN UPDATE gameServers SET rated_order=(NEW.rating*(-281474976710656)+NEW._ip*(2710)+NEW._port) WHERE rowid=NEW.rowid; END
  26.  INFO : HL Master Server started
  27.  INFO : -----------------------------
  28.  INFO : Server status :
  29.  INFO :  HL Master Server (0.0.0.0:30000) : Online
  30. >>>> UDP Socket (5) received 13 bytes from 95.65.64.90:35607 :
  31. 00000000 | 31 ff 30 2e 30 2e 30 2e  30 3a 30 00 00          | 1.0.0.0.0:0..  
  32. Segmentation fault (core dumped)
  33. [root@myhost masterserver_test]#
  34.  


linux version :(

-- Edit --

console output:
  1. >>>> UDP Socket (4) received 21 bytes from 95.65.64.90:57535 :
  2. 00000000 | 31 ff 39 33 2e 31 35 37  2e 34 37 2e 31 3a 36 30 | 1.93.157.47.1:60
  3. 00000010 | 32 33 38 21 00                                   | 238!.          
  4. TRACE : Opening DB connection /media/Servers/masterserver_test/access.db
  5. TRACE : Preparing statement SELECT allowed FROM by_default WHERE allowed LIKE 'false'
  6. TRACE : Preparing statement SELECT allowed FROM access WHERE ip=? AND port=? AND allowed LIKE ?
  7. TRACE : Closing DB connection
  8. TRACE : Firewall : Access granted for 95.65.64.90:57535
  9. ERROR : HL Master Server - IOException (0) : Insufficient data in stream to read a String
  10. >>>> UDP Socket (4) received 21 bytes from 95.65.64.90:57535 :
  11. 00000000 | 31 ff 39 33 2e 31 35 37  2e 34 37 2e 31 3a 36 30 | 1.93.157.47.1:60
  12. 00000010 | 32 33 38 21 00                                   | 238!.          
  13. TRACE : Opening DB connection /media/Servers/masterserver_test/access.db
  14. TRACE : Preparing statement SELECT allowed FROM by_default WHERE allowed LIKE 'false'
  15. TRACE : Preparing statement SELECT allowed FROM access WHERE ip=? AND port=? AND allowed LIKE ?
  16. TRACE : Closing DB connection
  17. TRACE : Firewall : Access granted for 95.65.64.90:57535
  18. ERROR : HL Master Server - IOException (0) : Insufficient data in stream to read a String
  19.  


this its when i m get servers from CS v43 ,when get list from quakestat ,same problem ,servers list its stable ,and servers adding blocked :)

i m sniffed packets with wireshark ,on queryes to your master ,and setti


Attachments:
sniffing.zip [147.26 KiB]
Downloaded 88 times
core_dump.zip [484.21 KiB]
Downloaded 86 times

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

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Monday, 03 Jan 2011, 21:19   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
well as far as i know, the current protocol would not be :
  1.  
  2. 00000000 | 31 ff 39 33 2e 31 35 37  2e 34 37 2e 31 3a 36 30 | 1.93.157.47.1:60
  3. 00000010 | 32 33 38 21 00                                               | 238!.
  4.  

but :
  1.  
  2. 00000000 | 31 ff 39 33 2e 31 35 37  2e 34 37 2e 31 3a 36 30 | 1.93.157.47.1:60
  3. 00000010 | 32 33 38 00 ff ii ll tt ee rr 00                             | 238.filter.
  4.  


someone told about this quakestat tool problem some time ago and MasterServer supports only the latest protocol.
but does someone have some more info about this maybe ?


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 04 Jan 2011, 09:27   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
Setti Master Server will be respond on this query with list of servers ::)
Maybe fix this ,and test this with CS1.6 Client :wink:
And please ,update windows version of master server :)

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


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Sunday, 09 Jan 2011, 20:07   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
here is the windows version.


Last edited by steamCooker on Monday, 10 Jan 2011, 23:06, edited 1 time in total.

Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Sunday, 09 Jan 2011, 21:23   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
on first query master server is crashing

  1. Сигнатура проблемы:
  2.   Имя события проблемы:   APPCRASH
  3.   Имя приложения:  MasterServer.exe
  4.   Версия приложения:    0.0.0.0
  5.   Отметка времени приложения:   4d29e97f
  6.   Имя модуля с ошибкой:    MasterServer.exe
  7.   Версия модуля с ошибкой:  0.0.0.0
  8.   Отметка времени модуля с ошибкой: 4d29e97f
  9.   Код исключения:  c0000005
  10.   Смещение исключения:    00009761
  11.   Версия ОС:    6.1.7600.2.0.0.256.1
  12.   Код языка:    1049
  13.   Дополнительные сведения 1:  0a9e
  14.   Дополнительные сведения 2:  0a9e372d3b4ad19135b953a78882e789
  15.   Дополнительные сведения 3:  0a9e
  16.   Дополнительные сведения 4:  0a9e372d3b4ad19135b953a78882e789


  1. ;MasterServer - by SteamCooker
  2.  
  3. [Servers]
  4. HLMasterServer=95.65.64.90:27010
  5. ; SourceMasterServer=95.65.64.90:27011
  6. ; RDKFMasterServer=0.0.0.0:27012
  7.  
  8. [Access]
  9. ; Redirect BANS
  10. deny=89.179.242.85 83.142.105.21
  11. ; allow=127.0.0.1 95.65.64.90
  12. ; db=access.db
  13.  
  14. [Database]
  15. ; HLMasterServer=HLMasterServer.db
  16. ; SourceMasterServer=SourceMasterServer.db
  17. ; RDKFMasterServer=RDKFMasterServer.db
  18.  
  19. [Options]
  20. disableJoin=false
  21. enableRating=false
  22. traceProtocol=false
  23.  
  24. [Logs]
  25. ; trace = 0, debug = 1, info = 2, warn = 3, error = 4, fatal = 5, off = 6
  26. Level=(int32)1
  27. LogFile=MasterServer.log
  28.  
  29. ; Static manualy defined game servers, challenge must be configured as %u


:(

-- Edit --

on windows version of master server:
  1. TRACE : Preparing statement SELECT allowed FROM by_default WHERE allowed LIKE 'false'
  2. TRACE : Preparing statement SELECT allowed FROM access WHERE ip=? AND port=? AND allowed LIKE ?


maybe:
  1. TRACE : Preparing statement SELECT allowed FROM by_default WHERE allowed LIKE 'false'
  2. TRACE : Preparing statement SELECT allowed FROM access WHERE ip=? AND port=? AND allowed LIKE 'false'


:? ,banning by access.db not work :(

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


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Monday, 10 Jan 2011, 22:56   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
maybe add any possibility to change rating of servers ,from ini files ?

for example:
  1. [HLMasterServer]
  2. info=\protocol\7\challenge\%u\players\31\max\32\bots\0\gamedir\cstrike\map\de_dust2\type\d\password\0\os\l\secure\0\lan\0\version\1.6.3.7/Stdio\region\255\product\cstrike
  3. [HLMasterServer/IP:PORT/rating]

and if
  1. [HLMasterServer]
  2. info=\protocol\7\challenge\%u\players\31\max\32\bots\0\gamedir\cstrike\map\de_dust2\type\d\password\0\os\l\secure\0\lan\0\version\1.6.3.7/Stdio\region\255\product\cstrike
  3. [HLMasterServer/IP:PORT]

rating is 0 ::)

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


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Monday, 10 Jan 2011, 23:08   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
oops forgot that report that db bug fix before building the windows release ... here it is.

about new features, sorry but i don't plan to make more evolutions for now.


Last edited by steamCooker on Wednesday, 12 Jan 2011, 01:27, edited 1 time in total.

Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Tuesday, 11 Jan 2011, 00:43   
Beginner Без звания
Joined: Saturday, 08 Jan 2011, 00:08
Posts: 4
sorry, but bad speaking english, I use Linux Gentoo

And i use this config:
  1. ;MasterServer - by SteamCooker
  2.  
  3. [Servers]
  4. HLMasterServer=79.120.*.*:27010
  5. ;SourceMasterServer=192.168.1.13:27011
  6. ;RDKFMasterServer=192.168.1.13:27012
  7.  
  8. [Access]
  9. ;deny=127.0.0.1 10.16.1.1
  10. ;allow=127.0.0.2 192.168.1.2
  11. db=access.db //this file touch master_server
  12.  
  13. [Database]
  14. ;LMasterServer=HLMasterServer.db
  15. ;SourceMasterServer=SourceMasterServer.db
  16. ;RDKFMasterServer=RDKFMasterServer.db
  17.  
  18. [Options]
  19. ;disableJoin=true
  20. ;enableRating=true
  21. ;traceProtocol=true
  22.  
  23. [Logs]
  24. ;trace = 0, debug = 1, info = 2, warn = 3, error = 4, fatal = 5, off = 6
  25. Level=(int32)1
  26. LogFile=MasterServer.log
  27.  
  28. ;Static manualy defined game servers, challenge must be configured as %u
  29.  
  30. ;[HLMasterServer]
  31. ;default server info
  32. ;info=\protocol\47\challenge\%u\players\0\max\24\bots\0\gamedir\cstrike\map\de_nuke\type\d\password\0\os\w\secure
  33. ;\0\lan\0\version\1.1.2.5\region\255\product\cstrike
  34.  
  35. ;[HLMasterServer/127.0.0.1:27015]
  36. ;sample CS server
  37. ;info=\protocol\47\challenge\%u\players\0\max\24\bots\0\gamedir\cstrike\map\de_nuke\type\d\password\0\os\w\secure\0\lan\0\version\1.1.2.5\region\255\product\cstrike
  38.  
  39. ;[SourceMasterServer/127.0.0.1:27015]
  40. ;sample L4D2 server
  41. ;info=\protocol\7\challenge\%u\players\0\max\4\bots\0\gamedir\left4dead2\map\c2m4_barns\password\0\os\w\lan\0\region\255\gameport\27015\specport\0\dedicated\1\gametype\coop,empty\appid\550\type\d\secure\1\version\2.0.1.1\product\left4dead2
  42. ;gamedata=\protocol\7\challenge\%u\region\255\gamedata\g:l4d2,coop,realism,survival,versus,teamversus,scavenge,teamscavenge,key:2011\gdversion\1
  43.  
  44. ;[RDKFMasterServer]
  45.  




And if game server adding to MASTER SERVER. I GOT FAILD (Segmentation fault)

  1. PC1 master # ./MasterServer
  2.  INFO : MasterServer - by steamCooker
  3.  INFO : -----------------------------
  4.  INFO : HL Master Server started
  5.  INFO : -----------------------------
  6.  INFO : Server status :
  7.  INFO :  HL Master Server (0.0.0.0:27010) : Online
  8. Segmentation fault
  9. PC1 master #
  10.  


P.S. SteamCooker pls give me last build MasterServer linux. I think what i use old bild.
P.S.S Thanks

-- Edit --

Where i can find or get documentation by this program?


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 12 Jan 2011, 01:29   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
updated first post with latest version for win32 & linux.

i wrote no documentation sorry, but maybe a rinner has enough motivation to write a tutorial :)


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 12 Jan 2011, 12:59   
Advanced forumer Завсегдатай
Joined: Friday, 05 Mar 2010, 18:07
Posts: 85
steamCooker
i testing master server with over 5000 servers in masterserver.ini ,after ,i start master ,and get server list ,on result ,i view only 789 servers ,from qstat also

bad bad english ,sorry ::D

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


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 12 Jan 2011, 23:30   
Cooking Steam for CS RIN!
User avatar
Joined: Monday, 16 Oct 2006, 18:52
Posts: 2933
I don't know why :)

please enable logs and show me what's happenning :)


Top
 Profile  

Post Post subject: Re: MasterServer (win32/linux)   
Posted: Wednesday, 12 Jan 2011, 23:42   
Forum ghost Местное привидение
Joined: Tuesday, 28 Apr 2009, 22:45
Posts: 463
what could be wrong? :) server is add one 192.168.24.10:27015, connect client rev-emu (i fix query). use linux version masterserver

Quote:
>>>> UDP Socket (5) received 45 bytes from 192.168.249.14:62608 :
00000000 | 31 ff 30 2e 30 2e 30 2e 30 3a 30 00 5c 67 61 6d | 1.0.0.0.0:0.\gam
00000010 | 65 64 69 72 5c 74 66 5c 72 65 67 69 6f 6e 5c 32 | edir\tf\region\2
00000020 | 35 35 5c 67 61 6d 65 74 79 70 65 5c 00 | 55\gametype\.


Quote:
DEBUG : Source Master Server - Processing get Game servers list request from 192.168.249.14:64548
<<<< UDP Socket (5) sent 12 bytes datagram to 192.168.249.14:64548 :
00000000 | ff ff ff ff 66 0a 00 00  00 00 00 00             | ....f.......
>>>> UDP Socket (5) received 57 bytes from 192.168.249.14:64548 :
00000000 | 31 ff 32 30 34 2e 32 30  34 2e 32 30 34 2e 32 30 | 1.204.204.204.20
00000010 | 34 3a 35 32 34 32 38 00  5c 67 61 6d 65 64 69 72 | 4:52428.\gamedir
00000020 | 5c 74 66 5c 72 65 67 69  6f 6e 5c 32 35 35 5c 67 | \tf\region\255\g
00000030 | 61 6d 65 74 79 70 65 5c  00                      | ametype\.
DEBUG : Source Master Server - Processing get Game servers list request from 192.168.249.14:64548
<<<< UDP Socket (5) sent 12 bytes datagram to 192.168.249.14:64548 :
00000000 | ff ff ff ff 66 0a 00 00  00 00 00 00             | ....f.......
>>>> UDP Socket (5) received 57 bytes from 192.168.249.14:64548 :
00000000 | 31 ff 32 30 34 2e 32 30  34 2e 32 30 34 2e 32 30 | 1.204.204.204.20
00000010 | 34 3a 35 32 34 32 38 00  5c 67 61 6d 65 64 69 72 | 4:52428.\gamedir
00000020 | 5c 74 66 5c 72 65 67 69  6f 6e 5c 32 35 35 5c 67 | \tf\region\255\g
00000030 | 61 6d 65 74 79 70 65 5c  00                      | ametype\.
DEBUG : Source Master Server - Processing get Game servers list request from 192.168.249.14:64548
<<<< UDP Socket (5) sent 12 bytes datagram to 192.168.249.14:64548 :
00000000 | ff ff ff ff 66 0a 00 00  00 00 00 00             | ....f.......
>>>> UDP Socket (5) received 57 bytes from 192.168.249.14:64548 :
00000000 | 31 ff 32 30 34 2e 32 30  34 2e 32 30 34 2e 32 30 | 1.204.204.204.20
00000010 | 34 3a 35 32 34 32 38 00  5c 67 61 6d 65 64 69 72 | 4:52428.\gamedir
00000020 | 5c 74 66 5c 72 65 67 69  6f 6e 5c 32 35 35 5c 67 | \tf\region\255\g
00000030 | 61 6d 65 74 79 70 65 5c  00                      | ametype\.

_________________
Image


Last edited by bir3yk on Thursday, 13 Jan 2011, 10:20, edited 2 times in total.

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 ... 8, 9, 10, 11, 12, 13, 14 ... 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