TPT's Mod (The Largest Lua Mod)

  • Amy
    25th Mar 2014 Member 4 Permalink

    This is an advanced Lua mod for TPT. I took the elements from several people (See credits inside the mod), and modified descriptions, characteristics, and names. I programmed several elements on my own and am still doing so. I created a completely new HUD which can be turned on and off using the < and > keys. For an extended HUD press the - and = keys. The HUD displays Type, Ctype, Pressure, Temperature, Life, Tmp and x/y coordinates of your mouse. The extended shows Tmp2, x velocity of the particle and y velocity of the particle. Press h for normal HUD. If you would like me to add/remove an element, please post here or email me. Please report bugs in the same fashion.

     

    This is TPT's Mod Version 2 Update 0.

     

     

    It includes:

     

    -Over forty new elements

    -Special HUD

    -TUNG emits electrons at -7 pressure

    -Updates from cracker64's manager

     

    New in this update:

     

    -MRTR (Mortar Right)

    -MRTL (Mortar Left)

    -STEL (Special Steel)

    -SNGB (Strong Brick)

    -SUGL (Super Glass)

    -Removed SULF

    -Moved SPRB

    -LHYG (Liquid Hydrgogen)

    -Move TR0N and BHIV

    -Built a new HUD

     

     

    I recommend downloading cracker64's Lua script manager, as it is much easier to use than the console.

     

    Using cracker's manager, save THIS code as "TPTsMod.lua" and save it in the scripts folder. Open up TPT and use cracker's manager to run the file.

     

    Using the console, do the same except save the file in the same directory as TPT. Once in TPT, open the console (~ button) and type the following: dofile("TPTsMod.lua")

     

    To update your version of TPTsMod using cracker64's script manager, simply open the manager and click the "Check" button in the right column. If it is up to date it will say so, if there is an update it will change the "Check" button to an "Update" button. Simply click that button and it should automatically update the code.

     

    If you do not have the manager, DOWNLOAD IT HERE!

     

     Tell me what to add for update 1!

     

    Update 1 will include:

     

    PLEASE SUGGEST! I will take any suggestions!

    Edited 18 times by Amy. Last: 15th Apr 2014
  • Schneumer
    25th Mar 2014 Member 0 Permalink

    @Amy (View Post)

     You know how to code?

  • Amy
    25th Mar 2014 Member 0 Permalink

    Yes.

  • CeeJayBee
    25th Mar 2014 Member 0 Permalink

    @Amy (View Post)

     Ohaider. Nice mod.

     

    EDIT: Nice idea with the credits tab.

    Edited once by CeeJayBee. Last: 25th Mar 2014
  • gamax92
    25th Mar 2014 Member 0 Permalink

    Please, make your code's indentation consistent.

    Theres like, lack of indents on if statements, spaces instead of tabs (vice versa), huge sections of empty lines, global variables

  • mniip
    25th Mar 2014 Developer 3 Permalink
    >half of the things global
    >what is indentation
    >commented out blocks
    >email hardcoded in the source
  • FeynmanLogomaker
    25th Mar 2014 Member 0 Permalink

    For once, I agree with Mniip's criticism. You really ought to go through your code and fix all that, and change the indenting to one unified style.

  • CeeJayBee
    25th Mar 2014 Member 0 Permalink

    @FeynmanLogomaker (View Post)

     It's mainly because it's compiled from loads of stuff, each person has different styles. But yeah, fix it please :P

  • Amy
    25th Mar 2014 Member 0 Permalink

    To everyone: I'll fix the code formatting in update 1. Anything else I should update/change?

  • mniip
    26th Mar 2014 Developer 0 Permalink
    @Schneumer (View Post)
    You have a problem with that? (I've been creating scripts better than this a year ago, though)
Locked by LBPHacker: necro