Here's my current autorun.lua

  • Videogamer555
    12th Dec 2011 Member 1 Permalink
    This file makes gases and neutrons behave more to what they should. Gases no longer moves randomly, but rather in straight lines, until bumping into other particles, just like a real gas does, after all pressure isn't just a number, it is a large number of colisions in a short period of time. This is now more realistic. Neutrons don't wobble in their path like they do in TPT, but rather in real life they move in straight lines (rays) just like light. My autorun.lua also makes this correction.

    tpt.el.hygn.diffusion=0
    tpt.el.hygn.hotair=0.0009
    tpt.el.hygn.collision=-1
    tpt.el.hygn.airdrag=0
    tpt.el.hygn.airloss=1
    tpt.el.hygn.loss=1
    tpt.el.hygn.advection=0.1
    tpt.el.hygn.gravity=0

    tpt.el.oxyg.diffusion=0
    tpt.el.oxyg.hotair=0.0009
    tpt.el.oxyg.collision=-1
    tpt.el.oxyg.airdrag=0
    tpt.el.oxyg.airloss=1
    tpt.el.oxyg.loss=1
    tpt.el.oxyg.advection=0.1
    tpt.el.oxyg.gravity=0

    tpt.el.gas.diffusion=0
    tpt.el.gas.hotair=0.0009
    tpt.el.gas.collision=-1
    tpt.el.gas.airdrag=0
    tpt.el.gas.airloss=1
    tpt.el.gas.loss=1
    tpt.el.gas.advection=0.1
    tpt.el.gas.gravity=0

    tpt.el.nble.diffusion=0
    tpt.el.nble.hotair=0.0009
    tpt.el.nble.collision=-1
    tpt.el.nble.airdrag=0
    tpt.el.nble.airloss=1
    tpt.el.nble.loss=1
    tpt.el.nble.advection=0.1
    tpt.el.nble.gravity=0

    tpt.el.wtrv.diffusion=0
    tpt.el.wtrv.hotair=0.0009
    tpt.el.wtrv.collision=-1
    tpt.el.wtrv.airdrag=0
    tpt.el.wtrv.airloss=1
    tpt.el.wtrv.loss=1
    tpt.el.wtrv.advection=0.1
    tpt.el.wtrv.gravity=0

    tpt.el.caus.diffusion=0
    tpt.el.caus.hotair=0.0009
    tpt.el.caus.collision=-1
    tpt.el.caus.airdrag=0
    tpt.el.caus.airloss=1
    tpt.el.caus.loss=1
    tpt.el.caus.advection=0.1
    tpt.el.caus.gravity=0

    tpt.el.co2.diffusion=0
    tpt.el.co2.hotair=0.0009
    tpt.el.co2.collision=-1
    tpt.el.co2.airdrag=0
    tpt.el.co2.airloss=1
    tpt.el.co2.loss=1
    tpt.el.co2.advection=0.1
    tpt.el.co2.gravity=0

    tpt.el.neut.diffusion=0
  • vanquish349
    12th Dec 2011 Member 0 Permalink
    change the quote tags to code tags
  • Videogamer555
    12th Dec 2011 Member 0 Permalink
    I just want to figure out one more thing. I find I can't change the "name" property of the element. Color yes. But not the name. How do I rename an element to a different 4letter code (like change METL to WXYZ) I tried all 3 of these:
    tpt.el.metl.name=WXYZ
    tpt.el.metl.name='WXYZ'
    tpt.el.metl.name="WXYZ"

    However none worked. It kept saying "invalid property". Please help.


    Here's the list of supposedly valid properties that exist (and thus can be edited with Lua). I found this in powder.h.
    const char *name;
    pixel pcolors;
    float advection;
    float airdrag;
    float airloss;
    float loss;
    float collision;
    float gravity;
    float diffusion;
    float hotair;
    int falldown;
    int flammable;
    int explosive;
    int meltable;
    int hardness;
    int menu;
    int enabled;
    int weight;
    int menusection;
    float heat;
    unsigned char hconduct;
    const char *descs;
    char state;
    const unsigned int properties;
  • ArtMaster
    12th Dec 2011 Banned 0 Permalink
    This post is hidden because the user is banned