Lua Help Thread

  • Simon
    4th Jan 2012 Administrator 0 Permalink
    tpt.el.properties is very difficult to alter using Lua (it's an integer field that describes certain flags) and it doesn't actually change the state.

    tpt.el.[...].falldown is what you need to alter, 0 for solid, 1 for Powder and 2 for Liquid.
  • kerbal1234
    4th Jan 2012 Member 0 Permalink
    I tried that with WATR and it was still a liquid. I typed tpt.el.watr.falldown=0.
  • Simon
    4th Jan 2012 Administrator 0 Permalink
    You have to set tpt.el.watr.gravity=0 too, otherwise it will behave oddly.
  • kerbal1234
    4th Jan 2012 Member 0 Permalink
    Thanks. I thought about it before and thought it might have something to do with that or weight.
    EDIT: still wont work.
  • Naes
    4th Jan 2012 Member 0 Permalink
    how do I stop a script from working without renaming he script and rerunning TPT?
  • SethLuaMod
    4th Jan 2012 Member 0 Permalink
    **off topic:
    Hi This is kerbal, but i made a new account for my modding and stuff.
  • MassacreLand
    4th Jan 2012 Member 0 Permalink
    @Naes (View Post)

    remove the script from the script file

    Go to the lua ingame edit thing (~)
    Do the
    Dofile autorun.lua thing lol
    and it should run your lua file that either has no scripts or has scripts but not the script you do not want being ran.
  • mniip
    4th Jan 2012 Developer 0 Permalink
    @Naes (View Post)
    depends on script.
    You may erase/move autorun.lua and restart TPT
  • biostars
    4th Jan 2012 Member 0 Permalink
    How do I solidify an element that isn't solid and make sure that it doesn't fade away, plus make it change into another element when it hits other solids, plus make sure the solidified element move? Also, how do I make the changed element blow up when in direct and indirect contact with at least 2 others of the element it changes into? Note: I need this information in order to make my BIG save.
  • mniip
    4th Jan 2012 Developer 0 Permalink
    Movable solids...
    Ive already mentioned that there are only a few users that could make movable solids script.
    Anyways, you're asking someone to make you a complete script, why would someone do it? This thread is for particular help, not the thing your asking