Official Game Feedback

  • Simon
    4th Aug 2011 Administrator 0 Permalink
    69.1 Beta brings some fancy stuff to the Lua API
    Edit element properties using tpt.el array (old tpt.el IDs can now be accessed from tpt.el.watr.id, etc)
    Make water explosive:
    tpt.el.watr.explosive = 2
    tpt.el.watr.flammable = 1000

    Particles array is now exposed (almost) fully
    Change temperature of particle ID 3
    tpt.parts[3].temp = 1000
  • therocketeer
    4th Aug 2011 Member 0 Permalink
    @Simon (View Post)
    wow, exploding water is very cool. I love new Lua additions.
  • disturbed666
    4th Aug 2011 Member 0 Permalink
    @disturbed666 (View Post)


    anyone going to post there ????
  • therocketeer
    4th Aug 2011 Member 0 Permalink

    disturbed666:

    @disturbed666 (View Post)
    I will.

    anyone going to post there ????
  • stuffedcritters
    4th Aug 2011 Member 0 Permalink
    This post has been removed by Sylvi: Element suggestion? Ignored.
    Edited once by stuffedcritters. Last: 22nd Oct 2021
  • disturbed666
    4th Aug 2011 Member 0 Permalink
    @therocketeer (View Post)
    Ok thanks I really apreciate that you posted on it :D

    but do you have an idea for that problem???
  • CAC-Boomerang
    4th Aug 2011 Member 0 Permalink
    @stuffedcritters (View Post)

    This isn't the place for element suggestions, and please use the search bar before you request an element.
  • Videogamer555
    4th Aug 2011 Member 0 Permalink
    Coool
    tpt.el.watr.explosive = 2
    tpt.el.watr.flammable = 1000

    Like exploding watr. What are all the possible element variables (explosive, flammable, etc)? Also is there going to be any way to save these settings to like a elemsettings.ini or something, so I don't have to enter these commands or run a script every time I run TPT?
  • Simon
    4th Aug 2011 Administrator 0 Permalink
    @Videogamer555 (View Post)
    You can make use of the autorun.lua file
    As for editing elements, you can change pretty much any property except the name and graphics function. If you want to change the update function, use tpt.element_func()
  • Videogamer555
    4th Aug 2011 Member 0 Permalink

    Simon:

    @Videogamer555 (View Post)
    You can make use of the autorun.lua file
    As for editing elements, you can change pretty much any property except the name and graphics function. If you want to change the update function, use tpt.element_func()


    Thanks but what are the names of all the element properties (flammable, explosive, etc)? I'm sure those 2 are just a few of many properties that can only be edited by LUA. For example which powder will fall through which other powder is some kind of density. How do I set that. Please make a list of all LUA editable properties of elements.
Locked by Simon: Getting a bit cramped