how do you make tpt mods?

  • leedasol
    7th Jan 2014 Member 0 Permalink

    how do you make tpt mods?

    is there a program?

  • boxmein
    7th Jan 2014 Former Staff 3 Permalink
    There's quite a few programs but none of them make you able to skip most of the "know about how TPT works" part.
    So first things first, TPT mods are programmed in C++. Or with Lua scripting. That's a simpler option, but is nevertheless a bit slower and less flexible. 99% of the mods are made with Lua though!
    With actual code. Like hackers do.

    The real challenge of programming isn't learning a language's syntax—it's learning to creatively solve problems so you can build something great.

    For the syntax part,
    you could first check out a myriad of tutorials online for a beginner's course on Lua.

    For the problem-solving part,
    you can learn that by doing, or basically experience. There's a book of course but books might not really be available for everyone.

    After that, you could try using the TPT console with some TPT commands you can see listed here, trying out different things to see how they react.

    I should also mention that there's some tools that simplify the process a bit (but totally skip over reactions and everything else that matters!)
    Edited 3 times by boxmein. Last: 22nd Jan 2014
  • xetalim
    7th Jan 2014 Member 0 Permalink

    There is an tutorial on the wiki, you might also want to try this.

    There also is this wich might help you coding your element.

  • sfsjunior
    15th Mar 2014 Member 0 Permalink

    @leedasol (View Post)

     Hello, leedasol,

    You must learn a bit of lua(pronounce "Looa", from the portuguese word for moon) and learn how to use the tpt api for lua. I've built a simple mod in lua that you can see here:

     https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=18530

    Create a txt and program it.then you just need to rename the file as autorun.lua and execute the game to use your mod.

    Sorry for the bad english, i'm Brazillian.

  • megamageiii
    30th Apr 2014 Member 0 Permalink

    @leedasol (View Post)

     If you're a beginner at coding, I reccommend lua because it is simpler. However, you can't do as much as you can with C++ (From what I have heard, at least. I only know lua, not C++, so this is not from personal experience). There should be plenty of tutorials online, and the wiki has a page for the commands used in TPT.

    @sfsjunior (View Post)

     Your mod is amazing, I've had it for a while.