CRAY being unreliable?

  • IAscTcaokuennt
    2nd June Member 0 Permalink

    I made a mechanism where a piston extends and CRAY replaces PRTI with IRON. There is DSTW flowing downwards into the PRTI. However, this causes the CRAY to only sometimes work. In some cases, it successfully replaces. However, sometimes it just deletes the particle and DSTW fills up the space. Why is this so? Is there any way to prevent this?

     

    Steps to replicate:

    Open

     

    Press on Feedwater Pump "Inc" or "Dec" button

    Notice that the particles are sometimes replaced but sometimes not replaced in the bottom of the 2 rounded rectangular tanks

  • LBPHacker
    2nd June Developer 3 Permalink
    You're relying heavily on the order particles update. You have two CRAYs working in tandem at all times, one removing whatever is already there, and another spawning IRON/PRTI. But if a DSTW updates in the time between these two CRAYs, it may move where the first CRAY removed the IRON/PRTI, and the second CRAY will delete the DSTW instead of spawning something.

    Try overwriting IRON with PRTI and vice versa with DRAY instead; DRAY can do this in a single operation, no way for DSTW to foul it.
  • IAscTcaokuennt
    3rd June Member 0 Permalink

    oh I see thanks so much

     

    edit: I implemented it and it works so much better now. Thanks again.

    Edited once by IAscTcaokuennt. Last: 3rd June