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 


How to search for a value with percentage?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
shlomi1999943
How do I cheat?
Reputation: 0

Joined: 05 Oct 2023
Posts: 4

PostPosted: Thu Oct 05, 2023 4:41 pm    Post subject: How to search for a value with percentage? Reply with quote

I'm using cheat Engine 7.5 and in the value I want to put 3% but getting error when trying to scan for first scan.

Since I can't post url's yet I will attach the image screenshot as a file.



ce1.jpg
 Description:
 Filesize:  80.26 KB
 Viewed:  4535 Time(s)

ce1.jpg


Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Oct 05, 2023 5:25 pm    Post subject: Reply with quote

Do not include the percentage sign.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4704

PostPosted: Thu Oct 05, 2023 6:15 pm    Post subject: Reply with quote

"3%" isn't a number. Do you mean 0.03? Use float/double

Or try 3 as an integer (4 byte).

Do an unknown initial value scan and changed / unchanged scans if nothing else works. See step 3 of the CE tutorial for more information.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1525

PostPosted: Thu Oct 05, 2023 7:25 pm    Post subject: Reply with quote

If you want to scan as "%3", set "Value Type" to "String".

If you want to scan "%3" of a number, first find out the whole number and use the code below to get "%3" and scan it.


Code:
function math.percent(x,y,frm)
 local res = 0
 if frm==nil then
  res = tonumber(x) / 100 * tonumber(y)
 else
  if frm==true then
   res = tonumber(x) / 100 * tonumber(y)
  elseif frm==false then
   res = tonumber(x) * tonumber(y) / 100
   res = math.floor(res)
  end
 end
return res
end

-- 5%200
print(math.percent(200,5)) -- >> 10.0
-- 3%16000
print(math.percent(16000,3,true)) -- >> 480.0
-- 5%200
print(math.percent(200,5,false)) -- >> 10

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
shlomi1999943
How do I cheat?
Reputation: 0

Joined: 05 Oct 2023
Posts: 4

PostPosted: Thu Oct 05, 2023 9:21 pm    Post subject: The problem is that I need 100% to unlock a chapter Reply with quote

When the chapter is locked and you try to unlock it the game tell you that you don't have enough keys and then you have to enter to keep playing he say now that you played 13% of the chapter then 15% then 21% but I tried 13 then 15 then 21 but it didn't work , my guess because I leave that window menu and keep playing then coming back.

My problem is how to unlock all the chapters? My logic thought is to set each chapter somehow to 100% so it will think I played already all the chapters.

What i want to do is to unlock all the chapters.

Here is some screenshots showing it.

This screenshot show the first two on the top left completed so they are 100% the third one Locked apartment is 3% played so far but the next one and all the rest after it not played yet so they are locked.


in the second screenshot is when I try to play unlocked not yet played yet chapter.

For example the Museum.



chapters3.jpg
 Description:
 Filesize:  75.95 KB
 Viewed:  4437 Time(s)

chapters3.jpg



chapters2.jpg
 Description:
 Filesize:  174.14 KB
 Viewed:  4437 Time(s)

chapters2.jpg



chapters1.jpg
 Description:
 Filesize:  255.69 KB
 Viewed:  4437 Time(s)

chapters1.jpg


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

Joined: 16 Feb 2017
Posts: 1525

PostPosted: Fri Oct 06, 2023 5:03 am    Post subject: Reply with quote

Focusing on percentages will not do you any good.

I think in your case it's better to target tasks that trigger (increase) percentages.

Enter the section, complete the task, and narrow down the scan for each completed task.

Consider this comment;
ParkourPenguin wrote:
Do an unknown initial value scan and changed / unchanged scans if nothing else works. See step 3 of the CE tutorial for more information.


And when you get the correct result, encode it as a unique "aob". "??" You can use this with similar directories.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Oct 06, 2023 9:59 am    Post subject: Reply with quote

I agree. Focusing on percentages will be a waste of time, most likely.

You would be better off trying to find the key value, and then use that to unlock the stages.

You may have to use ultimap.
Back to top
View user's profile Send private message
shlomi1999943
How do I cheat?
Reputation: 0

Joined: 05 Oct 2023
Posts: 4

PostPosted: Fri Oct 06, 2023 5:14 pm    Post subject: Can you show me how to do it? Reply with quote

I have no clue what is ultimap and "aob" and the other stuff.

The stages I'm trying to unlock are from the game tricky doors.
I could find and give unlimited money in the game but now I want to unlock all stages.

I can't post links here yet but the game tricky doors is free in the microsoft store.


if someone can take a look please and give me some guide how to start working with the stages part.

Thank you.
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1525

PostPosted: Fri Oct 06, 2023 7:01 pm    Post subject: Reply with quote

Follow and apply the Cheat Engine tutorial steps.

Also, if the game is not an online or multiplayer game; My recommendation for tutorial (CT) and advanced game codes (Game bug fixes (!)) is " https://fearlessrevolution.com ".

Do not give game names (if online or multiplayer) to avoid implicating third parties.
Follow the tutorials, create your first code, and ask for help whenever you get stuck.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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