Changing the explosiveness value...

  • cctv
    26th Nov 2011 Member 0 Permalink
    ...In powder.h, from a test.c file.

    I asked a while ago, but got no decent response that actually achieved what I wanted.

    So, I was fiddling with an element a while ago and then thought, "What if it was only able to burn/explode once it was over x degrees?".
    I don't want it to explode/start burning when it hits the temperature, I want it to be able to explode/burn when it hits the temperature.
    I was wondering, is it possible to change the 'explosive' and 'burn' values in powder.h from the test.c file?



    Also, I know Simon will probably ban me for evasion, but I need help with this. I cannot ask on the IRC, as I got banned there too (see here).
    And -social is always too inactive, so I'll never get a response.
    So sorry Simon, but I have no other way of asking, and would really like to get my mod finished soon. The ban is too long to just sit out.
  • jenn4
    26th Nov 2011 Member 0 Permalink
    @cctv (View Post)
    I can't tell you how to do that, but this is another reason why people could use http://tet.foorumi.org . Also how long is your ban? Do you use social medias? They can be helpful. Mods, please, don't ban him before I get answer. Don't ban me for advertising, either.
  • cctv
    26th Nov 2011 Member 0 Permalink
    @KIRILL (View Post)
    Make your own thread, this is for my problem. That is why I made a thread. I did not make a thread for your problems.



    Again, sorry guys, but I need help with this.

    I will now logout and not log in again 'till the ban's up.
    Thanks, -cctv
  • boxmein
    26th Nov 2011 Former Staff 0 Permalink

    @cctv (View Post)

    #powder-social is inactive though. I accept your reason.

    I believe a simple assign might work as structs should be variable structures...

    ptypes[PT_ELEMENT].explosive
    ptypes[PT_ELEMENT].flammable

    ^ assign integers to these two

  • asdf72
    26th Nov 2011 Member 0 Permalink
    @cctv (View Post)
    I have no idea how, but cctvdude, don't evade. You would only be banned for a reason, and if it was an accident, the mods would have unbanned you. They didn't, so you shouldn't evade. Read the rules.
  • boxmein
    26th Nov 2011 Former Staff 0 Permalink

    @asdf72 (View Post)

    Evading bans is as simple as making a new user.

  • tommig
    26th Nov 2011 Member 0 Permalink
    Err...
    If you want it to explode at x degrees use a transition and just tell it to turn into fire.
    If you want to to be able to explode at x degrees you should probaly use:

    if (parts[i].temp>x):
    {
    if (r&0xFF)==PT_FIRE)
    {
    part_change_type (i,x,y,PT_FIRE);
    pv[y/CELL][x/CELL] += y;
    }
    }

    where x and y are your values
    This works with pressure, I'm not sure what the variable for temp is.
    Otherwise that's what to use!
  • cctvdude99
    26th Nov 2011 Member 0 Permalink
    (note: The following post isn't necro, as this is a help thread, and if it still needs answering, or has a problem, the rules state it is OK to bump [I think])
    @boxmein (View Post)
    It gave me an error that I am trying to change read-only values or somethin' like that.

    I can't get the errors back, partly this was 5 days ago when I tried it, partly 'cause I can't remember what I did with the file and can't be bothered remaking it. And my compiler gives me different errors practically every time I load it up. Hurrdurr.