How To Fuse TPT Mods

  • Ace
    12th Mar 2011 Member 0 Permalink
    How to fuse powder toy mods, by Ace. Please read one of these depending on your OS before you start.

    The mod
    Get a clean copy of powder toy and then get the two mods of your choice.

    #define
    Go to powder.h in the header files section of both of your selected mods. Scroll down, just bit down are the modded in elements. For example:

    Now go to your clean copy and insert the modded elements, remembering to change the numbers on the side to go in order.

    The ptypes[]
    At some point you will see a variable named ptype, providing you know what a variable of course other wise look for blocks of code like this:

    {"BRAN", PIXPACK(0xCCCC00), 0.0f, 0.00f * CFDS, 0.90f, 0.00f, 0.0f, 0.0f, 0.00f, 0.000f * CFDS, 0, 0, 0, 0, 0, 1, 100, SC_LIFE2, 9000.0f, 40, "Brian 6 S6/B246/3", ST_NONE, TYPE_SOLID|PROP_LIFE, NULL},

    Go to the two mods and copy/paste the "blocks" into the section in the clean powder toy source.

    ptransitions[]
    Basicly, do the same thing as in step ptype[] but with the ptransitions section.

    files
    Now copy the added element files to the same directory of the clean source. You'll know they're added because they are by the same name as the modded element.

    powder.c
    Some where not so far down the powder.c file, there should be a few lines saying things like:
    int update_MODDED_ELEMENT(UPDATE_FUNC_ARGS);
    Go to the same section in the mods and copy/paste them into the clean source.

    done
    If any problems arise go to this.
    Happy fusing!

    This tutorial was by:
    Ace
    image

    More tutorials.
  • vanquish349
    12th Mar 2011 Member 0 Permalink
    @Ace
    what about the elements.c
  • Ace
    12th Mar 2011 Member 0 Permalink
    @vanquish349
    I had that in there, but I added a title on now.