Closed jacob1 closed 12 years ago
tpt.el.fray.menu = 1 causes a rebuild of the menu, clearing any set tools, you should NOT be calling this every frame.
There is no such element as REPL (RPEL for Repel is though, the gol element no longer exists in TPT, use the new elements.allocate(string group, string name) to create an element
The REPL problem was just a misspelling when typing it in the console, it's spelled right in the script. I don't know why i'm setting these values every frame, but it isn't an issue in tpt so I thought it didn't matter
I think changing whether something shows in the menu should leave what you had selected the same. I'm not allowed to reopen issues, so i'll create another one
REPL can't be modified with the lua console, it says it's not an element. This is probably because REPL and REPL are both elements, and it thinks you are using the GOL kind.
Also, using tpt.el.xxxx.menu = 0/1 will set the current menusection to powders, I have this in a lua script and it makes it impossible to get out of the powders section (it changes this every frame in the step function)
using tpt.el.fray.menu = 1 every frame causes another strange glitch. I can't click on anything not in the simulation area (new elements, save browser, clear sim buttons), but I can still draw dust
All of this is using my favorite elements lua script version 3
To see these glitches, just use this:
function asdf() tpt.el.fray.menu = 1 --tpt.el.repl.menu = 1 end tpt.register_step(asdf)
The whole time the error was never in the mouseclick function like I said earlier, it was these problems, with 8 lines that I never expected to have anything wrong with them.
Also, I never got an error saying repl wasn't an element, or any error at all the whole time. Was .menu renamed to something else?