CoolBypass 28_X Client Error (I need latest struct and weapon size)

Posts 1–15 of 33 · Page 1 of 3
Bypass 28_X Client Error (I need latest struct and weapon size)
Hello guys, i spent a lot of time but i am not lucky to bypass it so i post it here.
Can anyone help me about the latest Weapon Struct? i am getting error when i am using it, i tried jmp method but its not working.
is this Method work?


Code:
typedef struct
{
	unsigned char Data[0xC3C0];
} WeaponMgrCopy;

WeaponMgrCopy* pOldWeapons[1600];

WeaponMgrCopy* GetWeaponByIndex(int index)
{
	return pOldWeapons[index];
}

void CreateBackup(DWORD dwCShell, DWORD dwWeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(dwCShell + dwWeaponMgr);
	for (int i = 0; i < 1600; i++)
	{
		DWORD dwWeapon = *(DWORD*)(pWeaponMgr + (4 * i));
		if (dwWeapon)
		{
			pOldWeapons[i] = new WeaponMgrCopy;
			memcpy(pOldWeapons[i], (void*)(dwWeapon), sizeof(WeaponMgrCopy));
		}
	}
}
Thanks in advance. i am member here since 2011 and REZ Modder that time .


This method shared before but..



Code:
typedef struct
{
	unsigned char Data[21504];
} WeaponMgrCopy;

WeaponMgrCopy* pOldWeapons[4096];

WeaponMgrCopy* GetWeaponByIndex(int index)
{
	return pOldWeapons[index];
}

void CreateBackup(DWORD dwCShell, DWORD dwWeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(dwCShell + dwWeaponMgr);
	for (int i = 0; i < 4096 ; i++)
	{
		DWORD dwWeapon = *(DWORD*)(pWeaponMgr + (4 * i));
		if (dwWeapon)
		{
			pOldWeapons[i] = new WeaponMgrCopy;
			memcpy(pOldWeapons[i], (void*)(dwWeapon), sizeof(WeaponMgrCopy));
		}
	}
}
That's for CrossFire West ( North America ).

Quote Originally Posted by TheGe2k View Post


This method shared before but..



Code:
typedef struct
{
	unsigned char Data[21504];
} WeaponMgrCopy;

WeaponMgrCopy* pOldWeapons[4096];

WeaponMgrCopy* GetWeaponByIndex(int index)
{
	return pOldWeapons[index];
}

void CreateBackup(DWORD dwCShell, DWORD dwWeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(dwCShell + dwWeaponMgr);
	for (int i = 0; i < 4096 ; i++)
	{
		DWORD dwWeapon = *(DWORD*)(pWeaponMgr + (4 * i));
		if (dwWeapon)
		{
			pOldWeapons[i] = new WeaponMgrCopy;
			memcpy(pOldWeapons[i], (void*)(dwWeapon), sizeof(WeaponMgrCopy));
		}
	}
}
That's for CrossFire West ( North America ).

is This bypass method is working bro?
Quote Originally Posted by Code5yndicate View Post
is This bypass method is working bro?
This just a Storing your Weapons not a Error bypassing.
Quote Originally Posted by TheGe2k View Post
This just a Storing your Weapons not a Error bypassing.
Yes i know bro but i mean is this working to modify weaponmgr as of now?
Quote Originally Posted by Code5yndicate View Post
Yes i know bro but i mean is this working to modify weaponmgr as of now?
Yup working.
Quote Originally Posted by TheGe2k View Post
Yup working.
Thanks man!
Quote Originally Posted by Code5yndicate View Post
Thanks man!
You are Welcome!
So the new code should be ?
Code:
(CShell+WeaponMgr +(4*i) + NoReload) = Value;
else
Something should be here to restore the backup WeaponMgr
Quote Originally Posted by Code5yndicate View Post
Hello guys, i spent a lot of time but i am not lucky to bypass it so i post it here.
Can anyone help me about the latest Weapon Struct? i am getting error when i am using it, i tried jmp method but its not working.
is this Method work?


Code:
typedef struct
{
	unsigned char Data[0xC3C0];
} WeaponMgrCopy;

WeaponMgrCopy* pOldWeapons[1600];

WeaponMgrCopy* GetWeaponByIndex(int index)
{
	return pOldWeapons[index];
}

void CreateBackup(DWORD dwCShell, DWORD dwWeaponMgr)
{
	DWORD pWeaponMgr = *(DWORD*)(dwCShell + dwWeaponMgr);
	for (int i = 0; i < 1600; i++)
	{
		DWORD dwWeapon = *(DWORD*)(pWeaponMgr + (4 * i));
		if (dwWeapon)
		{
			pOldWeapons[i] = new WeaponMgrCopy;
			memcpy(pOldWeapons[i], (void*)(dwWeapon), sizeof(WeaponMgrCopy));
		}
	}
}
Thanks in advance. i am member here since 2011 and REZ Modder that time .
you won't need to do this if u find where cf loads the value and patch there
And if i don't know where cf loads the value, i can use this to store WeaponMGR right ?
If right how to Re-change the WeaponMGR to the backup one, after changing it (after using no reload for example).
Quote Originally Posted by syounes03 View Post
And if i don't know where cf loads the value, i can use this to store WeaponMGR right ?
If right how to Re-change the WeaponMGR to the backup one, after changing it (after using no reload for example).
you got the wrong idea, this will just be applied to the 28_3 check, you don't need to restore. and if ur talking about turning off, then you can access it in the backup and get the value.
When i tried to get the value again from the backup the game crashes with no errors.
Quote Originally Posted by syounes03 View Post
When i tried to get the value again from the backup the game crashes with no errors.
shows us the code so that we can help
Backup Code:
Code:
void CreateBackup()
{
	DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
	DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
	for (int i = 0; i < 4096 ; i++)
	{
		DWORD dwWeapon = *(DWORD*)(pWeaponMgr + (4 * i));
		if (dwWeapon)
		{
			pOldWeapons[i] = new WeaponMgrCopy;
			memcpy(pOldWeapons[i], (void*)(dwWeapon), sizeof(WeaponMgrCopy));
}
}
}
Restore Backup WeaponMGR
Code:
*(DWORD*)(pWeaponMgr + (4 * i) + NoReload) = pOldWeapons[i];
Posts 1–15 of 33 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?