1 (edited by TrolleY 2013-08-18 22:19:15)

Topic: How to query rtcwcoop master server?

Hello smile

I wonder how to query rtcwcoop master server? Is there any specification/documentation about that? Is uses TCP connection or just UDP datagrams? What should I put in data of packet? How to read response of server?

EDIT
After some research I have more information but still need help.

My point is, that I would like to write some kind of free cross-platform game server browser in Java and I need a little help.
I know how to query servers when I have server ip and I know how to read response. But unfortunately I can get no response from master server so I can't get ip list. Maybe I'm opening socket on wrong port or sth? What should I do to receive any response? Any help?

Re: How to query rtcwcoop master server?

# perl -e 'printf "\xff\xff\xff\xff\x67\x65\x74\x73\x65\x72\x76\x65\x72\x73\x20\x31\x30\x20\x66\x75\x6c\x6c\x20\x65\x6d\x70\x74\x79"' | nc -vvvu 78.47.152.4 27950 | hexdump
00000000  ff ff ff ff 67 65 74 73  65 72 76 65 72 73 52 65
00000010  73 70 6f 6e 73 65 5c 4a  5b 70 63 6d 38 5c d5 ef
00000020  ce 52 6c 81 5c 57 6a 27  13 71 25 5c 4e 2f 41 9e
00000030  6d 38 5c ac f5 20 0f 6d  40 5c c6 88 3c cd 53 59
^C
#

Your sweet and sexy list of IPs and ports starts with '4a' in this case (4a5b70636d38 = 74.91.112.99 port 27960) and goes to end.
c6883ccd5359
c6883ccd = IP hexadecimal (split to c6 88 3c cd, convert each byte to decimal, join in octets)
5359 = port hexadecimal (21337 in this case - The Challenger).

Visit The Challenger.
Warning: may be too hardcore for casual players. To avoid hardcore, avoid modified Challenger maps (especially Dam), avoid drunk admins, run away if You'll hear "Jouhan Style" or try to cheat group lives limit via reconnecting (we'll modify server code to prevent it, little fuckers).

3 (edited by TrolleY 2013-08-19 10:20:37)

Re: How to query rtcwcoop master server?

Hey, thanks for response smile

OK, so now I will know how to read the data but still I have no idea why I can get no response from master server (it's master.rtcwcoop.com:27950 doesn't it?). The data I send is:

0xff 0xff 0xff 0xff g e t s e r v e r s 0x00

if I change message from getservers to i.e. getinfo and query any game server I can get info successfully, but from master there is no response... hmm There is something wrong in message or what? More strange is that if I send wrong message to any game server I have response "disconnected", but from master I havren't any hmm

EDIT: ahh, I finally noticed what ur message is:

0xff 0xff 0xff 0xff g e t s e r v e r s   1  0   f u l l    e m p t y 0x00

It seems that I missed magic "10", I read somewhere that stands for protocol version or sth like that.

Actually master.rtcwcoop.com seems to be down so I tried to read data from etmaster.idsoftware.com, I have response but it seems to be sth like xff xff xff xff getserversResponse\ (zeros zeros zeros). I don't know why yet but I hope I will figure it out.

Thanks again smile

EDIT AGAIN:

There was a litte lie, I didn't read only zeros.

I read exactly: xff xff xff xff getserversResponse\000000\EOT
So my server list was 0.0.0.0:0 hmm I hope I will get better list with master.rtcwcoop.com when it will be up again.

Re: How to query rtcwcoop master server?

etmaster.idsoftware.com uses protocol number 84 not 10, everything work fine, thanks!

Re: How to query rtcwcoop master server?

it seems that the rtcwcoop master was crashed, excuse me, I restarted the daemon !

Re: How to query rtcwcoop master server?

What happened ? Why there is no servers ? Did Master server crash again ? Hope it will be fixed soon.

BTW . Is 0.9.6 coming?

0V3RDR!VE !!!!

Re: How to query rtcwcoop master server?

sorry, had to reboot my server, forgot to bring up the master