Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Trouble with levelling bar

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
brisingr
Cheater
Reputation: 0

Joined: 23 Jan 2016
Posts: 39

PostPosted: Thu Jul 06, 2017 3:06 am    Post subject: Trouble with levelling bar Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Thu Jul 06, 2017 3:11 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
brisingr
Cheater
Reputation: 0

Joined: 23 Jan 2016
Posts: 39

PostPosted: Thu Jul 06, 2017 3:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Thu Jul 06, 2017 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
brisingr
Cheater
Reputation: 0

Joined: 23 Jan 2016
Posts: 39

PostPosted: Fri Jul 07, 2017 2:38 am    Post subject: Reply with quote

Embarassed Embarassed Embarassed
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
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Fri Jul 07, 2017 4:40 am    Post subject: Reply with quote

brisingr wrote:
Embarassed Embarassed Embarassed
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
View user's profile Send private message Visit poster's website
brisingr
Cheater
Reputation: 0

Joined: 23 Jan 2016
Posts: 39

PostPosted: Fri Jul 07, 2017 7:44 am    Post subject: Reply with quote

that works great, thank you
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8517
Location: 127.0.0.1

PostPosted: Fri Jul 07, 2017 11:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
brisingr
Cheater
Reputation: 0

Joined: 23 Jan 2016
Posts: 39

PostPosted: Tue Jul 11, 2017 6:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites