Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:21

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: COD2 Udp Sending Line example "connect "
PostPosted: 28 Nov 2010 20:07 

Joined: 28 Nov 2010 19:58
Posts: 5
Luigi can you tell me an example sending message?
... "connect " and i don't know how it ends.
Thanks!

EDIT:
and how it connects? only an udp sending?


Top
 Profile  
 
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 28 Nov 2010 20:40 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
in short "connect" is followed by the informations of the user compressed with huffman.
and in such information there is also the "challenge" key that the client must request requst with the "getchallenge" packet.

the rest depends by the programming language you use.
if you know C you can take a look to my q3fill tool.


Top
 Profile  
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 29 Nov 2010 14:34 

Joined: 28 Nov 2010 19:58
Posts: 5
I using C# and I saw an example connecting line for quake3 but it doesn't work says: EXE_DIFFERENT_VERSION 1.3
My line in C Sharp:
string command = @"connect \challenge\" + chl + @"\qport\0\protocol\0\cl_guid\0\cl_punkbuster\1\snaps\40\rate\25000\name\007\model\none\password\\g_password\\bdTicket\0\bdTicketTime\0";

chl is getChallange response number
something is needed to this line?


Top
 Profile  
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 29 Nov 2010 17:40 

Joined: 28 Nov 2010 19:58
Posts: 5
I tried with this:
command = @"????????connect \cg_predictItems\1\cl_punkbuster\1\cl_anonymous\0\color\4\head\default\model\multi\snaps\20\rate\25000\name\teeeeest111\protocol\118\challenge\"+chl+@"\qport\0";
But it Recv.:????disconnect


Top
 Profile  
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 30 Nov 2010 12:54 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
have you compressed the part after "yyyyconnect "?


Top
 Profile  
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 30 Nov 2010 14:43 

Joined: 28 Nov 2010 19:58
Posts: 5
i only send this string on UDP.
i think i haven't compressed.


Top
 Profile  
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 03 Dec 2010 21:25 

Joined: 28 Nov 2010 19:58
Posts: 5
how to compress it? help pls!


Top
 Profile  
 
 Post subject: Re: COD2 Udp Sending Line example "connect "
PostPosted: 04 Dec 2010 01:19 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the function is the following:
http://aluigi.org/papers/q3huff.h

and this one is the usage example:
http://aluigi.org/papers/q3huffexample.c


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron