View previous topic :: View next topic |
Author |
Message |
Dark Byte Site Admin
Reputation: 452
Joined: 09 May 2003 Posts: 25008 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: 163
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: 27
Joined: 16 Feb 2017 Posts: 1124
|
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: 88
Joined: 14 Jul 2007 Posts: 3054
|
Posted: Sun Jul 23, 2023 3:17 am Post subject: |
|
|
Thanks DB!
Making it easier...
Description: |
|
 Download |
Filename: |
CE75StructDissectInsertFix.lua |
Filesize: |
951 Bytes |
Downloaded: |
103 Time(s) |
|
|
Back to top |
|
 |
|