Three Questions

  • Dragonfree97
    23rd Oct 2010 Member 0 Permalink
    1) How do I make an element change into another when it touches another, certain, element? I managed to get it to work, so FRCM turns into THDR on contact with WATR, SWTR or DWTR, but when I try making my H2 and O2 turn into water when they touch each other, nothing happens.

    2) I've made a LASR element, basically hot red photons, but they, instead of moving in eight directions, decide to bounce in every direction under the sun. I've cpoied the PHOT code, but no success. Why won't they work?

    3) And finally, and I know the idea has been rejected many times, but is it, in fact, even possible to make a moving solid? Two hours of messing about with advec, loss, airloss, collid and whatever else there is returned a solid that did not move.

    EDIT FOURTH QUESTION:

    4) I've noticed that some mods use .inc files to separate their code from the actual source code. I have tried this, but VisiStdio2010 just returns an error. 1>c:\users\*****\desktop\powdersource\tpt\src\reactions.inc(2): error C2059: syntax error : 'if'
  • pilojo
    23rd Oct 2010 Member 0 Permalink
    Dragonfree97:
    I've cpoied the PHOT code, but no success.

    Don't if you do that it will move just like PHOT.
    Dragonfree97:
    even possible to make a moving solid?

    Possible, just needs the system to be tweaked a bit.
  • Dragonfree97
    23rd Oct 2010 Member 0 Permalink
    That's what I want it to do though, shoot off in eight directions just like photons.
  • pilojo
    23rd Oct 2010 Member 0 Permalink
    Dragonfree97
    Oh. Then Idk why it's not working.
  • Dragonfree97
    23rd Oct 2010 Member 0 Permalink
    Okay, so I copied the LASR code from yew101's mod, and it now works (as in goes in8 directions), but now only shows up on blob or heat displays. AND NOW laser particles stick to each other.
  • cooldaddy96
    23rd Oct 2010 Member 0 Permalink
    I THINK I KNOW! Im no coding expert, but i think yew101's mod has ultra violet light. They work like photons, but only show up in heat display. Not sure about blob, though
  • pilojo
    23rd Oct 2010 Member 0 Permalink
    Dragonfree97
    Copy LASR from mine and change the color to red. Mine works perfect. Remember powder.h, powder.c, graphics.h
  • Dragonfree97
    23rd Oct 2010 Member 0 Permalink
    I tried that, and the LASR particles stick together still. They're clustered together in groups that slowly disintegrate, and the particles break off randomly, buzz around in random directions for 2 to 4 frames, then disappear.

    Oh, never mind, they work now for some reason.
  • Xenocide
    23rd Oct 2010 Former Staff 0 Permalink
    because I'm nice...

    1) Merge H2 and O2 to WATR


    4) that error means either your include is in the wrong place, or you have dodgy code.
  • Dragonfree97
    23rd Oct 2010 Member 0 Permalink
    thanks