MW2 crasht

Posts 1–5 of 5 · Page 1 of 1
MW2 crasht
Hey there,

I have 3 address which i found in Cheat Engine.

If I change in Cheat Engine the value it works.

If I change the value in my programm, which I made in Visual Studio, one address works the other two crash the game.

Can anyone help me?

Thanks
Quote Originally Posted by UnLiVGLinT View Post
Hey there,

I have 3 address which i found in Cheat Engine.

If I change in Cheat Engine the value it works.

If I change the value in my programm, which I made in Visual Studio, one address works the other two crash the game.

Can anyone help me?

Thanks
Yea sure, just post your code and I'll tell you why it crashes.
Here is my code

Code:
        private void Fullbright_Click(object sender, EventArgs e)
        {
            if (Fullbright.Checked)
            {
                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x06E661A4, 4);
            }
            else{

                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x06E661A4, 9);
            }

            
        }

        private void UnlimitedSprint_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void UnlimitedSprint_Click(object sender, EventArgs e)
        {
            if (UnlimitedSprint.Checked)
            {
                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x0086CAF8, 1);
            }
            else
            {

                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x0086CAF8, 4);
            }
        }

        private void norecoil_Click(object sender, EventArgs e)
        {
            if (norecoil.Checked)
            {
                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x004B9F7B, 115);
            }
            else
            {

                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x004B9F7B, 116);
            }
        }
Quote Originally Posted by UnLiVGLinT View Post
Here is my code

Code:
        private void Fullbright_Click(object sender, EventArgs e)
        {
            if (Fullbright.Checked)
            {
                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x06E661A4, 4);
            }
            else{

                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x06E661A4, 9);
            }

            
        }

        private void UnlimitedSprint_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void UnlimitedSprint_Click(object sender, EventArgs e)
        {
            if (UnlimitedSprint.Checked)
            {
                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x0086CAF8, 1);
            }
            else
            {

                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x0086CAF8, 4);
            }
        }

        private void norecoil_Click(object sender, EventArgs e)
        {
            if (norecoil.Checked)
            {
                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x004B9F7B, 115);
            }
            else
            {

                VAMemory vam = new VAMemory("iw4mp");
                vam.WriteInt32((IntPtr)0x004B9F7B, 116);
            }
        }
For the last one you should only write 1 byte, instead of 4. By using WriteInt32 you actually write 115/116 0 0 0 to the process, which of course makes the game crash upon execution. Try using something like WriteByte instead, not sure if you have that in your VAMemory class but that's easy to add. I am not sure about the other two, I assume the first one works right? It's worth a try to just write 1 byte.

Also your code is really redundant, consider refactoring it.

- Xen0
Yep the first one works. Do you have skype? I want to ask you something private.

I have WriteInt32 in my VaMemory correct
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us