Mekanism

Mekanism

111M Downloads

Robbit stops following you once it picks up a drop

EzerArch opened this issue ยท 1 comments

commented

How to reproduce it:

  1. Get yourself a robbit and set following true and pickup true.
    2016-07-02_18 58 35
  2. Walk away bit, it will follow you. Now drop an item (e.g. pickaxe)
    2016-07-02_18 59 22
  3. The robbit will move to pick it up (pickaxe is in there).
    2016-07-02_18 59 30
  4. Walk away. Robbit will not follow you even though the following is true. (If you drop another item nearby, it will move slowly towards the item and pick it up).
    2016-07-02_19 04 55
  5. I went back and disabled pickup. It follows me.
    2016-07-02_19 06 49
  6. I re-enabled pickup. It moves/teleports back to where it had picked up the drop.
    2016-07-02_19 09 01

So, I have these issues:

  • The following+pickup mode only woks if the robbit hasn't picked up any drop. Once it picks up an item I have to disable the pickup if I want it to follow me.
  • The main problem: the pickup mode is available only where the robbit has last picked up a drop. If I want to use the pickup mode elsewhere, I have to break the robbit's charge pad to clear out the latest pickup point in its memory, otherwise it will attempt to teleport away back to the latest pickup point (except between dimensions).
  • It seems the issue is per-dimension. Changing dimensions clears the latest pickup point and the following+pickup mode will work again until the robbit picks up an item, and the issue described above repeats.
commented

Oops! I had set the mutex bits so that the follow and drop pickup AI tasks couldn't run concurrently. Aside from that, I wasn't discontinuing the pickup task once the Robit actually consumed the item. Thanks for pointing this out, should be fixed!