![]() |
its driving me nuts !
Please tell me among these stuff , which is needed in order the game to run properly (both listen server & hlds) , I have try commented some but it crash the game horribly ... Please help me if you know ! And its for hl1
Code:
pFunctionTable->pfnGameInit = GameDLLInit; And yes , for HPB_template 4.0 :) |
Re: its driving me nuts !
look at engine.cpp and see which function actually has code
|
Re: its driving me nuts !
I have already cleaned the engine.cpp , this one is for dll.cpp , I comment all functions that does not have any code inside , but when I try to run the game , swds.dll crashes ...
[EDIT] This is what I left ... Code:
pFunctionTable->pfnGameInit = GameDLLInit; |
Re: its driving me nuts !
none of these hooks are "required" to make the game run. if the hlds.dll crashes, I'm sure it's bacause of something else
|
Re: its driving me nuts !
no , when I uncommented the other functions , the game runs like normal
|
Re: its driving me nuts !
ALL of them are required to be in the table, since you can't pass only PART of the table to the game DLL code.
You CAN however, copy the contents (function pointers) of the original table into your hooked DLLs version of the table and simply replace the ones you want to override, but you can't just comment out some of them and leave that slot in the table empty. botman |
Re: its driving me nuts !
Well there are 2 situations.
If your bot is a metamod plugin, you only need to hook the functions for which you want to do something. If your bot is NOT a metamod plugin, you need to hook ALL the functions from both interfaces, whether you do something in them OR NOT. If you forget one, your game will crash sooner or later. *edit* argh, botman fired before me again. This town is too small for two, cowboy :D |
Re: its driving me nuts !
I don't think so, as if we don't modify that slot of function, at the last it will just pass the original one in the engine to the game dll.
the "pengFuncsFromEngine" is the one which is passed from the engine as a parameter of this function |
All times are GMT +2. The time now is 18:58. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.