Author Topic: HalfLife Server Info  (Read 17021 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 »