A way to duplicate energy particles.

  • 12Me21
    20th Sep 2015 Member 0 Permalink

    Currently it is impossible to duplicate energy particles, because they are ignored by DRAY. The reason this is a problem is because you can't create PROT or GRVT with 0 velocity (without using PROP or the console), which are very useful because they don't interact with pistons.

    Here is an example of a use for 0 velocity PROT/GRVT: id:1855886

     

     

     

  • jacob2
    20th Sep 2015 Member 0 Permalink
    I guess I can fix it when I get home.
  • Sandwichlizard
    24th Sep 2015 Member 0 Permalink

    that is going to break some saves.  my Proton reactor with temp sense depends on dray NOT copying energy particles.

  • jacob1
    24th Sep 2015 Developer 0 Permalink
    @Sandwichlizard (View Post)
    :|

    What if I do what I was thinking of doing, where it would only copy either energy particles or not energy particles, depending on whether the first particle it sees is an energy particle or not.
  • Sandwichlizard
    24th Sep 2015 Member 0 Permalink

    that would actually work.  the first it sees in that save is insl.  cool.

  • mecha-man
    25th Sep 2015 Member 0 Permalink

    How about making it only copy energy particles if there are no non-energy particles. Having energy particles deco-ed black on top is used for making things such as electronics invisible.

  • jacob1
    25th Sep 2015 Developer 0 Permalink
    @mecha-man (View Post)
    Well, I've already done it the way I mentioned yesterday: https://github.com/simtr/The-Powder-Toy/commit/74471dcda44351f5fca67d440ca2d0c15e75d563

    It will check for normal particles first, then energy particles. At this point it will only ever be able to 'see' that type of particle (when deciding where to stop and also in the PSCN replace mode).

    Hopefully this behavior is useful enough. You can always use .tmp to modify it further. Also now that I think about it, maybe I should change it so that it knows what type of particle is in the .ctype, so you would still be able to have it stop copying on DMND even if it is copying energy particles (currently it would just ignore normal particles entirely and never see the DMND).
  • 12Me21
    26th Sep 2015 Member 0 Permalink

    This would break my "Tiny TPT" save ~id:1814499... maybe it would be better if you could change whether the DRAY copied energy particles by setting the pavg[0] or 1, since in the new update you are able to change pavg with PROP.

  • jacob1
    26th Sep 2015 Developer 0 Permalink
    @12Me21 (View Post)
    I don't think your save would be broken since it would notice the elements under the GRVT first, but I can test later (leaving soon)

    Edit: It appears to be copying some BIZR for some reason .. i'll investigate later.
    Edited once by jacob1. Last: 25th Sep 2015