CLEO Help How to write memory with ABGR?

CLEO related
Status
Not open for further replies.

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
I want to read a string from ini file but when I write the memory with the value it doesn't work.

I do this but it doesn't work because the value must be FF+5@v (How can I do that?):
0AF4: 5@v = read_string_from_ini_file "cleo\hud.ini" section "HUD_1" key "HEX"
0AD4: 6@ = scan_string 5@v format "%x" 5@
0A8C: write_memory HUD_1 size 4 value 5@ virtual_protect 0
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
springfield link said:
Cause value should be 0xHEX or integer.

I understand, how can I "transform" it?

Here i write the memory and store it to the ini file:

0A8C: write_memory HUD_1 size 4 value 5@ virtual_protect 0
format 5@v "%X" 5@
0AF5: write_string 5@v to_ini_file "cleo\hud.ini" section "HUD_1" key "HEX"

Now i want to load the game and write the memory with the value, but it doesn't work because they must be a decimal number, how can I transform that HEX (FFFFFFF) TO DECIMAL with sanny builder?

0AF4: 5@v = read_string_from_ini_file "cleo\hud.ini" section "HUD_1" key "HEX"
Here transform it then store it to 5@
0A8C: write_memory HUD_1 size 4 value 5@ virtual_protect 0
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
Code:
0AF4: 5@v = read_string_from_ini_file "cleo\hud.ini" section "HUD_1" key "HEX"
0AD4: $nouse = 5@v "%X" 5@
0A8C: write_memory HUD_1 size 4 value 5@ virtual_protect 0
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
springfield link said:
no, you used 0AD3 instead of 0AD4, 0AD3 formats a string.

In the post i put 0AD4 but i don't know why it doesn't work, I try using your code and it's working, idk...

And i have one more question, is possible to edit the memory of the time writting a text? With InterfaceEditor you can change the format of the clock to a text you put.

EDIT: is possible but i don't know how to fix this (maybe changing the memory?), i write the memory but i show the clock and the text, the text only can contain 4 letters:

0A8C: write_memory 0x859A6C size 4 value 5@ virtual_protect 0
 
Status
Not open for further replies.
Top