Lua Element Creator

  • jacob1
    22nd Aug 2017 Developer 0 Permalink
    @CORBEN369 (View Post)
    It just means, "use whichever one works for you"

    But I can't help any more than that, the download link seems broken. If you were just looking for a download, maybe someone else will have to provide it. The github has some .au3 files but I've never seen that before and don't know what it is (or how to compile it)

    There does seem to be an older version available here: https://github.com/FeynmanTech/Lua-Element-Creator-Current/releases/tag/v.5.2.0%2Bv.2.0.0
  • KronprinzWilhelm
    8th Oct 2017 Member 0 Permalink

    @jacob1 (View Post)

     Does the outdated version work with the latest TPT release?

  • jacob1
    8th Oct 2017 Developer 0 Permalink
    @KronprinzWilhelm (View Post)
    probably. I've never used this before though
  • optimus2006
    16th Nov 2017 Member 0 Permalink

    @jacob1 (View Post) 

     

     

     How do I download that? it's all in separate folders....

    Edited 2 times by optimus2006. Last: 16th Nov 2017
  • RebMiami
    16th Nov 2017 Member 0 Permalink

    How do I make element transitions? I am using the GitHub release because it is the only one that works for me.

  • phox
    17th Nov 2017 Member 0 Permalink

    you can't actually make transitions with this that I know of, but if you edit the code for example its very easy. under update args you can basically paste in code like this

     

     

    break;
    case PT_LO2:
    goto succ;
    default:
    break;
    }
     
    so after this break is 'Succ' (lol) you can have as many as you want of these.
    this is succ
     
    }
    return 0;
    succ:
    sim->part_change_type(i,x,y,PT_BMTL);
    parts[i].tmp=(rand()%10)+20;
    return 0;
    }
     
    all that really says is tell iron to refer to the succ code when iron encounters lox, and succ tells the iron to undergo a transition to bmtl (sim->part_change_type) Ill try to make this easier to understand later, i wrote this on a phone lol
  • jacob2
    17th Nov 2017 Member 0 Permalink
    @phox (View Post)
    This is Lua, not C++

    Also, please don't recommend people use goto. It is bad practice. It only exists in C++ for compatibility reasons
  • Potbelly
    17th Nov 2017 Banned 0 Permalink
    This post is hidden because the user is banned
  • phox
    17th Nov 2017 Member 0 Permalink

    ^^^ this.

     

    lua is pretty easy to understand anyways, shouldn't take more than an hour to get what you want. 

  • Potbelly
    17th Nov 2017 Banned 0 Permalink
    This post is hidden because the user is banned
Locked by LBPHacker: dead script