Or more accurately "can't move powders when the menusection Lua command is called from an autorun lua file or when called from a lua file which is itself called from an autorun lua file"
I just tried to move BRMT (broken metal) out of powders and into explosives (because one of my other Lua codes made it explosives). I just used tpt.el.brmt.menusection=3 but it didn't work! It still is in the powders section! It did not move it to explosives. It works when I do it manually from the console, but it didn't work when I did it from autorun.lua, nor from a file called by autorun.lua in the line: dofile "mangnesium.lua" Yet ALL MY OTHER LINES OF CODE in autorun.lua and the file magnesium.lua which is called by autorun.lua work fine. It seems it doesn't want to honor the act of moving the element from a powder (specifically powders) to another section when being called by an autorun, but it WORKS PERFECTLY when trying to move a solid like METL (regular metal) or IRON to another menusection when called from autorun.
PLEASE HELP!
.:UPDATE:. Nevermind, I see my error in an above line of code. I think Lua just stopped executing commands when it hit the error, so the line of code that moved BRMT to the different menu section (which came on a line of code after the error) was never executed.