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 


Question about locking certain part of a value

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

Joined: 19 Aug 2012
Posts: 11

PostPosted: Wed Oct 10, 2012 3:06 pm    Post subject: Question about locking certain part of a value Reply with quote

Hi guys, I'm playing a small game called Elona(not many people know about this game), and am trying to lock the potential value for my skill. However this game uses a different way to store the value of skill and its potential.
For example: If I have a skill at level 7 and 45.5% leveled, with 124% potential, then the value would be 7455124.
Now I just want to lock that 124 part of this value, can this be possibly done by using Cheat Engine? Thanks in advance.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Oct 10, 2012 7:29 pm    Post subject: Reply with quote

Assuming it's 124 in decimal (not hex), double click on "4 byte" in your cheat list and select "1 byte" in the type list. That will lock 8 bits (124 takes 7). If that doesn't fit your needs, switch to "binary" type select start bit=0, length=7.
Back to top
View user's profile Send private message
deusexmansin
Newbie cheater
Reputation: 0

Joined: 19 Aug 2012
Posts: 11

PostPosted: Wed Oct 10, 2012 7:37 pm    Post subject: Reply with quote

Gniarf wrote:
Assuming it's 124 in decimal (not hex), double click on "4 byte" in your cheat list and select "1 byte" in the type list. That will lock 8 bits (124 takes 7). If that doesn't fit your needs, switch to "binary" type select start bit=0, length=7.

Thank you for the reply, I now have a value 7000168 and I tried both ways you mentioned above, they both show a new value which is 104, I don't know whether I should lock it or not since I'm scared of crashing my game... And thanks again for replying me!
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Oct 10, 2012 11:50 pm    Post subject: Re: Question about locking certain part of a value Reply with quote

Ah frak! I didn't understand that it was:
"For example: If I have a skill at level 7 and 45.5% leveled, with 124% potential, then the value would be 7455124."
Basically it's some sort of bitmask, except that it's for decimal digits... First time I ever see that...

Anyway, may someone correct me if I'm wrong, but as of CE 6.2 it is not possible to to only freeze the 3 least significant decimal digits with a custom type. So the only thing I could come up with was a custom lua script freezer.

-Download the tool table below.
-When opening it, if you get a message saying "do you want to execute the table's lus script?" say yes, otherwise press ctrl+alt+L and click "execute" ONCE.
-find your skill address as usual, add it, and name it "Elona skill potential 1" (name is important)
-activate "freeze skill potential"
-enjoy!
-reopen the lua script, learn, and modify it when/if you need to freeze more skills.



elona.CT
 Description:
tool table to freeze the 3 least significant decimal digits of elona skills

Download
 Filename:  elona.CT
 Filesize:  2 KB
 Downloaded:  913 Time(s)

Back to top
View user's profile Send private message
deusexmansin
Newbie cheater
Reputation: 0

Joined: 19 Aug 2012
Posts: 11

PostPosted: Thu Oct 11, 2012 12:43 am    Post subject: Re: Question about locking certain part of a value Reply with quote

Gniarf wrote:
Ah frak! I didn't understand that it was:
"For example: If I have a skill at level 7 and 45.5% leveled, with 124% potential, then the value would be 7455124."
Basically it's some sort of bitmask, except that it's for decimal digits... First time I ever see that...

Anyway, may someone correct me if I'm wrong, but as of CE 6.2 it is not possible to to only freeze the 3 least significant decimal digits with a custom type. So the only thing I could come up with was a custom lua script freezer.

-Download the tool table below.
-When opening it, if you get a message saying "do you want to execute the table's lus script?" say yes, otherwise press ctrl+alt+L and click "execute" ONCE.
-find your skill address as usual, add it, and name it "Elona skill potential 1" (name is important)
-activate "freeze skill potential"
-enjoy!
-reopen the lua script, learn, and modify it when/if you need to freeze more skills.

Again, thank you for your time and the reply however... The tool table doesnt really seem to work, it gives off a error message whenever I try to freeze the value. I have attached the picture of the error message.



Error.jpg
 Description:
 Filesize:  32.17 KB
 Viewed:  10245 Time(s)

Error.jpg


Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Oct 11, 2012 12:52 am    Post subject: Reply with quote

...And that's what you get for spellchecking your work just before posting...
Replace all AdressesToFreeze by AddressesToFreeze...
Back to top
View user's profile Send private message
deusexmansin
Newbie cheater
Reputation: 0

Joined: 19 Aug 2012
Posts: 11

PostPosted: Thu Oct 11, 2012 1:00 am    Post subject: Reply with quote

Gniarf wrote:
...And that's what you get for spellchecking your work just before posting...
Replace all AdressesToFreeze by AddressesToFreeze...

Ummm... So what should I do now? Replace those "AdressesToFreeze" in the lua script to "AddressesToFreeze"? Gah I'm totally a noob in this kind of stuff... Sorry for wasting so much of your time, I kinda feel bad now...
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Oct 11, 2012 1:26 am    Post subject: Reply with quote

deusexmansin wrote:
So what should I do now?

Gniarf wrote:
Replace all AdressesToFreeze by AddressesToFreeze
*sigh*, in the lua script, yes, and I would have liked you to try before asking.
Back to top
View user's profile Send private message
deusexmansin
Newbie cheater
Reputation: 0

Joined: 19 Aug 2012
Posts: 11

PostPosted: Thu Oct 11, 2012 1:42 am    Post subject: Reply with quote

Gniarf wrote:
deusexmansin wrote:
So what should I do now?

Gniarf wrote:
Replace all AdressesToFreeze by AddressesToFreeze
*sigh*, in the lua script, yes, and I would have liked you to try before asking.

D: Sorry I'm just too lazy... I've done changing those, and another message pops out...



Error.jpg
 Description:
 Filesize:  39.98 KB
 Viewed:  10224 Time(s)

Error.jpg


Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Oct 11, 2012 2:09 am    Post subject: Reply with quote

Did you set the type for "Elona skill potential 1" to "text" or display it in hexadecimal form?
I just noticed my script does not work if you use hex display mode.

If your "Elona skill potential 1" is neither a text nor in hex form, well, I don't know what you're doing wrong, but it works on my end (once you fix the address/adress thinggie).
Back to top
View user's profile Send private message
deusexmansin
Newbie cheater
Reputation: 0

Joined: 19 Aug 2012
Posts: 11

PostPosted: Thu Oct 11, 2012 2:13 am    Post subject: Reply with quote

Gniarf wrote:
Did you set the type for "Elona skill potential 1" to "text" or display it in hexadecimal form?
I just noticed my script does not work if you use hex display mode.

If your "Elona skill potential 1" is neither a text nor in hex form, well, I don't know what you're doing wrong, but it works on my end (once you fix the address/adress thinggie).

Okay then, thanks again for your help. I'll try a few times more to see what I did wrong.
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