![]() |
what todo about game dlls who are build in debug mode
I'm not sure if anyone here has ever tried to run his bot when the server dll was build in debug mode...but when you do you get tons of errors all the time like 'can't find address <hex>' and 'no export <a server dll function here, mostly entities> printed out in the console. Also the game seems to crash because of this problem. When you build your bot dll in debug mode the game is pretty stable, mostly for about 30 mins. But when you build your bot dll in release mode it will crash after a few secs after you made a bot. When it crashes, its never in my bot code.
Does anyone encouterd this and have a solution ???:( |
Re: what todo about game dlls who are build in debug mode
I know at least why it says "can't find proc XXXXXXX". It's because the game DLL doesn't implement the single player features (save/load) and single player specific classes. It should not disrupt multiplayer gaming though, and if you hook FunctionFromName and NameForFunction and build your own exports array like botman does in his HPB_bot (or like I do with the RACC template - see the LoadSymbols() function) this error should vanish away.
I'm not sure this has something to do with your crashes, though... |
Re: what todo about game dlls who are build in debug mode
If your code runs fine with a debug build but crashes with a non-debug build this is almost certainly caused by using some variable or memory that has not been initialized.
The debug builds zeros out ALL variables, the release builds do not do this. It doesn't have to crash in your code either. You can be sending in some initialized struct, variable or memory into a Hl/ game function causing IT to crash. |
Re: what todo about game dlls who are build in debug mode
Quote:
|
Re: what todo about game dlls who are build in debug mode
Quote:
Gonna check this out. And its prolly my code....when I disbled some stuff it didn't crash 9_9. Anyways thanx for the replies. |
Re: what todo about game dlls who are build in debug mode
weee fixed the crash bug in release mode 8)
I had a simple mistake like this: Code:
char *ARandomStringTable = |
Re: what todo about game dlls who are build in debug mode
You could do that:
Code:
char *ARandomStringTable = *edit* well, provided you don't forget to do "while (*ARandomStringTable)" instead too. |
Re: what todo about game dlls who are build in debug mode
hmm..nope you need 0 instead of "\0" :)
|
Re: what todo about game dlls who are build in debug mode
lol, saw that, I edited my post but you replied in the meanwhile :D
|
All times are GMT +2. The time now is 21:10. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.