View previous topic :: View next topic |
Author |
Message |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Fri Dec 04, 2020 12:12 am Post subject: Highlighter in DisassemblerView |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25805 Location: The netherlands
|
Posted: Fri Dec 04, 2020 2:11 am Post subject: |
|
|
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 |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Fri Dec 04, 2020 2:31 am Post subject: |
|
|
Oh Thank You
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25805 Location: The netherlands
|
Posted: Fri Dec 04, 2020 2:54 am Post subject: |
|
|
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 |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Fri Dec 04, 2020 5:23 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25805 Location: The netherlands
|
Posted: Sat Dec 05, 2020 2:56 am Post subject: |
|
|
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 |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Sat Dec 05, 2020 10:52 am Post subject: |
|
|
oh happy holiday, i am looking forward for your answer after the event is over
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25805 Location: The netherlands
|
Posted: Sun Dec 06, 2020 6:42 pm Post subject: |
|
|
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 |
|
 |
MMM-304 Expert Cheater
Reputation: 0
Joined: 17 Aug 2020 Posts: 170 Location: Milkey Way
|
Posted: Mon Dec 07, 2020 2:13 am Post subject: |
|
|
ah thanks, better than nothing
i hope next version will have a proper highlighter with multiple colors
|
|
Back to top |
|
 |
|