Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 10-10-2006, 10:31 AM   #1
Fully Optimized
 
Spec's Avatar
 
Join Date: Aug 2005
Posts: 1,641
Default My C++ Script isnt working :\

Ok, well here is a nametag cheat im designing for BF2 (Single Player of course). And i need some help..because my code aint working...

--MEMORY.CPP--
Quote:
#include "memory.h"

HANDLE Base;
DWORD bytes;

BYTE org_NameTags[6] = {0};
DWORD g_dwNameTags3;

void CMemory::ReadStaticPointers()
{
Base= GetModuleHandle("RendDX9.dll");

g_dwNameTags3 = (DWORD)Base+0x12D882;
ReadProcessMemory(GetCurrentProcess(), (void*) g_dwNameTags3, &org_NameTags, 6, &bytes);
}

void CMemory::SetNameTags()
{
static BYTE g_dwNameTags3_jmp[6]={0x0F,0x84,0xF3,0x00,0x00,0x00};
WriteProcessMemory(GetCurrentProcess(), (void*) g_dwNameTags3, &g_dwNameTags3_jmp, 6, &bytes);
}
--MEMORY.H--
Quote:
#ifndef _MEMORY_H
#define _MEMORY_H

#include "main.h"
#include <windows.h>

class CMemory
{
public:

CMemory(){
};
~CMemory();

void ReadStaticPointers (void);
void SetNameTags (void);
};

#endif


I'm trying to combine D3D with memory so i'm already injecting the dll into BF2. Im using the D3D Starter kit to inject the DLL. Anyone?
__________________

__________________
Thermaltake ARMOR/ mATX intelG33 Motherboard/4gb G.SKILL High Gaming Performance ddr2-1200/Radeon 3870 1gb edition/850w Thermaltake superduty psu

PokerDegenerate: Don't listen to these guys, I like the IDE makes it look vintage like a 68 Camaro SS...
Spec is offline   Reply With Quote
Old 10-10-2006, 06:06 PM   #2
Fully Optimized
 
Š88's Avatar
 
Join Date: May 2005
Posts: 4,775
Send a message via MSN to Š88
Default Re: My C++ Script isnt working :\

so what does this program do exactly?
__________________

__________________
Killing under the cloak of war is no different than murder

Kein Alkohol ist auch keine Lösung!
Š88 is offline   Reply With Quote
Old 10-10-2006, 11:23 PM   #3
Fully Optimized
 
Spec's Avatar
 
Join Date: Aug 2005
Posts: 1,641
Default Re: My C++ Script isnt working :\

This program injects in to the BF2 Memory and changing enemy headlines..basicly instead of only when you can see them there name pops up and shows that they are an enemy, it does it all the time, so you can see them through walls and such.
__________________
Thermaltake ARMOR/ mATX intelG33 Motherboard/4gb G.SKILL High Gaming Performance ddr2-1200/Radeon 3870 1gb edition/850w Thermaltake superduty psu

PokerDegenerate: Don't listen to these guys, I like the IDE makes it look vintage like a 68 Camaro SS...
Spec is offline   Reply With Quote
Old 10-10-2006, 11:53 PM   #4
Fully Optimized
 
Š88's Avatar
 
Join Date: May 2005
Posts: 4,775
Send a message via MSN to Š88
Default Re: My C++ Script isnt working :\

ohhhh i c...well thats a little more complicated than i thought it was. Sorry can't help ya.
__________________
Killing under the cloak of war is no different than murder

Kein Alkohol ist auch keine Lösung!
Š88 is offline   Reply With Quote
Old 10-11-2006, 10:12 AM   #5
Fully Optimized
 
Spec's Avatar
 
Join Date: Aug 2005
Posts: 1,641
Default Re: My C++ Script isnt working :\

Alright..dang.
__________________
Thermaltake ARMOR/ mATX intelG33 Motherboard/4gb G.SKILL High Gaming Performance ddr2-1200/Radeon 3870 1gb edition/850w Thermaltake superduty psu

PokerDegenerate: Don't listen to these guys, I like the IDE makes it look vintage like a 68 Camaro SS...
Spec is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 02:33 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0