View previous topic :: View next topic |
Author |
Message |
brisingr Cheater Reputation: 0
Joined: 23 Jan 2016 Posts: 39
|
Posted: Thu Jul 06, 2017 3:06 am Post subject: Trouble with levelling bar |
|
|
Hey there, I'm having trouble with a xp bar, with a value in %.
I've found the value, when i change it with 100% the bar looks full for a while but it get back to previous value.
I've found the instructions and it's:
Code: | movss [ebx+24],xmm1 |
I don't know how to assemble a code to make it reach the 100% easily.
Help me please
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
Posted: Thu Jul 06, 2017 3:11 am Post subject: |
|
|
If it is just a 0 to 100 value, you could rewrite the instruction to:
Code: | mov [ebx+24], (float)100 |
_________________
- Retired. |
|
Back to top |
|
|
brisingr Cheater Reputation: 0
Joined: 23 Jan 2016 Posts: 39
|
Posted: Thu Jul 06, 2017 3:12 pm Post subject: |
|
|
Thanks for the reply, unfortunately it doesn't work, it seems nothing has changed.
Hope i didn't a mistake in the script, here it is:
Code: | [ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
mov [edi+04],eax
mov eax,[ebp+10]
exit:
jmp returnhere
"HiddenCityXAML.exe"+2276D:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"HiddenCityXAML.exe"+2276D:
mov [edi+04],eax
mov eax,[ebp+10]
//Alt: db 89 47 04 8B 45 10 |
Any suggestion?
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
Posted: Thu Jul 06, 2017 6:05 pm Post subject: |
|
|
What you pasted there does not match what you said in your first post. Also the script you made doesn't do anything but restore the original code you are placing a jump at. So you are not actually altering any values but just replacing what the game did before, in a new location.
_________________
- Retired. |
|
Back to top |
|
|
brisingr Cheater Reputation: 0
Joined: 23 Jan 2016 Posts: 39
|
Posted: Fri Jul 07, 2017 2:38 am Post subject: |
|
|
sorry, i've pasted a wrong script
this is the right one:
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
mov [ebx+24], (float)100//place your code here
originalcode:
movss [ebx+24],xmm1
exit:
jmp returnhere
"HiddenCityXAML.exe"+1EBF4:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"HiddenCityXAML.exe"+1EBF4:
movss [ebx+24],xmm1
//Alt: db F3 0F 11 4B 24 |
|
|
Back to top |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Fri Jul 07, 2017 4:40 am Post subject: |
|
|
brisingr wrote: |
sorry, i've pasted a wrong script
this is the right one:
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
mov [ebx+24], (float)100//place your code here
jmp returnhere // you must add this line, otherwise xmm will overwrite whatever in ebx+24
originalcode:
movss [ebx+24],xmm1
exit:
jmp returnhere
"HiddenCityXAML.exe"+1EBF4:
jmp newmem
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"HiddenCityXAML.exe"+1EBF4:
movss [ebx+24],xmm1
//Alt: db F3 0F 11 4B 24 |
|
_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
brisingr Cheater Reputation: 0
Joined: 23 Jan 2016 Posts: 39
|
Posted: Fri Jul 07, 2017 7:44 am Post subject: |
|
|
that works great, thank you
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
|
Posted: Fri Jul 07, 2017 11:24 am Post subject: |
|
|
In this case, you do not want to have the original instructions re-execute in your new cave since you are overriding what it is supposed to do. So be sure to not have the original code undoing what you are overwriting.
_________________
- Retired. |
|
Back to top |
|
|
brisingr Cheater Reputation: 0
Joined: 23 Jan 2016 Posts: 39
|
Posted: Tue Jul 11, 2017 6:00 am Post subject: |
|
|
I've played the game for a day without the new code and it seems no original code restore the value, now I've reached the max xp! thanks again
|
|
Back to top |
|
|
|