How do you download Lua? And how to use

  • tobster8
    24th Mar 2016 Member 0 Permalink

    Hello, I am wondering how to download Lua and how to use it to get mods?

    Thanks

  • DanielGalrito
    24th Mar 2016 Member 0 Permalink

    Lua doesn't let you use mods, it lets you use scripts.

    Scripts are easier to modify, enable/disable and can be used on any powder toy version,

    while in mods you can code more mechanisms but you cant open saves from more recent versions.

    Just put the autorun.lua from https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=19400

    into the folder where you have powder toy, then put scripts in a folder that is created called "Scripts".

  • jacob1
    25th Mar 2016 Developer 1 Permalink
    If you do want to download the script manager, it's really simple and will allow you to manage scripts by putting them in scripts/ like DanielGalrito said. Or you can download from a list of approved scripts online.

    To download it, just type this in the console: tpt.getscript(1, "autorun.lua") dofile("autorun.lua")

    I haven't updated the instructions in the thread yet, but 91.0 makes it really easy.
    Edited once by jacob1. Last: 25th Mar 2016
  • boxmein
    25th Mar 2016 Former Staff 0 Permalink
    @tobster8 (View Post)
    Lua is already embedded right into Powder Toy. This is what lets Lua scripts control TPT, giving people a way to create mods. You can download the autorun script or just run Lua code straight from the script console.
  • tobster8
    25th Mar 2016 Member 0 Permalink

    Thanks, but how do you get mods then?

  • greymatter
    27th Mar 2016 Member 0 Permalink
    @tobster8 (View Post)
    Lua has nothing to do with mods.
    Mods are entirely different versions of TPT that has to downloaded and installed separately. They do not modify your original TPT file.
  • boxmein
    27th Mar 2016 Former Staff 0 Permalink
    @tobster8 (View Post)
    You can get Lua mods from the Lua script forum or the Starcatcher script server.

    @greymatter (View Post)
    Essentially, we should probably call Lua scripts that modify TPT also mods. They do the same thing in the end as C++ mods...
    Edited once by boxmein. Last: 27th Mar 2016