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 


[Suggestion] Beep at instruction functionality

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
DaviFN
Cheater
Reputation: 0

Joined: 23 Oct 2016
Posts: 32

PostPosted: Fri Jul 27, 2018 8:25 am    Post subject: [Suggestion] Beep at instruction functionality Reply with quote

Hello everyone!

I'd like to suggest an incredibly (at least from my point-of-view) useful feature for Cheat Engine; the ability of beeping when a certain assembly instruction is executed.

Essentially it would be a pseudo-breakpoint; when the breakpoint is hit, it "breaks" for a very small fraction of time (not perceived by the "human eye"), but, before continuing the flow of the program, it makes a beep sound.

It's a really easy feature to implement and it would immensely help debugging, as we would be able to know if an instruction is being hit, when it is being hit, how often etc. (e.g. is it on a loop? Is it only executed when our character jumps?)

Thank you all for reading my suggestion!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Fri Jul 27, 2018 9:16 am    Post subject: Reply with quote

Easily doable with Lua.
Code:
debug_setBreakpoint(address, 1, bptExecute, function() beep() end)

_________________
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
DaviFN
Cheater
Reputation: 0

Joined: 23 Oct 2016
Posts: 32

PostPosted: Fri Jul 27, 2018 10:05 am    Post subject: Reply with quote

Yes, it's easily doable with Lua. But it takes the time of copying the address and pasting it on lua's script.

One may argue that time is so small it is irrelevant. However, many periods of time like those accumulate in order to make us lose precious time.

With a built-in feature, it would be extremely simpler. Just right-clicking the instruction and selecting something like "Beep when executed"...
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Fri Jul 27, 2018 10:22 am    Post subject: Reply with quote

haven't spent too much time on this (and for some reason I got a few tutorial crashes when re-attaching debugger during dev, not sure that'd affect actual use however) but I made this:

https://github.com/FreeER/CE-Extensions/blob/master/SoundOnBP.lua
It adds a menu option to the memory viewer/disassembler

clicking it will add the selected instruction/address to an internal list so when a bp is hit on that address it'll play a sound (by default the Activate tablefile sound CE always has), note that find what accesses/writes bypasses this (presumably due to how they're implemented they don't call the debugger_onBreakpoint function). If no bp exists on that address at the time it will create a bp and auto-continue from it when it's hit.

Clicking it again will remove it from the list, and remove the bp if it created one.

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Fri Jul 27, 2018 11:18 am    Post subject: Reply with quote

It would be used by so few people that it isn't worth adding to CE. People who want extra functionality from CE that most other people have no need for can create it themselves using Lua.

That code was only to demonstrate that it's possible. You or someone else can design an interface for it.

_________________
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
DaviFN
Cheater
Reputation: 0

Joined: 23 Oct 2016
Posts: 32

PostPosted: Fri Jul 27, 2018 11:32 am    Post subject: Reply with quote

I disaggree it would be used by few people. I still think it should be a built-in feature.

I respect your position though.

P.S.:Thank you for showing me your work, FreeER!
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 198

Joined: 25 Jan 2006
Posts: 8516
Location: 127.0.0.1

PostPosted: Sun Jul 29, 2018 1:16 am    Post subject: Reply with quote

I would have to agree with Parkour here, CE has been around since around 2003. You're the first person I can ever recall ever asking for this since then.

This is the nice part of the newer Lua features and UI extensions, allowing users to make their own mods to CE easily and share them.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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