Thread: MW2 crasht

Results 1 to 5 of 5
  1. #1
    UnLiVGLinT's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    284

    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

  2. #2
    gerherhtherherdhher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    171
    Reputation
    26
    Thanks
    900
    My Mood
    Sad
    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.

  3. #3
    UnLiVGLinT's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    284
    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);
                }
            }

  4. #4
    gerherhtherherdhher's Avatar
    Join Date
    Dec 2015
    Gender
    male
    Posts
    171
    Reputation
    26
    Thanks
    900
    My Mood
    Sad
    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
    Last edited by gerherhtherherdhher; 04-02-2017 at 12:06 PM.

  5. #5
    UnLiVGLinT's Avatar
    Join Date
    Nov 2013
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    284
    Yep the first one works. Do you have skype? I want to ask you something private.

    I have WriteInt32 in my VaMemory correct

Similar Threads

  1. CoD6 or MW2?
    By CheeseTea in forum General
    Replies: 60
    Last Post: 02-12-2011, 12:55 AM
  2. CoD MW2 Mission aeroport (+18)
    By .raR in forum Call of Duty Modern Warfare 2 Discussions
    Replies: 4
    Last Post: 11-24-2009, 01:28 PM
  3. MW1 or MW2
    By why06 in forum Flaming & Rage
    Replies: 13
    Last Post: 11-15-2009, 10:00 PM
  4. MW2 leaked
    By gbitz in forum General
    Replies: 46
    Last Post: 11-08-2009, 02:09 PM
  5. CoD: MW2 - NO Dedicated Servers for PC
    By eliteop in forum General
    Replies: 0
    Last Post: 10-20-2009, 05:55 AM