Jump to content

xestre

New Members
  • Posts

    2
  • Joined

  • Last visited

xestre's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Sorry for bumping, but I really need help with this. Anyone with experience in this field please reply.
  2. Recently I started getting into server queries, attempting to retrieve data from game servers. I started with the source games (think of CS:S, TF2 etc etc) and it works quite well my script shown below. <?php $handle = fsockopen("udp://127.0.0.1", 7777, $errno, $errstr); stream_set_timeout($handle, 2); fwrite($handle, "\xff\xff\xff\xff\x54\x53\x6f\x75\x72\x63\x65\x20\x45\x6e\x67\x69\x6e\x65\x20\x51\x75\x65\x72\x79\x00"); $response = fread($handle, 256); echo $response; ?> https://developer.valvesoftware.com/wiki/Server_queries#A2S_INFO you'll see what is needed in order to request data. However the problem arises when I want to query an other game, that is not of the source engine. Given the picture below. It needs to be a non-blocking UDP connection, but I've got no idea how to create such request. I know that for the first 3 bytes I need: 0x4d, 0x49, 0x56, however how I do continue? Can someone help me out with PHP? Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.