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 


Dark mode color adjustments
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Sat Oct 02, 2021 5:41 am    Post subject: Dark mode color adjustments Reply with quote

Hey, I'm liking the new dark mode but few things are harder to see now.

For example, the syntax highlighting in Auto Assembler window (Which can be turned off I know, but it has to be done everytime it seems. Is there a way to disable it permanently?)

Also the "Find out what accesses this address" window, when the window isn't focused its hard to see the highlighted instruction.

Is there a way to change these colors permanently to something easier to see? Thanks
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Sat Oct 02, 2021 8:27 am    Post subject: Reply with quote

You can actually modify the syntax highlighting colours to suit your needs. As for the other thing you will probably have to do it in a hacky way like this:
Code:

[ENABLE]
{$LUA}
local ce = getMainForm()
local count = getFormCount()


function containsWord(str, wordToFind)
  if str:find(tostring(wordToFind), 1, true) ~= nil then
     return true
  else
     return false
  end
end

for i=0, count -1 do
    local f = getForm(i)
    if containsWord(f.Caption, "The following") then
       local fc = f.Component
       fc[10].Color = 0x333333
       fc[10].Font.Color = 0xffffff
    end
end

{$ASM}
[DISABLE]
{$LUA}
local ce = getMainForm()
local count = getFormCount()


function containsWord(str, wordToFind)
  if str:find(tostring(wordToFind), 1, true) ~= nil then
     return true
  else
     return false
  end
end

for i=0, count -1 do
    local f = getForm(i)
    if containsWord(f.Caption, "The following") then
       local fc = f.Component
       fc[10].Color = 0xffffff
       fc[10].Font.Color = 0x000000
    end
end


Just add to a script and toggle the dark/light mode. It won't work unless the "Find out what X the opcodes at address" window is visible
Back to top
View user's profile Send private message
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Sat Oct 02, 2021 8:31 am    Post subject: Reply with quote

LeFiXER wrote:
You can actually modify the syntax highlighting colours to suit your needs.


I know but as I say in the original post, it has to be done everytime because it doesn't save. I'm looking for a permanent solution.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Sat Oct 02, 2021 8:40 am    Post subject: Reply with quote

Are you certain you have executed Cheat Engine with administrative privileges, this seems likely to be the cause since the colour values are written to the registry. I have no issue changing the syntax highlighting properties. I have just tested again by changing the colour, fully closing Cheat Engine (without saving the table) and re-opening it. The colours reflect the change I made.
Back to top
View user's profile Send private message
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Sat Oct 02, 2021 8:53 am    Post subject: Reply with quote

LeFiXER wrote:
Are you certain you have executed Cheat Engine with administrative privileges, this seems likely to be the cause since the colour values are written to the registry. I have no issue changing the syntax highlighting properties. I have just tested again by changing the colour, fully closing Cheat Engine (without saving the table) and re-opening it. The colours reflect the change I made.


Yes I just tested it again to be sure by running as administrator. I dont know why it works for you and not me..
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Sat Oct 02, 2021 9:22 am    Post subject: Reply with quote

I would uninstall with something like Revo Uninstaller or Geek uninstaller, restart your PC then install fresh and try again. I can't say what's causing the problem but it would be taking basic troubleshooting steps to try and resolve it.

I can only think of two ways why it wouldn't work, the first would be a permission issue, the other being CE can't find the color values and decides to use default colour values.
Back to top
View user's profile Send private message
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Sat Oct 02, 2021 9:24 am    Post subject: Reply with quote

LeFiXER wrote:
I would uninstall with something like Revo Uninstaller or Geek uninstaller, restart your PC then install fresh and try again. I can't say what's causing the problem but it would be taking basic troubleshooting steps to try and resolve it.

I can only think of two ways why it wouldn't work, the first would be a permission issue, the other being CE can't find the color values and decides to use default colour values.


Ok I guess I'll try reinstall but it seems like a bug because the colors change when i choose the auto assembler syntax preferences automatically to something else than default.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Sat Oct 02, 2021 9:26 am    Post subject: Reply with quote

There are preferences for each language: Lua, C, and auto assembler. They can be different for all. Even colour preferences for the disassembler viewer.
Back to top
View user's profile Send private message
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Sat Oct 02, 2021 9:29 am    Post subject: Reply with quote

LeFiXER wrote:
There are preferences for each language: Lua, C, and auto assembler. They can be different for all. Even colour preferences for the disassembler viewer.


disasm viewer preferences work fine for me
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Sat Oct 02, 2021 9:36 am    Post subject: Reply with quote

I apologise if this question comes across as condescending but, you did click the 'ok' button after making your changes right? I know some people would click the X assuming that the changes have saved, but unfortunately, they have to be confirmed.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Oct 02, 2021 9:38 am    Post subject: Reply with quote

There is issue where the addresslist auto assembler script editor doesn't load the saved color.
_________________
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
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Sat Oct 02, 2021 9:43 am    Post subject: Reply with quote

LeFiXER wrote:
I apologise if this question comes across as condescending but, you did click the 'ok' button after making your changes right? I know some people would click the X assuming that the changes have saved, but unfortunately, they have to be confirmed.


No worries, any help is appreciated. I clicked "ok" button.

Quote:
There is issue where the addresslist auto assembler script editor doesn't load the saved color.


For me it happens even in new auto assembler window. I will try to re-install later as previous poster suggested I suppose...
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Sat Oct 02, 2021 10:00 am    Post subject: Reply with quote

Dark Byte wrote:
There is issue where the addresslist auto assembler script editor doesn't load the saved color.


I wonder what would cause this issue for some but not for others. Is it possible it could be because of entries within the registry from previous installations?
Back to top
View user's profile Send private message
xMichael
Newbie cheater
Reputation: 0

Joined: 24 Jun 2012
Posts: 20

PostPosted: Thu Oct 07, 2021 6:07 am    Post subject: Reply with quote

So reinstalling didn't help...

I open the auto assembler window, type something like mov eax,1000
The 1000 is still the default green color which is bit hard to see on the black background.

The only way to actually make the custom colors work is to manually click View-Auto assemblers syntax highlighting preferences. This seems to enable them until I close that window.

When I open the new one, it has to be done again.

Mainly because of these, I will have to use the light theme. Which is a shame.

Before, I tried using windows high contrast theme which also worked as a dark theme for CE. But it had even worse bug, my cheat tables refused to save lol. So I was forced to use the default bright theme.
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

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

PostPosted: Thu Oct 07, 2021 8:49 am    Post subject: Reply with quote

I think the only thing it could be is a permission issue preventing the values from changing in the registry, perhaps an intervening anti-virus?
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
Goto page 1, 2  Next
Page 1 of 2

 
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