I followed the Chams Wallhack tutorial all the way through and it works perfectly as long as I don't change resolutions.. If I try to even switch the resolution I get a DirectX error. Anyone else have this problem or a fix?
I'm doing this with CoD 4 just like your tutorial. I have to inject the hack right as CoD 4 is starting up for some reason.. If I try and do a manual injection after the games already been started up, that hack simply won't work, so I'm forced to their default 1200x800 resolution each time I start up the game.. Trying to figure out how to fix it, I'll post it if I find anything. And thanks for the tutorials Fleep! They've helped me a ton ;D
Oh I see what your saying, first thing I would recommend is use AutoInject as your injector and run it before starting Cod4, this will mean that the hack is injected as soon as the game is loaded automatically.
The reason why the hack doesnt run after the game has started is because you NEED to hook into DirectX when it is being initialized in the game so you can run your own code from your functions.
So just set the game to whatever resolution you want and fullscreen/windowed mode then close Cod4 and run AutoInject with your chosen DLL and Iw3sp or Iw3mp(depending on single or multiplayer ) as your game of choice to inject written in the AutoInject.ini file.
Once you set that up all you need every time is to run autoinject and run Cod4 after and the DLL will be injected straight away in whatever resolution you chose .
The way i see it is the hook that Fleep used in his tutorial has to be run while the game is starting, this is all me just guessing i havent actually seen how he hooks the functions in the tutorial files, well ill test my hook and tell u guys if it works even if i inject after the game has loaded, stay tuned