Hey sky, whats up.......
As I said, its not the detours if you want to see it this way:
If you do a simple midfunction hook on present / endscene and reset, all is done...
Hook after the first 5 bytes, HS doesnt scan further
Yes I need help again.
I've already bugged 2 certain coders with my endless need for assistance, which they have kindly provided, now I would rather not pester them further with the cries for help. So instead I ask the forum as a whole,
I am already done with the menu, everything is fine, the hacks are working, the only problem is I need a detour function.
-Credits to AzorbixCode:void *DetourCreate(BYTE *src, const BYTE *dst, const int len) { BYTE *jmp = (BYTE*)malloc(len+5); DWORD dwBack; VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack); memcpy(jmp, src, len); jmp += len; jmp[0] = 0xE9; *(DWORD*)(jmp+1) = (DWORD)(src+len - jmp) - 5; src[0] = 0xE9; *(DWORD*)(src+1) = (DWORD)(dst - src) - 5; for (int i=5; i<len; i++) src[i]=0x90; VirtualProtect(src, len, dwBack, &dwBack); return (jmp-len); }
Great... now I have the function, but I don't know what the hell to do with it. I'm completely stumped.
I tried a tutorial: https://www.progamercity.net/code-tut...functions.html
But that tutorial is so confusing, it made me frustrated trying to figure it out lol.
So I ask, please, can someone lend a helping hand?
Hey sky, whats up.......
As I said, its not the detours if you want to see it this way:
If you do a simple midfunction hook on present / endscene and reset, all is done...
Hook after the first 5 bytes, HS doesnt scan further
Progress with my game - "Disbanded"
- Fixed FPS lag on spawning entities due to the ent_preload buffer!
- Edit the AI code to get some better pathfinding
- Fixed the view bug within the sniper scope view. The mirror entity is invisible now!
- Added a new silencer for ALL weapons. Also fixed the rotation bugs
- Added a ton of new weapons and the choice to choose a silencer for every weapon
- Created a simple AntiCheat, noobs will cry like hell xD
- The name will be Disbanded, the alpha starts on the 18th august 2014
Some new physics fun (Serversided, works on every client)
My new AI
https://www.youtube.com/watch?v=EMSB1GbBVl8
And for sure my 8 months old gameplay with 2 friends
https://www.youtube.com/watch?v=Na2kUdu4d_k
Wait... am I understanding that you have a detour but don't know what to do with it? If so, just use it in your hook. Here's an example:
Once you have something similar to that, just do this in your DllMain:
Change the Text of CreateDev into CreateDevice, now you have Two Errors. Erase hk from Present/Reset. now you have no errors job.
Done.. I think.
If not:
227 516 811
4713
---------- Post added at 08:48 PM ---------- Previous post was at 08:08 PM ----------
LOL @ussr editting some shit in my project then leaving once it failed.
Fixed it bro. But nice try.