Skip to content

leash upgrade result in infinite leash #3376

@Water-Moon

Description

@Water-Moon

One hour ago, in a forge-14.23.5.2847 server with OpenComputer 1.7.5.192, my friends and I decided to transport a few horses from a remote place to our home.
Since it's a long way, we decided to use a squad of drones. We wrote programs, placed down waypoints, and installed navigation upgrade + leash upgrade in all the drones. Then we started the drones. Everything was fine, and the horses were pulled into the air and being dragged toward our base.
And then, one of my friends got an idea: "Why don't we ride on those horses, so that we don't need to walk by ourselves?!"
We all thought that was a good idea, so we did it. However, just right after we got onto the horse, they(the horses) fell to the ground and broke the leash. However, what surprised us is that a leash item dropped to the ground. This made us think if there is a glitch. So we tried again, and that resulted in another leash item dropping out, without damaging the drone or the leash upgrade at all.
And that doesn't look right.
With that glitch, a player can just ride on a horse, then have a drone leash it, then move the drone high up and make the leash broke, and then move back down and repeat it. By doing that, we can get infinite leash.

We hope the leash upgrade could be re-implemented to solve this problem:

  • The leash upgrade now requires another call to a method that makes it take some leash item from the drone's internal storage, just like the generator upgrade.
  • when the leash method is called successfully, a leash is consumed
  • when the unleash method is called successfully, a leash is returned
  • in this way, if the leash broke, the program won't call the unleash method. Thus the leash won't be returned, and it won't dupe.

That's it. Also, thanks for the great mod! It was fun writing programs to solve 'real world' issues :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugOC feature is broken

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions