Clan x86

Technical (Development, Security, etc.) => General Programming => New Project Announcements => Topic started by: Blaze on December 17, 2005, 05:51:37 pm

Title: HalfLife Server Info
Post by: Blaze on December 17, 2005, 05:51:37 pm
Yeah, I just finished it.  It connects to any HalfLife 1/2 server and tells whos on it, what map, and all that Jazz!

(http://batserver.x86labs.org/HLSI.PNG)

Download: Here (http://batserver.x86labs.org/HLSI.exe)
Title: Re: HalfLife Server Info
Post by: Joe on December 18, 2005, 01:26:18 pm
/me demands source code.
Title: Re: HalfLife Server Info
Post by: Blaze on December 18, 2005, 03:13:01 pm
/me demands source code.

I would if it wasn't so messy... maybe.


btw, if you want to make your own, heres the protocol pages:

http://www.valve-erc.com/srcsdk/Code/Networking/serverqueries.html
http://developer.valvesoftware.com/wiki/Source_Server_Queries

The first page is better since it also includes the format of the HL1 version.
Title: Re: HalfLife Server Info
Post by: Blaze on December 18, 2005, 03:21:29 pm
Oh btw, Its all in UDP.  ;)
Title: Re: HalfLife Server Info
Post by: Mythix on December 19, 2005, 08:27:57 am
It's really awesome.


www.gametiger.com

:)
Title: Re: HalfLife Server Info
Post by: Newby on December 19, 2005, 01:05:51 pm
Player count is 6/10, but it shows 5 people? :P
Title: Re: HalfLife Server Info
Post by: igimo1 on December 19, 2005, 03:10:19 pm
Probably a bot
Title: Re: HalfLife Server Info
Post by: Newby on December 19, 2005, 03:34:12 pm
Bots? No
Bot count: 0

Nope. :(
Title: Re: HalfLife Server Info
Post by: Blaze on December 19, 2005, 09:43:44 pm
They are either connecting or downloading, and haven't reported a name to the server. :)
Title: Re: HalfLife Server Info
Post by: Joe on December 21, 2005, 11:31:07 pm
Quote
Packet Number     byte    The lower four bits represent the number of packets (2 to 15) and the upper four bits represent the current packet starting with 0

That's pretty interesting, using a nybble packetID and a nybble for something else. I wouldn't send more than one packet at once like they describe, but that could be useful if you're only supporting 16 packets.

EDIT -
I hate the way they handle some stuff, such as L for Linux and W for Windows, which I'd do 0/1 for, and only providing 1 for VAC/Password (not specifing that 0 is false).
Title: Re: HalfLife Server Info
Post by: Blaze on December 22, 2005, 04:21:42 pm
You shouldn't need to send more then one packet at a time really, other then the rules which are useless.

0/1 is true and false, not Linux and Windows, although iago would think they are the same. :)

They assume anyone who would need the protocol is smart enough to tell that 0 is false, else is true. :P
Title: Re: HalfLife Server Info
Post by: Ersan on May 24, 2006, 02:01:38 am
Look on pscode, there are 5 or 6 sources in each language that do this.
Title: Re: HalfLife Server Info
Post by: Blaze on May 24, 2006, 09:19:10 pm
Look on pscode, there are 5 or 6 sources in each language that do this.

Yeah, and... I'll have the server up sometime this week if you want try it, anyone.  :)
Title: Re: HalfLife Server Info
Post by: abc on November 08, 2006, 11:07:52 am
Heh, I just took a look at the documetation, Looks fairly easy, I'm going to program on in C#  :D
Title: Re: HalfLife Server Info
Post by: Sidoh on November 08, 2006, 11:27:12 am
Congratulations.  Anyone can make crazy claims, but that doesn't mean that they should be praised for them.  You're lucky I'm nice.

I'd be careful flaunting your programming abilities here.  Someone might bite your fingers off.  (Yes, that was meant to be a joke and a metaphor).
Title: Re: HalfLife Server Info
Post by: abc on November 08, 2006, 03:23:25 pm
Oh? Flaunting? No Way.

