View previous topic :: View next topic |
Author |
Message |
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
|
Back to top |
|
|
samy_grecu !BEWARE! Deletes post on answer Reputation: 0
Joined: 30 Dec 2016 Posts: 12 Location: Italy
|
Posted: Fri Jan 12, 2018 5:20 am Post subject: |
|
|
Error:... Engine 6.7\autorun\pluginAddMenu_Tools_TableHelpers.lua:418: attempt to call a nil value (global 'addMenuItem')
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Fri Jan 12, 2018 7:32 am Post subject: |
|
|
@sam87
Sorry about that, stupid mistake on my part, didn't add the function but it was loaded by another extension I use. It's fixed now.
_________________
|
|
Back to top |
|
|
DeRol Newbie cheater Reputation: 0
Joined: 26 Aug 2009 Posts: 18
|
Posted: Tue Feb 01, 2022 9:53 pm Post subject: |
|
|
Thanks, I've found most of these functions useful.
I have a question about the Remove Structure parts.
Any clue on error handling these errors?
Code: | Error:List index (<some number>) out of bounds |
I'm still learning a little bit of lua (using your posts as a guide, good stuff) and I was testing things by generating some empty structures:
Code: | -- create 20 blank structures
for i = 0, 19 do
createStructure(blah).addToGlobalStructureList()
end
local structures = getStructureCount()
print(structures) |
Then opening another tab and running code to reproduce the error:
Code: | print(getStructureCount())
for i = 0, getStructureCount() - 1 do
print("before: ")
print(getStructure(i))
getStructure(i).removeFromGlobalStructureList()
print("after: ")
print(getStructure(i))
end
print(getStructureCount()) |
I have to run the code multiple times until all the structures are gone due to the error.
I also tried error handling, but I don't think Cheat Engine supports it:
Code: | function removeStructs ()
for i = 0, getStructureCount() - 1 do
print("before: ")
print(getStructure(i))
getStructure(i).removeFromGlobalStructureList()
print("after: ")
print(getStructure(i))
end
end
function errorhandler(err)
print("AHHHH:",err )
end
status = xpcall(removeStructs,errorhandler)
print(status) |
I know the Structure Dissect window has File > Delete All Structures , but I couldn't find anything in the wiki to call it.
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Tue Feb 01, 2022 10:51 pm Post subject: |
|
|
A CE update makes it stop working the way it did. Basically it has to go through the structures backwards now. It's fixed and now updated to 1.0.5 on the top post.
_________________
|
|
Back to top |
|
|
DeRol Newbie cheater Reputation: 0
Joined: 26 Aug 2009 Posts: 18
|
Posted: Tue Feb 01, 2022 11:41 pm Post subject: |
|
|
TheyCallMeTim13 wrote: |
A CE update makes it stop working the way it did. Basically it has to go through the structures backwards now. It's fixed and now updated to 1.0.5 on the top post. |
Oh, interesting.
Thanks for the reply.
edit--
Since you're updating things a bit, it looks like your Dev Tools menu on Fearless may need the same adjustment.
edit2--
never mind, looks like I didn't notice the update over there
|
|
Back to top |
|
|
|