Help...(Please noone laugh at me)

  • FeynmanLogomaker
    24th Sep 2014 Member 0 Permalink
    Idk, I really like SciTE, even though it's not the best editor by far.
  • batman333
    25th Sep 2014 Member 0 Permalink

    Is there a way to make them work for LUA elements (Works for pre existing ones but new LUA made ones dont seem to work)

  • jward212
    25th Sep 2014 Member 0 Permalink

    by them due you mean the programs we use to make scripts?

  • batman333
    25th Sep 2014 Member 0 Permalink

    ???

  • jward212
    25th Sep 2014 Member 0 Permalink

    by them due you mean notepad++,sublime text and sciTE

  • batman333
    25th Sep 2014 Member 0 Permalink

    no I mean the Lua codes for tpt

    (Im pretty sure LUA is just interpreted anyway so...)

  • jacob1
    25th Sep 2014 Developer 0 Permalink
    Btw, it's Lua, not LUA. LUA is incorrect. Also I use notepad for lua :P, really simple.

    Also I noticed the code still directly sets tpt.parts[i].type instead of using sim.partChangeType(i, tpt.el.pste.id) ): . The first method causes undefined behavior which works fine 99.9% of the time until the particles are in just the right order and everything breaks.
  • jward212
    25th Sep 2014 Member 0 Permalink

    sorry i'm dumb

    so you mean you would like to make functions for your own elements

  • batman333
    25th Sep 2014 Member 0 Permalink

    Sometimes yes, Your way works great unless I use it for my own elements

  • jward212
    25th Sep 2014 Member 0 Permalink

    tpt.element('bcol') insted of tpt.el.bcol.id

    or use what ever you allocated

    e.g

    local Creosote = elements.allocate("JWARD", "CRST")

    so Creosote insted of tpt.el.crst.id

    if it helps borrow some of my code https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=18664

    credit if you use some elements

    Edited 2 times by jward212. Last: 25th Sep 2014