[HELP] Kotentopf's Base

Posts 115 of 20 · Page 1 of 2
[HELP] Kotentopf's Base
Okay...
I have gotten through this base pretty well on my own, I have learned about 95% of this base, and I understand the code, and what it all does. The one thing I am not understanding, however, is what could cause me to crash in 2 mins. I have tried everything I could think of to get this damn base to not D/C in 2 mins, but it still continues to do so.

I have commented out the PTC Method and the commands, and that stops the menu from D/Cing before the login screen, but still makes it D/C after 2 mins of being in-game.

I can't help but think it has something to do with the hook, but if it is the hook, you would think that the menu would NOT show up at all...
Which, as of the menu, it shows up when I am NOT in a game, but when I am IN a game, it doesn't show up.

I know about the IsInGame(); function, and I am not trying to implement that yet, until I get this damn menu to work without any D/C.

So, if anyone could either explain to me what is going on here, or at least tell me a way to stop it from D/Cing, that would be very helpful. I will +REP and Thank anyone who actually gives me a straight answer.

I don't need a spoonful of code, or anything like that. Just a simple explanation, so that I can possibly understand what the problem is here.

If you require any bits of the source to help me solve my problem, then post here and tell me, and I will PM you the bits you may need to help me with this.
Comment out the Memory Hacks, post the result
Quote Originally Posted by kotentopf View Post
Comment out the Memory Hacks, post the result
Well, @kotentopf, the thing is... There's NO memory hacks on there. I haven't even started with that yet.
I got the one you posted on G-Sys, and I just have been trying to get the base to work without D/Cing before even putting anything INTO it.

  • NO memory hacks are in there.
  • PTC method AND PTC commands are all commented out.
Quote Originally Posted by D-Vid the DBag View Post


Well, @kotentopf, the thing is... There's NO memory hacks on there. I haven't even started with that yet.
I got the one you posted on G-Sys, and I just have been trying to get the base to work without D/Cing before even putting anything INTO it.

  • NO memory hacks are in there.
  • PTC method AND PTC commands are all commented out.
thats the public detours
this can be the point of crash
Quote Originally Posted by kotentopf View Post
thats the public detours
this can be the point of crash
Okay, well... If I am reading you correctly, you're saying that the detour you're using may be the reason for the 2 min crash?

Here's the Detour:
[highlight=c++]
//===============================================
//=============Create the Detours================
//===============find out ur self================
//===============================================

void *cD3D:etourCreate(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);
}
[/highlight]

Here's the hook:
[highlight=c++]
//===============================================
//=================The Hook===xD=================
//===============================================

void cD3D::Hook()
{
pReset = (oReset)D3D.DetourCreate(( PBYTE )Hack.Voids.VTable(16), ( PBYTE )Reset, 5 );
pPresent = (oPresent)D3D.DetourCreate(( PBYTE )Hack.Voids.VTable(17), ( PBYTE )Present, 5 );
}
[/highlight]

and here's the VTable:
[highlight=C++]
//===============================================
//=========VTable Hook, find out ur self=========
//===============================================

DWORD cVoids::VTable(int index)
{
DWORD* devicePtr = 0;

DWORD hD3D9 = NULL;

while(hD3D9 == NULL){
Sleep(100);
try
{
hD3D9 = (DWORD)GetModuleHandle(L"d3d9.dll");}
catch(...)
{
hD3D9 = NULL;
}}

DWORD addy = FindPattern(hD3D9, 0x1280000, (PBYTE)"\xC7\x06\x00\x00\x00\x00\x89\x86\x00\x00\x 00\x00\x89\x86", "xx????xx????xx");
Hack.Voids.HEXMemory(&devicePtr, (void*)(addy+2), 4);

if(devicePtr == NULL){
return 0;}

return devicePtr[index];

}
[/highlight]

I don't know if what you're saying is that these are the main cause of the D/C, but if so, could you please explain how to fix it?

EDIT: These are EXACTLY as you had them from the base I downloaded. I did NOT make ANY changes to ANYTHING in the base, other than commenting out the PTC stuff, to see if maybe that was the cause of the original D/C before I got to the login. Which resulted in the problem I have now, where it works for about 2 mins and then the game crashes.

EDIT2: #91; is [
Quote Originally Posted by D-Vid the DBag View Post

Okay, well... If I am reading you correctly, you're saying that the detour you're using may be the reason for the 2 min crash?

Here's the Detour:
Here's the hook:
and here's the VTable:
I don't know if what you're saying is that these are the main cause of the D/C, but if so, could you please explain how to fix it?

EDIT: These are EXACTLY as you had them from the base I downloaded. I did NOT make ANY changes to ANYTHING in the base, other than commenting out the PTC stuff, to see if maybe that was the cause of the original D/C before I got to the login. Which resulted in the problem I have now, where it works for about 2 mins and then the game crashes.

EDIT2: #91; is [

you know his base is supposed to be in unicode right? (L"d3d9.dll") < good pointer

i found that out when i tried to replace his detours with the updated ones for gellins base, which failed BTW so dont bother LOL
Quote Originally Posted by Grim View Post

you know his base is supposed to be in unicode right? (L"d3d9.dll") < good pointer

i found that out when i tried to replace his detours with the updated ones for gellins base, which failed BTW so dont bother LOL
What would Unicode have to do with the Detour ?
Quote Originally Posted by whit View Post

What would Unicode have to do with the Detour ?
it fucked me up.. i still haven't gotten it to work properly, but when i tried using the updated detours from gellins, i switched it to multibyte, and it dc'd fast as hell.. with it as unicode, i could get through half a game
Quote Originally Posted by Grim View Post

you know his base is supposed to be in unicode right? (L"d3d9.dll") < good pointer

i found that out when i tried to replace his detours with the updated ones for gellins base, which failed BTW so dont bother LOL
It doesn't have to be unicode.. easy convert anyways lol... L"d3d9.dll"
Just change to
GetModuleHandleA("d3d9.dll")
Quote Originally Posted by Grim View Post


it fucked me up.. i still haven't gotten it to work properly, but when i tried using the updated detours from gellins, i switched it to multibyte, and it dc'd fast as hell.. with it as unicode, i could get through half a game
Hmm wierd..
I wouldnt think Unicode or Ascii would have anything to do with the crash
Quote Originally Posted by whit View Post


Hmm wierd..
I wouldnt think Unicode or Ascii would have anything to do with the crash
it not have to do something with crash..
D-Vid, i can help you with his base. I got it working when i saw this thread. i have like 55 bases that people have released in the past and i learned off of everyone of them. It helps
Posts 115 of 20 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?