Marty McFlaY Posted May 7, 2018 Share Posted May 7, 2018 [email protected] = 0xA5C2130A8D: [email protected] = read_memory [email protected] size 7 virtual_protect 10AD3: [email protected] = format "%s" [email protected]: show_formatted_text_highpriority "%s" time 2000 [email protected] It takes menu string. String length of Menu is 7 so I read the memory in '7' size but why it is giving "(( null ))" in-game? Link to comment Share on other sites More sharing options...
Sloth- Posted May 7, 2018 Share Posted May 7, 2018 (edited) [email protected] = 0xA5C213 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect [email protected]+=4 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 1 0AD3: [email protected] = format "%s" [email protected] 0AD1: show_formatted_text_highpriority "%s" time 6000 [email protected] Each variable has a size of 4 bytes, And if you try to read 7 bytes, the 3 overflow bytes won't be copied on next variable as you may expect. So you must read from 4 to 4 bytes. Also, be careful on short string or long string sizes. You were copying a short string in [email protected] and then atempting to pass that data into [email protected], which would cause an overlap. I fixed all that for you. Please notice that i changed the read length to 8 instead of 7, or else you would have read "TRUC" instead of "TRUCK". Why? Not sure about that Edited June 13, 2018 by Sloth- pos no'más Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now