Thread: Quake3 Protocoll

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    4

    Unhappy Quake3 Protocoll

    Hey,

    I have been searching for nearly 2 hours now and didn't get a solution for this problem.

    I want to connect to a Gameserver via the quake3 protocoll: Quake 3 Protocol

    But everytime when I tried to send getstatus, I get the response "disconnect" from the server.

    In Delphi I can send this like that:

    Code:
    send := #$FF#$FF#$FF#$FF+'getstatus'+#$00;
    But how to declare this variable in c++ in order to get the right Server response???

    Thanks
    SilentHunter

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Is that supposed to be a string? Then write it as a string: "\xFF\xFF\xFF\xFFgetstatus\0".

    (Edit: I'm including the explicit null-terminator 'cause you did. If you don't need two null terminators you can leave the explicit one out.)

  3. #3
    Registered User
    Join Date
    Oct 2009
    Posts
    4
    Hi,

    yes actually in Delphi it's a simple string, but I've read in some c# boards, that you have to send this in bytes or something like that.

    Sorry \xFF\xFF\xFF\xFFgetstatus\0 doesn't work. It simply returns disconnect.

  4. #4
    Registered User
    Join Date
    Oct 2009
    Posts
    4
    P.s. I'm using the IndyUDP Component for that (by the way)
    Sry for double posting. I didn't clicked at the right button
    Last edited by SilentHunter; 10-18-2009 at 02:27 PM.

  5. #5
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    I've never used the protocol, so all I know is that the string you wanted looks like what I wrote above. What you are supposed to do with it is up to you.

  6. #6
    Registered User
    Join Date
    Oct 2009
    Posts
    4
    Hmm okey thanks, I'll try this not using strings ...

  7. #7
    Registered User
    Join Date
    Aug 2006
    Posts
    100
    Firstly, you will have problems with embedded zero's with C string functions, that could be a problem. Then again, following your link above, the getstatus request is terminated by a line feed character, NOT zero...
    Code:
    FF FF FF FF 67 65 74 73 74 61 74 75 73 0A       ;˙˙˙˙getstatus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. DBZ Mod 4 Quake3
    By commanderrulz in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 09-07-2002, 05:35 PM
  2. Doom3 or Quake3?
    By Ruski in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 08-03-2002, 04:44 AM