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 does lua get some information

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Wed Jan 11, 2023 1:57 am    Post subject: How does lua get some information Reply with quote

As shown in the figure, find out what accesses the current address and how to use lua to obtain the address, bytecode and opcode
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Wed Jan 11, 2023 12:05 pm    Post subject: Reply with quote

Relevant functions:
debug_setBreakpoint (trigger = bptWrite), getPreviousOpcode (use EIP / RIP), disassemble, splitDisassembledString

See celua.txt for documentation. Search the forums for more information. The CE wiki might help too.

_________________
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
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Wed Jan 11, 2023 10:18 pm    Post subject: Reply with quote

ParkourPenguin wrote:
debug_setBreakpoint (trigger = bptWrite), getPreviousOpcode (use EIP / RIP), disassemble, splitDisassembledString
Thank you very much for providing these key information, which let me get the data I want

I also have a question about how to delete all breakpoints (previous and current)
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Wed Jan 11, 2023 10:59 pm    Post subject: Reply with quote

celua.txt:
Quote:
debug_removeBreakpoint(address) : if the given address is a part of a breakpoint it will be removed

This only works on a certain address.

To manually delete breakpoints, go to Memory View -> View -> Breakpointlist

_________________
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
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Thu Jan 12, 2023 4:19 am    Post subject: Reply with quote

ParkourPenguin wrote:
To manually delete breakpoints, go to Memory View -> View -> Breakpointlist

I still want to use the code to traverse the breakpoint list and delete all
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Thu Jan 12, 2023 7:04 am    Post subject: Reply with quote

creste a list with all your setBreakoint calls and then go througj that list when deleting them
_________________
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
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Thu Jan 12, 2023 7:07 am    Post subject: Reply with quote

.lua wrote:

I still want to use the code to traverse the breakpoint list and delete all


Something like this?
https://streamable.com/2m7pci
Back to top
View user's profile Send private message
.lua
Expert Cheater
Reputation: 1

Joined: 13 Sep 2018
Posts: 189

PostPosted: Fri Jan 13, 2023 8:51 pm    Post subject: Reply with quote

LeFiXER wrote:
Something like this?
https://streamable.com/2m7pci
It seems that the website connection cannot be opened because I am in China
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