C# Memory class x86
The only way to catch exceptions of type Exception is to catch all exceptions. You should never catch general exceptions without re-throwing them. CA1031: Do not catch general exception types (this indirectly includes throwing them as it requires to catch those general exception types)
Throw exceptions as specific as possible (if required, create your own exception type) so others (and you) can catch all expected exceptions and avoid having the application enter a possibly harmful state on unexpected exceptions.
Throw exceptions as specific as possible (if required, create your own exception type) so others (and you) can catch all expected exceptions and avoid having the application enter a possibly harmful state on unexpected exceptions.
I don't wanna bump this thread (it already has been but whatever) but thank you so much, I had trouble with writing the address for enabling/disabling FX in mw3, this class is soooo gud for noobs, thx a lot :P
ew this code is disgusting
Oh well... Kinda, yeah, but I still like it. Btw, I have a problem. I tried to read the value of the address and then change it to 5 (so when u disable the hack it wont be 5, it will be the original value, for example, 2) and when I disable the hack, I would write to the same address the original value I had before, but it doesn't work at all. Any help? Lmao:
Am I not using ReadInt correctly?
EDIT: And how do I allocate ram? I need to allocate ram in order to make my cheat work, else it would crash (OllyDBG says "access violation when executing", and I saw the cheat engine lua script which allocates ram. So how do I do that in C#?
Code:
private void checkBox18_CheckedChanged(object sender, EventArgs e)
{
if (Open_pHandel("iw5sp"))
{
int original = ReadInt(0x012AA9A8);
if (checkBox18.Checked == true)
{
for (;;)
{
WriteInt(0x012AA9A8, 5);
}
}
else
{
WriteInt(0x012AA9A8, original);
}
}
else
{
MessageBox.Show("iw5sp.exe has not been found. Open the game first, then the trainer!", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
EDIT: And how do I allocate ram? I need to allocate ram in order to make my cheat work, else it would crash (OllyDBG says "access violation when executing", and I saw the cheat engine lua script which allocates ram. So how do I do that in C#?
Similar Threads
Call of Duty Modern Warfare 3 Coding, Programming & Source Code😳 C# Memory Class (Writen by Jorndel)
12 Call of Duty Modern Warfare 3 Coding, Programming & Source Code😳 VB.Net Memory Class (Writen by Jorndel)
25 Call of Duty Black Ops 2 Coding, Programming & Source CodeBO2 Memory Class [VB]
24 C# Programmingc# memory classXX 8 Call of Duty Black Ops 2 Help😠 memory class
5

