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 


Highlighter in DisassemblerView

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

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

PostPosted: Fri Dec 04, 2020 12:12 am    Post subject: Highlighter in DisassemblerView Reply with quote

is there a way to highlight addresses in disassembler, like when debugger is attached it is red, and when ultimaps are working it is yellow, can i highlight in any other color to keep track, but obviously without attaching a debugger or something..
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Dec 04, 2020 2:11 am    Post subject: Reply with quote

No, but since i'm working on visual stuff now anyhow i'll see if i can add it
_________________
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: Fri Dec 04, 2020 2:31 am    Post subject: Reply with quote

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

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

PostPosted: Fri Dec 04, 2020 2:54 am    Post subject: Reply with quote

actually, there is a way which involves disassemblerline OnDisassemblerViewOverride. And then use custom textcolor code
{B######} to set a background color

but not as easy as just registering a list of addresses and won't do a full line

_________________
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: Fri Dec 04, 2020 5:23 am    Post subject: Reply with quote

ok how do i use this?
i tried to access it both via getMemoryViewForm() and createMemoryView() but none of these have DisassemblerviewLine whose property is OnDisassemblerViewOverride function

i also tried accessing it without specifying class and even with DisassemblerView
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sat Dec 05, 2020 2:56 am    Post subject: Reply with quote

the graphical disassemblerview override might be easier

example: https://forum.cheatengine.org/viewtopic.php?p=5724782

it's a special holliday here(sinterklaas) so i'm not allowed to get on my pc so can't really go indept with custom scripts right now but hope this helps

_________________
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: Sat Dec 05, 2020 10:52 am    Post subject: Reply with quote

oh happy holiday, i am looking forward for your answer after the event is over
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Dec 06, 2020 6:42 pm    Post subject: Reply with quote

it's not perfect, but it's something
Code:

highlight={}
function f(sender, address, LastDisassembleData, result, description)
  if highlight[address] then
    LastDisassembleData.opcode='{Bff00ff}'..LastDisassembleData.opcode..'{N}'
    LastDisassembleData.parameters='{Bff00ff}'..LastDisassembleData.parameters..'{N}'
  end

  return result,description
end

getVisibleDisassembler().OnPostDisassemble=f


--and then use things like:
highlight[0x00403CCA]=true

_________________
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 Dec 07, 2020 2:13 am    Post subject: Reply with quote

ah thanks, better than nothing
i hope next version will have a proper highlighter with multiple colors
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 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