View Single Post
Re: very simple debugging question (MSVC)
Old
  (#18)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: very simple debugging question (MSVC) - 05-09-2004

Quote:
Originally Posted by botman
Well, that's an easy problem to solve.

Download CS 1.3, rename it from .dll to .xxx and open it in the MS-DOS debugger. Look at the instruction at address 191620 (0x2EC84 in hex). You can just write down the 5 or 6 bytes at and after that location.

Then copy the CS 1.5 client.dll to "client.xxx" and load it in the MS-DOS debugger. Do a search for those same 5 (or 6) bytes. Do a disassembly at the address(es) displayed and see if they match up with the ones from CS 1.3.

When you find a match, modify the above source code to use the proper offset instead of 191620L.

P.S. If you don't know how to use the MS-DOS debugger, try searching on google.com for "ms-dos debug" or something similar.

botman
That won't work. If you open the CS 1.5 or 1.6 client.dll you'll find it isn't DLL at all. Valve just encrypted it.

However CS 1.3 client dll does work with CS 1.5 mp.dll (although there are some weird problems with spectating).

Last edited by Whistler; 05-09-2004 at 06:42..
  
Reply With Quote