Luigi Auriemma

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

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 20 posts ] 
Author Message
 Post subject: HLDS - Protocol 47 and 48 at same time?
PostPosted: 01 Feb 2009 02:55 

Joined: 08 Sep 2007 18:55
Posts: 22
Hi Luigi.

There are two patches already relased, but they are too buggy to use it (ex. cbooster works only on bugged 3651 binary, source isnt published).

Can you do this? I think patch would decive HLDS to all players has protocol v47. When player connect, game client sends anything like this (from csdos.pl)
Code:
$q=$cmd."connect 47 $c2 \"\\prot\\4\\unique\\0\\raw\\valve\\cdkey\\f0ef8a36258af1bb64ed866538c9db76\"\"\\\"\0\0";
I think in protocol v48 this is simply changed to "48", so enough to change it ? Strings looks similar (maybe change it to be same?) -> http://up.programosy.pl/foto/luigi.jpg
Thanks for advice.

EDIT: Oh :/ i changed it in memory editor to 47 and game freeze while connect :o I think string must be same, but how to do it, when lenght is different ?

Luigi, please, help me...


Top
 Profile  
 
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 01 Feb 2009 13:02 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
uhmmm sincerely I have not understood what is the subject.
I mean, a patch for fixing what exactly? fixing csdos or what?
for csdos/hlfreeze/btbp I released a patch various months ago:

http://aluigi.org/patches.htm#halflife


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 02 Feb 2009 06:09 

Joined: 08 Sep 2007 18:55
Posts: 22
No, no!

A few weeks ago VALVE updated STEAM version of game. What changed? Protocol number when connecting and -> http://up.programosy.pl/foto/luigi.jpg

I want to old CS 1.6 server (nonsteam) can accept new and old protocol at same time. This patch is already relased, but with no source / works only on bugged files.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 02 Feb 2009 14:35 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ah ok now it's clear.
I need to know the exact error showed in the client when it tries to join and the swds.dll file.
for example here in hl 4.1.1.1e the handling of the protocol number is bypassable through a 0xeb at offset 0x00081AD5 of swds.dll where it's enough to search the phrase "This server is using an older..." but naturally the messages could have been changed in the Steam versions.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 05:55 

Joined: 08 Sep 2007 18:55
Posts: 22
OK :)

Error message -> http://up.programosy.pl/foto/message1.jpg (of course "www.cs-puchatek.pl" is a server CVAR).
swds.dll from steam version ? I cant find it in gfc packages oO (look -> http://up.programosy.pl/foto/message2.jpg + http://up.programosy.pl/foto/message3.jpg). I looked in these files for this message, but... no results.

PS. Maybe you have not understood me, buy I'm wanting patch for linux server, excatly for this file -> http://www.speedyshare.com/255665224.html

Really thanks.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 10:11 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ok done:

http://aluigi.org/patches/hlanyproto.lpatch

this one should work with any version of half-life on both windows and linux.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 10:52 

Joined: 08 Sep 2007 18:55
Posts: 22
You are a god! :)

but when I try to connect with steam version I get message
Code:
STEAM validation rejecte
and into server console
Code:
SteamStartValidatingUserIDTicket:  Returned ESteamError 25


Any suggestion (maybe patch to total disable validating user id tickets?) ?

====

EDIT: I used esteamation patch to disable validation userid tickets, and "works". But when I connect, at "parsing server info" message kick's me with message
Code:
Server returned version 47, not 48
Last 32 messages parsed.
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
199 0008 svc_disconnect
614 0008 svc_disconnect
2397 0000 svc_print
2397 0041 svc_serverinfo
BAD:   47:svc_bad
Wrote erroneous message to buffer.dat
Last 32 messages parsed.
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
0 0000 svc_bad
199 0008 svc_disconnect
614 0008 svc_disconnect
2397 0000 svc_print
2397 0041 svc_serverinfo
BAD:   47:svc_bad
Wrote erroneous message to buffer.dat
Hmm ? What with this
Code:
Server returned version 47, not 48
?


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 11:21 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
try using the updated attached patch (I will update the one on the website when we will have the definitive one)


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 11:33 

