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 


Old code indicating access violation

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

Joined: 08 Oct 2012
Posts: 606

PostPosted: Tue Jul 21, 2026 10:42 am    Post subject: Old code indicating access violation Reply with quote

I have an older table built with CE not by code. Anyway, with Win 11, I am receiving an access violation when a check box is checked.
Code:

boxstateAP = checkbox_getState(CheatPanel_CECheckbox3)
  if boxstateAP == cbChecked then
    timer_setEnabled(tAP, true)
    print("The AP timer is enabled")
    form_show(CheatPanel_CEPanel1)
    form_show(CheatPanel_CEEdit1)
  else
    timer_setEnabled(tAP, false)
    print("The AP timer is not enabled")
    form_hide(CheatPanel_CEPanel1)
    form_hide(CheatPanel_CEEdit1)
    edit_clear(CheatPanel_CEEdit1)
  end
end

Code:

function ConstAP(sender)
APvalue = tonumber(CheatPanel_CEEdit1.Text);
if (APvalue) then
  local entry = getAddressList().getMemoryRecordByDescription("AP Rec From Battle");
  AP = entry.value;
  entry.value = APvalue
end
end

Basically what initially desired was the edit box beside the checkbox was not visible until the checkbox was checked, then a number could be added to the edit box and used in the table. The error shows up when the checkbox is checked and the edit box doesn't become visible. This used to work but when attempted recently fails with Access violation error. There are a number of checkboxes on the panel and they all have a similar code so one fix will have to be used on all of them.
Back to top
View user's profile Send private message Yahoo Messenger
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