View Full Version : How to Change the Name of Your Hacks INI
howler2345
11th September 2004, 23:31
Hey everyone...here is how you change the name of your INI that the hack writes/reads all of its info in.
1) Search in EvilSettings.cpp for ".txt" or ".ini"
2) Change the 2 results that come up to "whatever.ini"
3) Look in EvilConfig.cpp and search for ".txt" or ".ini"
4) Change the 1 result to "whatever.ini"
****Make sure all three names you change are identical
Have fun :)
RonSijm
11th September 2004, 23:38
Hey everyone...here is how you change the name of your INI that the hack writes/reads all of its info in.
1) Search in EvilSettings.cpp for ".txt" or ".ini"
2) Change the 2 results that come up to "whatever.ini"
3) Look in EvilConfig.cpp and search for ".txt" or ".ini"
4) Change the 1 result to "whatever.ini"
****Make sure all three names you change are identical
Have fun :)
hehe... sorry fo saying, but why u make 3 threads about the same stuff, cant u make 1 thread, and give all your "hack makeing" info there :O
gil
11th September 2004, 23:41
Nice guides, good job.
You could have made them all in one thread.
like "How to - Your own hack" ;)
It's ok with me. It's good for the search...
DelfinoM
11th September 2004, 23:56
BEGIN_MESSAGE_MAP(CEvilConfigApp, CWinApp)
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()
CEvilConfigApp::CEvilConfigApp()
{
}
CEvilConfigApp theApp;
BOOL CEvilConfigApp::InitInstance()
{
if (GetVersion() > 0x80000000) //We only care if it's true Win32 platform or not
{
MessageBox(NULL, "This version only works on Windows 2000 and Windows XP", "Unsupported OS Version", MB_OK + MB_ICONERROR);
PostQuitMessage(0);
return FALSE;
}
InitCommonControls();
CWinApp::InitInstance();
m_Settings.ReadSettings(GetFullDllName());
if (m_Settings.m_bPBUS)
m_Settings.SpywareScan(true);
if (strlen(this->m_lpCmdLine) == 0)
{
CEvilConfigSheet sheet("**********");
MessageBox(NULL, "This version is NOT designed to be shielded against PunkBuster™.\nIt may or may not pass detection depending on the PB version.\nBeware of the risk of permanent banning when using this version.", "Warning!", MB_OK | MB_ICONWARNING);
m_pMainWnd = &sheet;
sheet.DoModal();
}
else
{
theApp.m_Settings.WriteSettings(GetFullDllName());
char StartGameCommand[2048];
strcpy(StartGameCommand, theApp.m_Settings.m_PathToGame);
strcat(StartGameCommand, "ArmyOps.exe ");
strcat(StartGameCommand, this->m_lpCmdLine);
if (!SpawnProcess(StartGameCommand, GetFullDllName()))
MessageBox(NULL, "Error creating process", "error", MB_OK);
}
return TRUE;
}
char * CEvilConfigApp::GetFullDllName(void)
{
static char Path[MAX_PATH];
GetModuleFileName(NULL, Path, MAX_PATH);
unsigned int i = strlen(Path);
while (Path[i] != '\\')
{
Path[i] = '\0';
i--;
}
strcat(Path, "d3d8.dll");
return Path;
}
I dont see anything along the lines of .txt or .ini in there and thats basically all the code in my evilconfig.cpp
I checked in an clean copy of evilhackbc23, only other ini name was user.ini where it opens user.ini and checks the settings(its in every bc23 source) for the textures and mouse.
I Like Chicken
15th September 2004, 14:26
That looks an awful lot like evilconfig.cpp , you should be searching evilsettings.cpp
dozer15
15th September 2004, 15:37
If you look at Howlers directions he says
1) Search in EvilSettings.cpp for ".txt" or ".ini"
2) Change the 2 results that come up to "whatever.ini"
3) Look in EvilConfig.cpp and search for ".txt" or ".ini"
4) Change the 1 result to "whatever.ini"
****Make sure all three names you change are identical
I Like Chicken
15th September 2004, 15:40
Yeah, you don't really need to do that, just evilsettings.cpp
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.