MoPaZ Mod

  • MoPaZ
    22nd Mar 2011 Member 0 Permalink
    Hello.
    I just started modding TPT and added some stuff for my own interests, and i thougt i should share it with you.

    New things in v 1.0

    Based on TPT v 46.4.

    - LEAD - Lead.
    Has 3 phases, solid,liquid,gas at real life melting and boiling temperatures.
    All phases absorbs neutrons, not the original absorb feature that barely absorbs any neutrons, this one absorbs around 90% of all neutrons that touches it.

    - ALUM - Aluminium.
    Has only solid and liquid phases at this time.
    A work in progress. Trying to add some cool alloy function if i can find a good use for it.

    - CO2 - Carbon dioxide.
    Makes fire turn into smoke, (bad combustion).
    Can make aerated water, one pixel of water can take 2 CO2 atoms in 0.00 pressure, and up to 5 in 5.00 pressure.
    Aerated water releases CO2 if pressure drops or the water boils.

    -- IC circuits, only use 1 pixel of these.

    - ANDG - And gate.
    If a sparked PSCN and a sparked NSCN is nearby this one will spark a nearby conductor.

    - NOTG - Not gate.
    Sparks a nearby conductor if not an sparked PSCN is nearby.

    - TMEU & TMEO - Temperature meters, Over and Under.
    Sparks a nearby conductor if its temperature is over (TMEO), or under (TMEU), its own life value.
    The life value can be changed using, PSCN to rise or NSCN to lower, and changes around 4 per spark.
    Too see the life value, press D to enable the debug menu.

    - PMEU & PMEO - Pressure meters, Over and Under.
    Sparks a nearby conductor if the surrounding pressure is, over or equal (PMEO), or under (PMEU) the temperature of the pressure meter times 100.
    Ex: PMEO @ 100*C will spark when the pressure is equal or higher than 1.00.
    Ex: PMEU @ 1200*C will spark when the pressure is below 12.00.
    It is an non thermal conduction element, and the temperature is set by using HEAT pr COOL.

    And i have also changed some things to make TPT kind of more 'realistic'.

    - SMKE - Original smoke.
    Does no longer disappear, and releases CO2 after a time.
    So to have a fire you need good ventilation.

    - FIRE & O2 - Original fire and Oxygen.
    Oxygen are not flammable anymore, it increases the fires temperature a bit.
    So the more oxygen you give a fire, the hotter the fire will burn.

    http://i51.tinypic.com/2s1x3qw.png

    Thats all for now, suggestions, bugs, hate/love messages are all welcome.
    And my home language is Swedish, so sorry if my grammar is a little rusty.



    Downloads - only for windows.
    http://www.mediafire.com/?sb4kyki0ns90rlo - with .DLL's
    http://www.mediafire.com/?13mfpdga8b130k2 - without DLL's
    http://www.mediafire.com/?kyagadq37e2uona - Source code
    http://www.mediafire.com/?few7lwpyg6zwnd8 - with .DLL's, .zip format
  • PizzaPlatypus
    22nd Mar 2011 Member 0 Permalink
    @MoPaZ
    Cool, lot's of electronics, welcome to modding. Keep up the good work.
  • MasterMind555
    22nd Mar 2011 Member 0 Permalink
    image
    Here add this code
    Looking nice
  • dnerd
    22nd Mar 2011 Member 0 Permalink
    looks nice, however cannot compile for mac, i get this error


    gcc -o powder-x -w -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lm -lbz2 -lSDLmain src/*.c src/elements/*.c -DMACOSX -DPIX32BGRA -arch x86_64 -framework Cocoa -framework SDL
    src/elements/mopz.c: In function ‘update_MOPZ’:
    src/elements/mopz.c:18: error: ‘PT_MOPZ’ undeclared (first use in this function)
    src/elements/mopz.c:18: error: (Each undeclared identifier is reported only once
    src/elements/mopz.c:18: error: for each function it appears in.)
    make: *** [powder-x] Error 1

    other then that, good work!
  • MoPaZ
    22nd Mar 2011 Member 0 Permalink
    aah, that an unused function, just delete the whole mopz.c file.
    I edited the source download, the mopz.c is no longer there.
  • dnerd
    22nd Mar 2011 Member 0 Permalink
    compiling...


    gcc -o powder-x -w -std=c99 -D_POSIX_C_SOURCE=200112L -Iincludes/ -O3 -ffast-math -ftree-vectorize -funsafe-math-optimizations -lm -lbz2 -lSDLmain src/*.c src/elements/*.c -DMACOSX -DPIX32BGRA -arch x86_64 -framework Cocoa -framework SDL
    ld: framework not found SDL
    collect2: ld returned 1 exit status
    make: *** [powder-x] Error 1

    similar error, you managed to get rid of the error involving MOPZ.c
  • Xenocide
    22nd Mar 2011 Former Staff 0 Permalink
    That ones a problem on your side, you need SDL development libraries.
  • Joda123
    22nd Mar 2011 Member 0 Permalink
    can you possibly convert it into a zip so I can extract it? My computer can't handle RAR files. Its a Microsoft Windows Vista. unfortunately. lol :(
  • snowfire777
    22nd Mar 2011 Banned 0 Permalink
    This post is hidden because the user is banned