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!
You know how to code?
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.
It's mainly because it's compiled from loads of stuff, each person has different styles. But yeah, fix it please :P