Author Topic: HalfLife Server Info  (Read 17036 times)

0 Members and 1 Guest are viewing this topic.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
HalfLife Server Info
« 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!



Download: Here
And like a fool I believed myself, and thought I was somebody else...

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: HalfLife Server Info
« Reply #1 on: December 18, 2005, 01:26:18 pm »
* Joe[e2] demands source code.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #2 on: December 18, 2005, 03:13:01 pm »
* Joe[e2] 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.
And like a fool I believed myself, and thought I was somebody else...

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #3 on: December 18, 2005, 03:21:29 pm »
Oh btw, Its all in UDP.  ;)
And like a fool I believed myself, and thought I was somebody else...

Offline Mythix

  • The Dude
  • x86
  • Hero Member
  • *****
  • Posts: 1569
  • Victory
    • View Profile
    • Dark-Wire
Re: HalfLife Server Info
« Reply #4 on: December 19, 2005, 08:27:57 am »
It's really awesome.


www.gametiger.com

:)
Philosophy, n. A route of many roads leading from nowhere to nothing.

- Ambrose Bierce


Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: HalfLife Server Info
« Reply #5 on: December 19, 2005, 01:05:51 pm »
Player count is 6/10, but it shows 5 people? :P
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline igimo1

  • Full Member
  • ***
  • Posts: 420
    • View Profile
Re: HalfLife Server Info
« Reply #6 on: December 19, 2005, 03:10:19 pm »
Probably a bot

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: HalfLife Server Info
« Reply #7 on: December 19, 2005, 03:34:12 pm »
Bots? No
Bot count: 0

Nope. :(
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #8 on: December 19, 2005, 09:43:44 pm »
They are either connecting or downloading, and haven't reported a name to the server. :)
And like a fool I believed myself, and thought I was somebody else...

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: HalfLife Server Info
« Reply #9 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).
« Last Edit: December 21, 2005, 11:34:34 pm by Joe[e2] »
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #10 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
And like a fool I believed myself, and thought I was somebody else...

Offline Ersan

  • Full Member
  • ***
  • Posts: 143
  • Hi! I'm new here!
    • View Profile
Re: HalfLife Server Info
« Reply #11 on: May 24, 2006, 02:01:38 am »
Look on pscode, there are 5 or 6 sources in each language that do this.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #12 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.  :)
And like a fool I believed myself, and thought I was somebody else...

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #13 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

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: HalfLife Server Info
« Reply #14 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).
« Last Edit: November 08, 2006, 11:31:33 am by Sidoh »

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #15 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!

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: HalfLife Server Info
« Reply #16 on: November 08, 2006, 05:09:42 pm »
Not to mention a literal statement.

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #17 on: November 08, 2006, 08:28:40 pm »
mmm

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #18 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.
And like a fool I believed myself, and thought I was somebody else...

Offline d&q

  • Hero Member
  • *****
  • Posts: 1427
  • I'm here.
    • View Profile
    • Site
Re: HalfLife Server Info
« Reply #19 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.
The writ of the founders must endure.

Offline MyndFyre

  • Boticulator Extraordinaire
  • Moderator
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: HalfLife Server Info
« Reply #20 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
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: HalfLife Server Info
« Reply #21 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!

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #22 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?

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: HalfLife Server Info
« Reply #23 on: November 09, 2006, 04:44:37 pm »
The built in web browser....

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #24 on: November 09, 2006, 04:49:53 pm »
Yes...But did he use PSP SDK

Offline rabbit

  • x86
  • Hero Member
  • *****
  • Posts: 8092
  • I speak for the entire clan (except Joe)
    • View Profile
Re: HalfLife Server Info
« Reply #25 on: November 09, 2006, 05:11:09 pm »
What the hell are you talking about?  The SDK is for writing programs, not forum posts...

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #26 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.
« Last Edit: November 09, 2006, 05:46:44 pm by dlStevens »

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: HalfLife Server Info
« Reply #27 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
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline Sidoh

  • x86
  • Hero Member
  • *****
  • Posts: 17634
  • MHNATY ~~~~~
    • View Profile
    • sidoh
Re: HalfLife Server Info
« Reply #28 on: November 09, 2006, 05:48:03 pm »
Yeah, since you're the one who has a job programming it and everything. ;)

Offline Warrior

  • supreme mac daddy of trolls
  • Hero Member
  • *****
  • Posts: 7503
  • One for a Dime two for a Quarter!
    • View Profile
Re: HalfLife Server Info
« Reply #29 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#.
One must ask oneself: "do I will trolling to become a universal law?" And then when one realizes "yes, I do will it to be such," one feels completely justified.
-- from Groundwork for the Metaphysics of Trolling

Offline d&q

  • Hero Member
  • *****
  • Posts: 1427
  • I'm here.
    • View Profile
    • Site
Re: HalfLife Server Info
« Reply #30 on: November 09, 2006, 08:02:30 pm »
He did. I saw him do it.
The writ of the founders must endure.

Offline abc

  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Re: HalfLife Server Info
« Reply #31 on: November 09, 2006, 08:41:11 pm »
lol.

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: HalfLife Server Info
« Reply #32 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.  ;)
And like a fool I believed myself, and thought I was somebody else...