View previous topic :: View next topic |
Author |
Message |
Dark Byte Site Admin
Reputation: 467
Joined: 09 May 2003 Posts: 25669 Location: The netherlands
|
Posted: Wed Feb 15, 2023 9:33 am Post subject: ce 7.5 Structure dissect insert element error fix |
|
|
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 |
|
 |
Recifense I post too much
Reputation: 166
Joined: 17 Mar 2008 Posts: 3688 Location: Pernambuco - Brazil
|
Posted: Wed Feb 15, 2023 11:52 am Post subject: |
|
|
The script solved the issue (CE75).
Thank you!
Cheers!
_________________
Don't think TRAINER, think TABLE.
MSG: Contributing since 2008 (March,17th)
STATUS: if you want one of my tables, e-mail me.
NO NEW TABLE. ONLY MAINTENANCE OF SOME OLD ONES.
|
|
Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 34
Joined: 16 Feb 2017 Posts: 1462
|
Posted: Wed Feb 15, 2023 12:27 pm Post subject: |
|
|
I'm glad you're alive.
You are my second CE legend for me.
_________________
|
|
Back to top |
|
 |
zeromccloud How do I cheat?
Reputation: 0
Joined: 22 Jul 2023 Posts: 1
|
Posted: Sat Jul 22, 2023 7:19 am Post subject: |
|
|
Thanks so much for this, the script works perfectly!
|
|
Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3282
|
Posted: Sun Jul 23, 2023 3:17 am Post subject: |
|
|
Thanks DB!
Making it easier...
Description: |
|
 Download |
Filename: |
CE75StructDissectInsertFix.lua |
Filesize: |
951 Bytes |
Downloaded: |
948 Time(s) |
|
|
Back to top |
|
 |
sir-gunny Advanced Cheater
Reputation: 0
Joined: 15 Mar 2012 Posts: 81
|
Posted: Tue Jun 11, 2024 1:48 am Post subject: |
|
|
Hi.
It seems i do something wrong. If i use this script, the dropDownMenu for "Structure pointed to" at Structure Info window points always to "Undefined". I only copy Csimbi's file to my CE75 autorun. If i delete it, everything is ok.
|
|
Back to top |
|
 |
Csimbi I post too much
Reputation: 97
Joined: 14 Jul 2007 Posts: 3282
|
Posted: Wed Jun 12, 2024 11:22 am Post subject: |
|
|
That is a side-effect, yes. I reported to DB, should be fixed in the next release, I think.
|
|
Back to top |
|
 |
|