![]() |
Re: very simple debugging question (MSVC)
is it possible to debug bot on non-dedicated server ?
|
Re: very simple debugging question (MSVC)
Yes, it works the same way except you can step through your code without timing out.
With steam its a little different though and I can't remember how exactly to do it. |
Re: very simple debugging question (MSVC)
There is, however, an internal check inside the Counter-Strike client.dll that will make the game simply exit if a debugger is detected in the system. Using the normal Counter-Strike client.dll it is NOT possible to debug your bot inside a listenserver.
What you can do however, is debug a DEDICATED server, then connect to it using the loopback connection : hl.exe -dev -console +connect 127.0.0.1:27015 this command line will make HL connect to the HLDS server that is running on your OWN machine (this way you will be able to debug your bot while you are playing the game). |
Re: very simple debugging question (MSVC)
Sorry to revive old thread, but I've found way how to debug without hlds
Quote:
*edit* well I haven't spawned a bot yet, I wonder if they could spawn if ther is no client.dll, damn. *edit2* Oh well, they spawn but they don't join :) Damn this client.dll. At least I can debug something. BTW is cs client 1.6 with steam terminating if it detect debugger too ? Do you have to debug hlds.exe or you can debug hl.exe ? |
Re: very simple debugging question (MSVC)
I think Count Floyd has a patched version of CS 1.3 which has that debugger check removed. You can find a version of CS 1.3 and take a look at the RACC install program source code for the patch. PMB has included it.
Also Cs 1.6 doesn't have debugger check code. |
Re: very simple debugging question (MSVC)
I've found it
Code:
FILE *fp,*fp2; |
Re: very simple debugging question (MSVC)
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 |
Re: very simple debugging question (MSVC)
Quote:
However CS 1.3 client dll does work with CS 1.5 mp.dll (although there are some weird problems with spectating). |
All times are GMT +2. The time now is 00:20. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.