Author Topic: Server information & status in Delphi or PHP  (Read 567 times)

0 Members and 1 Guest are viewing this topic.

Offline M[a]nny

  • Soldat Beta Team
  • Major
  • ******
  • Posts: 52
Server information & status in Delphi or PHP
« on: May 18, 2009, 01:53:07 am »
Hello guys.

I'm working on the client application in Delphi which provides connecting to my private servers.
The only thing that i can't do is showing server stats (what map is playing, how many players are playing, how many time is remaining etc). Is there any way how to reach that? I hope it's not very hard but i don't know how to begin... ???

Offline -Vis-

  • Flagrunner
  • ****
  • Posts: 980
  • Zarch
Re: Server information & status in Delphi or PHP
« Reply #1 on: May 18, 2009, 02:42:43 am »
You need to send a REFRESH request to the server, and it will return a packet containing all the required data. Here is a thread with some useful code snippets to parse the REFRESH packet for you:

http://forums.soldat.pl/index.php?topic=212.0

I can't really help you beyond that though, as the only client I've made is in mIRC script, and I know nothing about Delphi or PHP. ;)


Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Server information & status in Delphi or PHP
« Reply #2 on: May 19, 2009, 02:04:22 am »
What you want is possible within your delphi app. Get familiar with how sockets work, then read this wiki page. That'll give you the outline on what you need to do.
There are other worlds than these