New Element Suggestion: SPRT

  • jacksonmj
    3rd Jan 2015 Developer 0 Permalink

    You could always test it yourself... :P

     

    "Moving stacked particles with PSTN (e.g. SPRT with something passing through it) will only move the topmost particle."

     

    Applies to elements inside pressurized INVS too, except for INVS there's some prioritisation of which particle is topmost, so usually the other element will move, and the INVS underneath will stay where it is.

    Edited once by jacksonmj. Last: 3rd Jan 2015
  • belugawhale
    4th Jan 2015 Member 0 Permalink

    Would it break many saves or be hard to change pstn to move all stacked particles? From testing, PSTN pushing stacked particles touching the pstn then pulling the particles still pulls the stacked particles, but pstn extending to stacked particles and pulling them seperates the particles one by one.

  • jacksonmj
    4th Jan 2015 Developer 0 Permalink

    Making PSTN move all stacked particles would involve either:

    • Rewriting pmap to use linked lists, which requires changing every single element plus lots of the simulation code and the Lua API. And may break saves which (against repeated advice) rely on the current strange behaviours exhibited by stacked particles.
    • For PSTN movement, iterating through all particles to find which ones are in a particular location, which would be extremely slow.

     

    From testing, PSTN pushing stacked particles touching the pstn then pulling the particles still pulls the stacked particles

    This does not appear to be the case according to my testing. PSTN pushing stacked particles does not push all of them, the particles underneath just stay where they are:

    Edited 2 times by jacksonmj. Last: 4th Jan 2015
  • belugawhale
    5th Jan 2015 Member 0 Permalink

    I was pushing them from the left, and it was 5 pixels of pscn layered right against the pstn

  • jacksonmj
    5th Jan 2015 Developer 0 Permalink

    After pushing, delete the topmost layer by Ctrl+right-click dragging a box around all the particles. If you're still convinced it's pushing all the stacked particles, please post a save.

    Edited once by jacksonmj. Last: 5th Jan 2015
  • belugawhale
    8th Jan 2015 Member 0 Permalink

    Nvm, the extended part of the piston is overlapping the stacked particles. I didn't see that before.

     

    Would it be better if SPRT could only push solids?

  • Security-Drone
    13th Jan 2015 Member 1 Permalink

    Maybe. :P Although It Could Move Powders.