Joined: 08 Sep 2007 18:55
Posts: 22
Ok, ticket validation is disabled.

Now only problem with steam clients [code]
Server returned version 47, not 48[/code] any way to fix this ?

I really need this, of course thanks for your time!


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 11:45 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
done, new version attached


Attachments:
hlanyproto.lpatch [2.01 KiB]
Downloaded 561 times
Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 12:00 

Joined: 08 Sep 2007 18:55
Posts: 22
Well, but if you hardcore protocol numer 48, players with 47 cannot connect.

Have you any idea (maybe small metamod plugin? I'm only AMXMODX plugins writter, so I dont know how to do this oO)?


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 12:06 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the protocol is hardcoded and the client reads it from the server's packets and compare it with their own so you can't allow any client protocol to join, you are obbligated to choose what client protocol allowing in your server.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 12:13 

Joined: 08 Sep 2007 18:55
Posts: 22
Look into attachment. I uploaded small metamod plugin which allow protocol 47 and 48 to play (and additionally allow to add old server to masterlist, but this is useless - now fixed).

Why I dont using this? Because not working with 2738 (http://www.speedyshare.com/255665224.html) binary.


Attachments:
cbooster_master_i386.rar [9.61 KiB]
Downloaded 456 times
Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 12:37 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
this is something not possible with a binary fix.

a lame "idea" would be to insert an instruction in SV_CheckProtocol which writes the current client protocol in the hardcoded one of SV_SendServerinfo but it's not possible to make this thing "universal", has the downside of being not thread-safe (because it's just a work-around without the possibility to use an internal database interfaced with SV_SendServerinfo and its client_t argument) and I don't know what's the address of your SV_SendServerinfo at runtime.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 12:51 

Joined: 08 Sep 2007 18:55
Posts: 22
Hmm, you believe this is too hard... so can you explain me how "cbooster" work? Maybe can you patch this "cbooster" file to work with older binary ?

On 3651 works and tell
Code:
[CSPATCH]: Con_Printf() found at 0x7066e4
[CSPATCH]: Patch1 at 0x70e943; codemem at 0x824e8f8; origbytes=0xc483c689
[CSPATCH]: Patch1 diff 0x7b3ffb0;
[CSPATCH]: Patch2 at 0x70f4e5; codemem at 0x824e918; origbytes=0x4aa405
[CSPATCH]: Patch2 diff 0x7b3f42e;
[CSPATCH]: Patch3 at 0x70c563; codemem at 0x824e970; origbytes=0x558b2f6a
[CSPATCH]: Patch3 diff 0x7b42408;
[CSPATCH]: Patch4 at 0x70f029; origbytes=0xfb6ae6e8                       

on 2738
Code:
[CSPATCH]: Con_Printf() found at 0x704e64
[CSPATCH]: Patch1 at 0x70d0c3; codemem at 0x9030398; origbytes=0xc031fffb
[CSPATCH]: Origbytes mismatch                                           


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 03 Feb 2009 13:12 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
no, I have said that it's not possible through a "binary fix" and that cbooster is not a binary fix but a hooker.
then it performs the hooking of recvfrom which is superflous (not that I have not tested it and I have neither disassembled it so the hooking of recvfrom could be related to another feature of the tool), in fact hooking SV_CheckProtocol is possible to get directly the IP and the protocol of the client without loosing CPU cycles doing the manual parsing.

the fact that it doesn't work with your version is probably caused by the pattern (the bytes to find) which is not the same as in the version for which was created cbooster


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 04 Feb 2009 10:00 

Joined: 08 Sep 2007 18:55
Posts: 22
So no way :( ?


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 04 Feb 2009 15:11 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
contact the author of cbooster


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 04 Feb 2009 17:15 

Joined: 08 Sep 2007 18:55
Posts: 22
[quote="aluigi"]contact the author of cbooster[/quote]
Yeah, I already tried this.


Top
 Profile  
 
 Post subject: Re: HLDS - Protocol 47 and 48 at same time?
PostPosted: 18 May 2009 02:51 

Joined: 08 Sep 2007 18:55
Posts: 22
Hi Luigi.

Can you add to this patch one feature - disabling cdkey checking (to remove "invalid cdkey" message) ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 20 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