Plead's mod

  • R3APER
    29th Jun 2012 Member 0 Permalink
    @plead-for-destruction (View Post)
    Sweet! Please tell me of your progress before you have to go again, I'm very interested in how it will be made. :D
  • OnTheToilet
    29th Jun 2012 Member 0 Permalink
    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=14250&PageNum=1
    Hey guys, I put this in my own thread, but ill put it here too so you can see it:
    name:carbon sub-nitride

    sym: CSBN

    what it do: Hottest flame of any chemical (4990 c)

    state: Liquid

    color: In real life it is clear, but if we say water is blue, let's make this white.

    why:
    *currently we do not have any liquids that can melt through metal besides LAVA

    *great addition to bombs and such

    *reactors

    How to make: can be synthesized in real life by passing nitrogen (gas is closest thing to nitrogen) gas over a sample of heated graphite (COAL)

    burn baby burn

    http://en.wikipedia.org/wiki/Dicyanoacetylene
  • R3APER
    29th Jun 2012 Member 0 Permalink
  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    Im getting a wierd Sytax error:

    1>src\elementdata.c(195): error C2059: syntax error : 'constant'

    This is line 195 of elementdata.c:

    {"IRAS", PIXPACK(0x003300), 0.1f, 0.01f * CFDS, 1.0f, 0.5f, 0.0f, 0.1f 0.00f, 0.01f * CFDS 2, 1, 0, 0, 1, 1, 1, 38, SC_NUCLEAR, R_TEMP+85.0f +273.15f, 20, "IRAS, Irradiated Solution, a highly radioactive liquid that releases extremely hot flame and radiation", ST_LIQUID,TYPE_LIQUID|PROP_HOT_GLOW|PROP_RADIOACTIVE|PROP_NEUTPASS},
  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    @Dawgie (View Post)
    that makes sense ,silly me :D

    EDIT:

    all my variables on the line are fine!

    idk what the problem is :/
  • jacob1
    29th Jun 2012 Developer 0 Permalink
    @plead-for-destruction (View Post)
    It doesn't have an update or graphics function, that might be the problem. add ,NULL, NULL after the PROP_NEUTPASS.

    Edit: cracker64 found the real problem, but this could end up being another problem.
  • plead-for-destruction
    29th Jun 2012 Member 0 Permalink
    @jacob1 (View Post)
    Makes sense, if you can help, how do i make the particles appear like QUARTZ? is it the graphics function? if so how do i use it?
  • jacob1
    29th Jun 2012 Developer 0 Permalink
    @plead-for-destruction (View Post)
    When quartz is created, it is given a tmp value between 0 and 10. This tmp determines the color in the update function, using this code:
    *colr += z * 16;
    *colg += z * 16;
    *colb += z * 16;

    where z is parts[i].tmp - 5. Also, ignore the hotglow part, unless you want it. Look at newgraphics.c for all of this code.

    Put that in a graphics function (graphics_XXXX) and change NULL from post above to graphics_XXXX (XXXX should be IRAS, if that's what you're still working on). Also, define graphics_XXXX in powder.h where all the others are too. Make sure the r/g/b values always stay between 0 and 255 though.
  • R3APER
    29th Jun 2012 Member 0 Permalink
    Oh yeah you need to find out if the color scheme is feasible. By the way, will the pattern still work if IRAS is a liquid? I just thought of that...
    Here is the color scheme as shown. It will be very interesting to see how this comes out. :D
    image

    @jacob1
    Will hotglow make this color scheme look very weird?