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 


Changing Group scan values into lua script

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

Joined: 12 Jan 2018
Posts: 8

PostPosted: Thu Jan 18, 2018 9:11 pm    Post subject: Changing Group scan values into lua script Reply with quote

good day everyone, can someone help me out on making a script to work as cheat table that i can enable or disable? I have few and i just want i single sample that i can start on and i will add others my self..

here's what i need to scan on the game
f:0.8 f:0.776 f:0.737
and i need to replace 0.8 and 0.776 into 3.4e38
and 0.737 into -3.4e38

is it possible by group scan?

coz i only saw aobscan how about groupscan?
Code:
[ENABLE]
aobscan(chams, CD CC 4C 3F B4 C8 46 3F B1 BF 3C 3F 00 00 80 3F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CD CC 4C 3F B4 C8 46 3F B1 BF 3C 3F 00 00 80 3F)
label(_chams)
registersymbol(_chams)

chams:
_chams:
db 00 40 1C C6 00 40 1C C6 00 40 1C C6

[DISABLE]
_chams:
db CD CC 4C 3F B4 C8 46 3F B1 BF 3C 3F

unregistersymbol(_chams)
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Thu Jan 18, 2018 10:11 pm    Post subject: Reply with quote

I haven't really messed with it much but if you select "Grouped" as a scan type then "Generate group scan string" opens a form to help generate them.
_________________
Back to top
View user's profile Send private message Visit poster's website
JaPeyK
How do I cheat?
Reputation: 0

Joined: 12 Jan 2018
Posts: 8

PostPosted: Thu Jan 18, 2018 11:14 pm    Post subject: Reply with quote

TheyCallMeTim13 wrote:
I haven't really messed with it much but if you select "Grouped" as a scan type then "Generate group scan string" opens a form to help generate them.


nevermind i manage to find its array of bytes but my problem now is how do i freeze the value when i enable the script?

Code:
<AssemblerScript>[ENABLE]
aobscan(parachute, 00 00 E1 43 CA 16 DB 42 00 00 A0 41 92 0A 86 3F)
label(_parachute)
registersymbol(_parachute)

parachute:
_parachute:
db 00 40 1C 45

[DISABLE]
_parachute:
db 00 00 E1 43

unregistersymbol(_parachute)
</AssemblerScript>
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Thu Jan 18, 2018 11:20 pm    Post subject: Reply with quote

You would need to either create a pointer in your script, and freeze that on the address list, or change your injections to jump to your own code change the value(s) and jump back, you may want to have a look at the Cheat Engine Tutorial in the Help menu. This goes over the basics of code injection.
_________________
Back to top
View user's profile Send private message Visit poster's website
JaPeyK
How do I cheat?
Reputation: 0

Joined: 12 Jan 2018
Posts: 8

PostPosted: Fri Jan 19, 2018 3:55 am    Post subject: Reply with quote

TheyCallMeTim13 wrote:
You would need to either create a pointer in your script, and freeze that on the address list, or change your injections to jump to your own code change the value(s) and jump back, you may want to have a look at the Cheat Engine Tutorial in the Help menu. This goes over the basics of code injection.


can you hook me up on my script about freezing? can do it for me? thanks
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