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 


Enable Next Scan without using First Scan

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Mon Aug 24, 2020 10:07 am    Post subject: Enable Next Scan without using First Scan Reply with quote

When ever we use First Scan in Cheat Engine's main form it does some changings in the form like enables the Next Scan, changes its Caption to New Scan, disables Value Type dropdown and most importantly add some new scan options in Scan Type dropdown.

What I want is to enable Next Scan and add all scan options in Scan Type without doing First Scan and retain these changes forever for the current scan tab. Please tell me how to do it!

I have been working so hard on a lua extension but the only problem now left is this situation where Next Scan button is disabled and there are only 5 Text objects in Scan Type instead of all 11. Need help!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4695

PostPosted: Mon Aug 24, 2020 11:37 am    Post subject: Reply with quote

Most scan types don't make sense for a first scan. e.g. how do you do an "increased value" scan if you have nothing to compare it to?
If you don't know what the value is, do an "unknown initial value" scan.

_________________
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
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25779
Location: The netherlands

PostPosted: Mon Aug 24, 2020 2:21 pm    Post subject: Reply with quote

look at babyce.lua
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Mon Aug 24, 2020 6:56 pm    Post subject: Reply with quote

ParkourPenguin wrote:
Most scan types don't make sense for a first scan. e.g. how do you do an "increased value" scan if you have nothing to compare it to?
If you don't know what the value is, do an "unknown initial value" scan.


You are right, I am actually trying to clone scan tabs. It means that I will make a new scan tab but unlike usual scan tabs it wont be empty, it will have all the addresses from the original scan tab. But only problem is that it do not trigger, 'Every thing' that happens when First Scan is clicked!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25779
Location: The netherlands

PostPosted: Tue Aug 25, 2020 12:09 am    Post subject: Reply with quote

In that case yiu should look into the scansession save/restore lia script that comes with ce

those save the scan to a file which it can load back later

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Tue Aug 25, 2020 1:02 am    Post subject: Reply with quote

Dark Byte wrote:
In that case yiu should look into the scansession save/restore lia script that comes with ce

those save the scan to a file which it can load back later


Sorry! I dont understand what it means but if it means copying files from TEMP folder into another so that my new tab will have those addresses then I have already done it.Its not a problem anymore!. Is that What you mean?

Dark Byte wrote:
look at babyce.lua

Looked into it and extracted this and ran it in Lua Engine:


Sorry wanted to upload the code but it says "Sorry you cannot upload urls yet!"
If I skip/comment out STAGE ALPHA then only 5 basic items/Texts whatever they are, pops up on STAGE BETA execution.
But If I let STAGE ALPHA run then after first Scan all eleven Items pop up. Seems to me that there is something in STAGE ALPHA that triggers Items addition in STAGE BETA. Could not figure out what it is!
You also need to uncomment --BabyCE.DoState[2]=function() and -----end in the file I shared, then It will work



extracted babyce.lua
 Description:

Download
 Filename:  extracted babyce.lua
 Filesize:  7.96 KB
 Downloaded:  218 Time(s)

Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25779
Location: The netherlands

PostPosted: Wed Aug 26, 2020 8:44 am    Post subject: Reply with quote

updated savesession and added an extra example script:

https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/bin/autorun/savesession.lua
and
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/bin/autorun/splitscanintonewtab.lua

this might help

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
MMM-304
Expert Cheater
Reputation: 0

Joined: 17 Aug 2020
Posts: 170
Location: Milkey Way

PostPosted: Wed Aug 26, 2020 11:08 am    Post subject: Reply with quote

Thanks I will look into it! This is the extension I finalized by picking some data from savesession.lua.(It adds a button in Panel9 right below Panel14)

Its not a very reliable way to use First Scan followed by copying and overwriting all the files(Which may take a while if PC is slow, addresses are large in number and process is heavy.) Otherwise, It works fine so far. I just wanted to find a way to unlock everything which normally happens after doing First Scan



Clone Scan Tab v1.1.lua
 Description:

Download
 Filename:  Clone Scan Tab v1.1.lua
 Filesize:  2.41 KB
 Downloaded:  249 Time(s)

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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