simtr / PowderToypp

This repository has been moved to https://github.com/FacialTurd/The-Powder-Toy
https://github.com/FacialTurd/The-Powder-Toy
GNU General Public License v3.0
20 stars 12 forks source link

Lua console problems #121

Closed jacob1 closed 11 years ago

jacob1 commented 12 years ago

When running the step functions, it only runs if the first one is registered, unregistering that will prevent all of the others from running (this was fixed in tpt already). Maybe the registering should be rewritten, cracker64 had problems with mouse and key events when making his autorun manager script, and there is currently a limit of 6 functions of each kind.

not implemented functions: tpt.set_console tpt.hud tpt.display_mode

tpt.set_debug says it's depreciated, but was useful, so it probably needs a replacement too (maybe you're planning a way without lua) tpt.getscript was implemented, but doesn't return an error when I call it without arguments, so it looks like it didn't work tpt.set_property has no element id/name checks and can create invalid elements

I noticed all of these by looking at the code, I haven't really tried running a script yet.

jacob1 commented 12 years ago

I updated this a little, and also found another bug. When in the deco menu, use tpt.active_menu(#), and the sliders will stay there and still work, but may be covered up.