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 


ce 7.5 Structure dissect insert element error fix

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Feb 15, 2023 9:33 am    Post subject: ce 7.5 Structure dissect insert element error fix Reply with quote

sometimes when you insert a non-pointer element into a structure you'll get an error

this will prevent that error:
Code:

function forEachAndFutureForm(classname, func)
  local i
  for i=0,getFormCount()-1 do
    local f
    f=getForm(i)
    if f.ClassName==classname then
      func(f)
    end
  end

  registerFormAddNotification(function(f)
    if classname==f.ClassName then
      f.registerFirstShowCallback(function()
        func(f)
      end)
    end
  end)
end

forEachAndFutureForm('TfrmStructures2ElementInfo',function(f)
  f.cbStructType.ItemIndex=0
end)


(it's fixed in patreon, and eventually on main as well, but this is an easy fix to put in your autorun. The fix does the same)

_________________
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
Recifense
I post too much
Reputation: 166

Joined: 17 Mar 2008
Posts: 3688
Location: Pernambuco - Brazil

PostPosted: Wed Feb 15, 2023 11:52 am    Post subject: This post has 1 review(s) Reply with quote

The script solved the issue (CE75).

Thank you!

Cheers!

_________________
Don't think TRAINER, think TABLE. Wink

MSG: Contributing since 2008 (March,17th) Smile

STATUS: if you want one of my tables, e-mail me.

NO NEW TABLE. ONLY MAINTENANCE OF SOME OLD ONES.
Back to top
View user's profile Send private message Send e-mail
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1246

PostPosted: Wed Feb 15, 2023 12:27 pm    Post subject: Reply with quote

Recifense wrote:
Cheers!


I'm glad you're alive.
You are my second CE legend for me. Cool

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
zeromccloud
How do I cheat?
Reputation: 0

Joined: 22 Jul 2023
Posts: 1

PostPosted: Sat Jul 22, 2023 7:19 am    Post subject: Reply with quote

Thanks so much for this, the script works perfectly!
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 94

Joined: 14 Jul 2007
Posts: 3107

PostPosted: Sun Jul 23, 2023 3:17 am    Post subject: Reply with quote

Thanks DB!
Making it easier...



CE75StructDissectInsertFix.lua
 Description:

Download
 Filename:  CE75StructDissectInsertFix.lua
 Filesize:  951 Bytes
 Downloaded:  426 Time(s)

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 Extensions 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