I can honestly say, almost all of you are better then me, Hah!
Title: Re: HalfLife Server Info
Post by: rabbit on November 08, 2006, 05:09:42 pm
Not to mention a literal statement.
Title: Re: HalfLife Server Info
Post by: abc on November 08, 2006, 08:28:40 pm
mmm
Title: Re: HalfLife Server Info
Post by: Blaze on November 08, 2006, 10:01:51 pm
On a side note, I'm rebuilding this in my comp science class.  :)

Also, I wrote this on my PSP, and it hurt.
Title: Re: HalfLife Server Info
Post by: d&q on November 09, 2006, 12:48:48 am
Yeah, its not wise to boast here. However, when you've reached the level of programming proficiency that I have, you can flaunt your talents as much as you want. You see, I'm probably the C#/Java guru of these forums.
Title: Re: HalfLife Server Info
Post by: MyndFyre on November 09, 2006, 03:42:35 am
Yeah, its not wise to boast here. However, when you've reached the level of programming proficiency that I have, you can flaunt your talents as much as you want. You see, I'm probably the C#/Java guru of these forums.
/chuckle
Title: Re: HalfLife Server Info
Post by: rabbit on November 09, 2006, 06:48:34 am
On a side note, I'm rebuilding this in my comp science class.  :)

Also, I wrote this on my PSP, and it hurt.
Get 2.71 SE-B" and a keyboard replacement!
Title: Re: HalfLife Server Info
Post by: abc on November 09, 2006, 12:45:14 pm
Blaze, May I ask how did you write then on your PSP? Did you use the PSP SDK?
Title: Re: HalfLife Server Info
Post by: rabbit on November 09, 2006, 04:44:37 pm
The built in web browser....
Title: Re: HalfLife Server Info
Post by: abc on November 09, 2006, 04:49:53 pm
Yes...But did he use PSP SDK
Title: Re: HalfLife Server Info
Post by: rabbit on November 09, 2006, 05:11:09 pm
What the hell are you talking about?  The SDK is for writing programs, not forum posts...
Title: Re: HalfLife Server Info
Post by: abc on November 09, 2006, 05:43:32 pm
Blaze said that he built a Half-Life 1/2 application that connects to a server and retrieves the information. He Just said, correct me if i'm wrong, that he built one on his PSP too. That has nothing to do with a forum...

Quote
On a side note, I'm rebuilding this in my comp science class.  Smiley

Also, I wrote this on my PSP, and it hurt.

Ah, I think I see what you ment rabbit.
I misunderstood, I thought he ment he re-wrote that programp on his PSP, not the forum post.
Title: Re: HalfLife Server Info
Post by: Warrior on November 09, 2006, 05:44:10 pm
Yeah, its not wise to boast here. However, when you've reached the level of programming proficiency that I have, you can flaunt your talents as much as you want. You see, I'm probably the C#/Java guru of these forums.
/chuckle

Go ahead, and tell them I'm the C# guru here. :D <3
Title: Re: HalfLife Server Info
Post by: Sidoh on November 09, 2006, 05:48:03 pm
Yeah, since you're the one who has a job programming it and everything. ;)
Title: Re: HalfLife Server Info
Post by: Warrior on November 09, 2006, 07:47:15 pm
Yeah, since you're the one who has a job programming it and everything. ;)

HAH, I WROTE C#.
Title: Re: HalfLife Server Info
Post by: d&q on November 09, 2006, 08:02:30 pm
He did. I saw him do it.
Title: Re: HalfLife Server Info
Post by: abc on November 09, 2006, 08:41:11 pm
lol.
Title: Re: HalfLife Server Info
Post by: Blaze on November 14, 2006, 07:51:57 am
On a side note, I'm rebuilding this in my comp science class.  :)

Also, I wrote this on my PSP, and it hurt.
Get 2.71 SE-B" and a keyboard replacement!

I've had 2.71 SE-B'' since November 3rd.  Pffft, only noobs do that.  ;)