The wiki happens to be defaced at the moment, but I have a suggestion. The entry for tpt.get_property says it returns an object. Why not simply return a string that we can check it against? if I call tpt.get_property("type",x,y) it should simply return a string containing the type of the particle at (x,y). The same would occur for all properties. The main reason I ask for this is that we would have virtually infinite wifi channels, but there are other uses.
In addition, we should be able to upload a save along with a few lines of optional code, so we can use Lua commands to temporarily tweak the game for our save. When the user saves the creation to disk, the commands would be saved as well.
I think this would be a great way to encourage all users, not simply the adept ones, to know at least a little bit about the lua console. Please tell me what you think!
@JH-Darkfire(View Post) @DerpLord(View Post) upload code to your save Write lua exploits and viruses, attach to your save, then upload your save. @ post below Because of the chaos that would happen. You could move the mouse to the upvote button and force click it etc.
Uh sorry, but I don't think you can write to files or access things outside of TPT with the console. If you can, the devs' implementation of the console is really poor.
Uh sorry, but I don't think you can write to files or access things outside of TPT with the console. If you can, the devs' implementation of the console is really poor.
You cannot. I believe the directory is limited to the Powder Toy folder. He will leave because it might be a cause of viruses. But with all the noobs not knowing how to use Lua and not reading the wiki at all, I highly doubt a virus could be created by anyone who isn't a good guy. Edit: And I use "Good guy" lightly there, mods.