How do you make mods?

  • ISproductions
    21st Apr 2014 Member 0 Permalink

    Friends asking me, but i dont know to the dot.

  • greymatter
    21st Apr 2014 Member 1 Permalink
    @ISproductions (View Post)
    You can make a mod in two ways:

    1)Learn to code in lua. You can make a lua file,program it and run it in tpt to get the changes you want.
    2) Get the TPT source code, follow the steps in the wiki to get it ready to be edited in Visual C++ or SCons, reprogram the thing in whatever way you want in C++.

    For a beginning you should try lua, as you can do it in notepad and is (arguably) easier than C++.
  • MiningMarsh
    22nd Apr 2014 Member 0 Permalink

    @greymatter (View Post)

    You can program in notepad. You probably just don't want to.

     

    If one wants a nice editor that can be used for both C++ and Lua, I recommend Geany (It also has tools to integrate your build system, but I never bothered with them as I prefer to compile things on the CLI, find errors a bit easier to read that way.), it has great highlighting features etc. without being a fully blown slow IDE.

     

    EDIT: SCons is not an editor, it is a build system. :)

    Edited once by MiningMarsh. Last: 22nd Apr 2014
  • ISproductions
    22nd Apr 2014 Member 0 Permalink

    thnks alot!

  • megamageiii
    30th Apr 2014 Member 0 Permalink

    I have a related question; How do you make elements mix together when coding in Lua? For example, if I made sulfer/SLFR/MOD_PT_SLFR, and I wanted to make GUN when it mixed with BCOL, how whould I do that? What line(s) would I use?