Why wont this script work?

  • vertigo
    27th Jun 2012 Member 0 Permalink

    I have it in the autorun.lua file with no .txt or whatever. Here is the script.

    tpt.el.myst.name="PLAS" --Making the "Plastic" element.
    tpt.el.myst.enabled=1
    tpt.el.myst.menu=1
    tpt.el.myst.menusection=1 --Adding it to the electronics section.
    tpt.el.myst.gravity=0 --Making it solid.
    tpt.el.myst.falldown=0 --Making it solid.
    tpt.el.myst.heat=273 --Giving it the starting heat of 0
    tpt.el.myst.description="Plastic. a spaceholder."
    tpt.el.myst.color=0xB6AFA9

    This is turning the life-type myst into plastic, to be used in the electronics section.

    Plese help. -Vertigo (Im a new modder!)

  • Dawgie
    27th Jun 2012 Member 0 Permalink
    tpt.el.wax.name="PLAS" --Making the "Plastic" element.
    tpt.el.wax.menu=1
    tpt.el.wax.menusection=1 --Adding it to the electronics section.
    tpt.el.wax.gravity=0 --Making it solid.
    tpt.el.wax.falldown=0 --Making it solid.
    tpt.el.wax.heat=273 --Giving it the starting heat of 0
    tpt.el.wax.description="Plastic. a spaceholder."
    tpt.el.wax.color=0xB6AFA9


    Fixed it
  • vertigo
    27th Jun 2012 Member 0 Permalink

    Thanks!

    One problem though, i dont have "WAX" anymore. I thought that there is a way to "add" an element, not just mod one. I know how to fix it melting into MWAX though.

  • boxmein
    27th Jun 2012 Former Staff 0 Permalink
    @vertigo (View Post)
    C code is pre-written so what it matters to you is that you can't programmatically add or remove elements. There are empty elements to use though, such as BRAN. They're marked in elementdata.c as /* FREE */
    If you modify it, you'll lose the original one.
  • vertigo
    27th Jun 2012 Member 0 Permalink

    thanks, and is there any other ones besides BRAN? I would love a link with a list. Or even better, just post the list.

  • billion57
    27th Jun 2012 Member 0 Permalink

    ELEC is one.

  • boxmein
    28th Jun 2012 Former Staff 0 Permalink
    @vertigo (View Post)
    As of what I see here there is only BRAN.
  • vertigo
    28th Jun 2012 Member 0 Permalink

    Thanks for all the comments, and one thing: How do you make a particle glow? tpt.el.----.????=?