Writing to memory doesn't change the value menu

Shout-Out

User Tag List

Results 1 to 11 of 11
  1. #1
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Writing to memory doesn't change the value

    Hello, I've been trying to create a "hack" for educational purposes for World of Warcraft 3.3.5a.

    The problem consist of whenever I try to write memory to specific adresses it doesn't change the value with my program, which is using BlackMagic to do this. But whenever I change these values with CheatEngine it works perfectly well.

    The addresses in question is:
    0xAA33DC - which is the address for jump gravity. I'm trying to set it with this function:
    Code:
    //Jump Gravity
    wow.WriteFloat(0xAA33DC, float.Parse(textBox2.Text));
    And I know it parses the float correctly, so that's not the problem. I use this with fall speed aswell, but that works perfectly well, which I find weird.

    The second one is for wallclimb: 0xA37F0C - using this code:
    Code:
    wow.WriteByte(0x00A37F0C, 0x00);
    wow.WriteByte(0x00A37F0C + 0x1, 0x00);
    wow.WriteByte(0x00A37F0C + 0x2, 0x00);
    wow.WriteByte(0x00A37F0C + 0x3, 0x00);
    I hope anyone can help me find my error - if you need any additional information, feel free to ask for it! - Thank you :-)

    Writing to memory doesn't change the value
  2. #2
    R4zyel's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2009
    Posts
    63
    Thanks G/R
    12/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Search about VirtualProtectEx

  3. #3
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by R4zyel View Post
    Search about VirtualProtectEx
    So what you're saying is that I should use the VirtualProtectEx function to change the access protection to something like READWRITE so I can access it and change it? If yes, how exactly would you go around doing that in C#?

  4. #4
    Corthezz's Avatar Elite User Authenticator enabled
    Reputation
    386
    Join Date
    Nov 2011
    Posts
    325
    Thanks G/R
    191/98
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check my blog: https://zzuks.blogspot.com

  5. #5
    baldrich's Avatar Contributor
    Reputation
    102
    Join Date
    May 2008
    Posts
    84
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If it's for your server then hook the jump OPCode and increase the arc length and reduce the time it takes. If you do this attached to a spell then you can have it multiply to get desired effect.

  6. #6
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by baldrich View Post
    If it's for your server then hook the jump OPCode and increase the arc length and reduce the time it takes. If you do this attached to a spell then you can have it multiply to get desired effect.
    This is mostly to use on other servers.

    I'm reading up on the VirtualProtectEx and trying to figure out a solution.

  7. #7
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As I'm a firm believer in writing the solution to your problems I finally found mine :-)

    Here it is:
    Code:
    //Declare this somewhere
    [DllImport("kernel32.dll")]
            static extern bool VirtualProtectEx(IntPtr hProcess, IntPtr lpAddress,
               UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect);
    
    //Call this for your address to make it writeable.
    uint dwOldProtect;
    VirtualProtectEx(WoWHandle, (IntPtr)0xAA33DC, (UIntPtr)4, 0x40, out dwOldProtect);
    Thank you for helping me :-)

  8. #8
    Jadd's Avatar 🐸 Premium Seller
    Reputation
    1515
    Join Date
    May 2008
    Posts
    2,433
    Thanks G/R
    81/336
    Trade Feedback
    1 (100%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Don't forget to restore the original protection.

  9. #9
    mathix's Avatar Member
    Reputation
    5
    Join Date
    Jan 2013
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jadd View Post
    Don't forget to restore the original protection.
    When should I do that? After writing to the address? And why is this important, do you risk to crash your game if you keep it writable?

  10. #10
    R4zyel's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2009
    Posts
    63
    Thanks G/R
    12/7
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mathix View Post
    When should I do that? After writing to the address? And why is this important, do you risk to crash your game if you keep it writable?
    Actually there's no risk but...people tends to follow this procedure, to make it cleaner.

  11. #11
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1627
    Join Date
    May 2010
    Posts
    1,846
    Thanks G/R
    193/539
    Trade Feedback
    16 (100%)
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by R4zyel View Post
    Actually there's no risk but...people tends to follow this procedure, to make it cleaner.
    Warden is not your friend, dont give it anything if you can help it

Similar Threads

  1. Changing the LOG IN screen back to classic
    By Grass in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 02-02-2007, 10:04 PM
  2. Change the text on your start button!
    By TwiceoveR in forum Community Chat
    Replies: 3
    Last Post: 02-01-2007, 09:15 PM
  3. Is it possible to change the color of a bobber?
    By =sinister= in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 01-05-2007, 03:13 PM
  4. Change the PM option?
    By Orlox in forum Suggestions
    Replies: 3
    Last Post: 11-29-2006, 09:42 PM
  5. Where is the file that changes the hair style?
    By dogmax in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 11-16-2006, 11:44 AM
All times are GMT -5. The time now is 05:22 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search