Packet information for masterlist?

Started by EK.IceFlake, Feb 18, 2015, 01:34 PM

Previous topic - Next topic

EK.IceFlake

Hi guys! I wanted to make my masterlist for vcmp, what are the packet information that I have to send/recieve? I will of course check out the announce plugin source, but that probably wont tell me much. Thanks for help.

Thijn

Masterlist as in, the url you can put in your browser?

ysc3839

Quote from: NE.CrystalBlue on Feb 18, 2015, 01:34 PMHi guys! I wanted to make my masterlist for vcmp, what are the packet information that I have to send/recieve? I will of course check out the announce plugin source, but that probably wont tell me much. Thanks for help.
Capture the packet by yourself and analysis it!

ysc3839

Here is the request and response.
GET //servers/ HTTP/1.0
Host: master.vc-mp.org
User-Agent: HTTP Fetcher/HTTP/1.0
Connection: Close

{"success":true,"servers":[{"ip":"95.85.12.227","port":5192,"is_official":false},{"ip":"198.52.128.114","port":8192,"is_official":false},{"ip":"37.187.201.205","port":5194,"is_official":false},{"ip":"31.220.48.196","port":5176,"is_official":false},{"ip":"5.135.145.71","port":5200,"is_official":false},{"ip":"192.99.199.92","port":5724,"is_official":false},{"ip":"192.254.78.2","port":5190,"is_official":false},{"ip":"110.182.6.4","port":8192,"is_official":false},{"ip":"120.141.67.167","port":8192,"is_official":false},{"ip":"60.172.228.36","port":55555,"is_official":false}]}

EK.IceFlake

@ysc3839
1. Analyzing is too hard
2. is {"success":true,"servers":[{"ip":"95.85.12.227","port":5192,"is_official":false},{"ip":"198.52.128.114","port":8192,"is_official":false},{"ip":"37.187.201.205","port":5194,"is_official":false},{"ip":"31.220.48.196","port":5176,"is_official":false},{"ip":"5.135.145.71","port":5200,"is_official":false},{"ip":"192.99.199.92","port":5724,"is_official":false},{"ip":"192.254.78.2","port":5190,"is_official":false},{"ip":"110.182.6.4","port":8192,"is_official":false},{"ip":"120.141.67.167","port":8192,"is_official":false},{"ip":"60.172.228.36","port":55555,"is_official":false}]} supposed to be sent as a string or something else? I am using VB.NET.
Thanks

.

Quote from: NE.CrystalBlue on Feb 19, 2015, 11:14 AMsupposed to be sent as a string or something else? I am using VB.NET.

That's JSON. And yes, that's supposed to be a string. I might be wrong tho, so please correct me if I am.
.

Thijn


EK.IceFlake


Fuzzie

I don't think VB.Net would be ideal for handling JSON objects/string. JSON was created to work alongside Javascript. As a matter of fact, it is Javascript. You would have to create your own parser or find some JSON parser for VB.Net

Also, are you by any chance using Visual Basic to create an alternative for the VC-MP 0.4 Browser? If not, then why in the world do you need the data from the masterlist to be used with VB.Net?

Stormeus

Quote from: NE.CrystalBlue on Feb 20, 2015, 04:19 AM
Quote from: Thijn on Feb 19, 2015, 08:38 PMYou're using VB.Net? For what?
For handling the masterlist packets.

You're making a masterlist server in Visual Basic? Or is this a browser? Either way, why?

EK.IceFlake

Quote from: stormeus on Feb 20, 2015, 08:19 AM
Quote from: NE.CrystalBlue on Feb 20, 2015, 04:19 AM
Quote from: Thijn on Feb 19, 2015, 08:38 PMYou're using VB.Net? For what?
For handling the masterlist packets.

You're making a masterlist server in Visual Basic? Or is this a browser? Either way, why?
I am making a masterlist server to can on it when official masterlist is down etc. Maybe also release the masterlist

.

Quote from: NE.CrystalBlue on Feb 20, 2015, 09:46 AMI am making a masterlist server to can on it when official masterlist is down etc. Maybe also release the masterlist

LMFAO. I'm very confident when I say that yours will probably have more downtime then the official one. Mainly because you plan on hosting it on your PC since you obviously have no idea about Linux or servers in general. Or maybe you have Windows server. Who knows. But I highly doubt it.
.

EK.IceFlake

Quote from: S.L.C on Feb 20, 2015, 09:50 AM
Quote from: NE.CrystalBlue on Feb 20, 2015, 09:46 AMI am making a masterlist server to can on it when official masterlist is down etc. Maybe also release the masterlist

LMFAO. I'm very confident when I say that yours will probably have more downtime then the official one. Mainly because you plan on hosting it on your PC since you obviously have no idea about Linux or servers in general. Or maybe you have Windows server. Who knows. But I highly doubt it.
I dont care about it. I just want to know how to make my masterlist server.

Fuzzie

#13
If you are trying to achieve what VRocker did with the alternative VC-MP Server Browser than it's not that simple as it sounds. Actually it is from my perspective but I doubt you actually have the know how to do things like caching the masterlist every now and then, pinging the server to see if a response is received etc.

ysc3839

Quote from: NE.CrystalBlue on Feb 19, 2015, 11:14 AM@ysc3839
1. Analyzing is too hard
2. is {"success":true,"servers":[{"ip":"95.85.12.227","port":5192,"is_official":false},{"ip":"198.52.128.114","port":8192,"is_official":false},{"ip":"37.187.201.205","port":5194,"is_official":false},{"ip":"31.220.48.196","port":5176,"is_official":false},{"ip":"5.135.145.71","port":5200,"is_official":false},{"ip":"192.99.199.92","port":5724,"is_official":false},{"ip":"192.254.78.2","port":5190,"is_official":false},{"ip":"110.182.6.4","port":8192,"is_official":false},{"ip":"120.141.67.167","port":8192,"is_official":false},{"ip":"60.172.228.36","port":55555,"is_official":false}]} supposed to be sent as a string or something else? I am using VB.NET.
Thanks
It's json data. :)