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 


Disable Togglebox for an Entry

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Sep 08, 2024 4:16 am    Post subject: Disable Togglebox for an Entry Reply with quote

I have an address that I don't want it to be togglable. Is that possible?
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Sun Sep 08, 2024 5:21 am    Post subject: Reply with quote

make it an autoAssembler script and have in there this code
Code:

{$lua}
error('nope')


also next version has memoryrecords without checkbox

_________________
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
Game Hacking Dojo
Master Cheater
Reputation: 1

Joined: 17 Sep 2023
Posts: 250

PostPosted: Sun Sep 08, 2024 5:54 am    Post subject: Reply with quote

But as far as I know, this method would only work for scripts, which nullifies the idea of having the script in the first place.

But in my case, if the address is toggled it will crash the game. I know workarounds but I wanted to know if that's available.

Looking forwards to the new version. Thank you
Back to top
View user's profile Send private message Visit poster's website
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Sun Sep 08, 2024 7:59 am    Post subject: Reply with quote

May try this:
Code:

local al, TMR = GetAddressList(), 'TMemoryRecord'
local byDesc = al.GetMemoryRecordByDescription
local byID = al.GetMemoryRecordByID

function getMR(m) -- get memory record helper
  local t = type(m)
  return t=='number'and byID(m)or
         t=='string'and byDesc(m)or
         t=='userdata'and
         m.ClassName==TMR and m
end

function NoStateChange(mr, before, curr)if not before then return true end end
-- ^ activation/deactivation stopper

autoAssemble'globalalloc(___,$1000)' -- address of mr'TESTNOACTIVAE'

local mr = getMR'TESTNOACTIVAE'

mr.OnActivate = NoStateChange
getMR'SSS'.OnActivate = NoStateChange -- mr with script of template 'Cheat Table Framework code'

_________________
- Retarded.
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