BuildCraft|Core

BuildCraft|Core

7M Downloads

Harvesters harvest crops outside of designated zone

LachimHeigrim opened this issue ยท 3 comments

commented

I'm using Harvesters on MineYourMind Regrowth server. Client contains the following BC versions: buildcraft-7.1.19.jar, buildcraft-compat-7.1.5.jar.

The Harvesters work ok, however they tend to frequently wander and harvest crops outside of their working zone. It is more frequent if the mature crops are close to border of the working zone, but I've seen one wander quite far away - from working zone, to out-of-zone point A, then even further to out-of-zone point B. Both A and B contain mature crops.

See screenshots for rough idea on the working zone setup:

2017-01-27_17 01 04

Area is flat, there should not be any severe complications to path finding.

View from docking station towards working zone:
2017-01-27_17 08 57

View from docking station towards out-of-zone point A.
2017-01-27_17 09 05

By guess it seems you are not clipping the the next path point correctly by working zone in bot's path finding algo.

I used the standard Zone Planner + Emerald Gate & Work in Zone to set the area.

commented

After regenerating the map location in Zone Planner and re-applying it on the gate (break pipe+gate, place gate, apply map location) it seems the problem is solved and bot stays in designated area.

I also simplified gate configuration from [if day -> work in area, if night -> go to station] just to simple [if redstone signal NOT present -> work in area], not sure if that could somehow affect the bot behavior. Will examine and if problem repeats I'll update.

commented

how where you doing the day/night condition? robots should stay in their working areas if there is a gate action telling them that zone, if the condition on that becomes false but you do not force them back to the station they will keep working but without zone limits

commented

Emerald OR gate with light sensor, mutually exclusive conditions. Actually now I realized it is not day/night it's light levels (got confused by icons).

Interestingly when I restored the setup, the robots are still behaving correctly. I saw the bot coming back to docking station when dark, then starting to work when it got day or I placed a torch. In no case it left the zone. This is exactly the behavior I originally expected but could not get working.

From all that I'd say I must have misconfigured the zone or have it incorrectly loaded from Zone Planner. I however repeated the same setup several times, so not sure what part was wrong.

I suggest we close this as I can't reliably reproduce it.

What would have helped me in this case is some way to visualizing the zone from Map Item. Since neither the item nor Zone Planner show exact world coords of polygon vertices (in my case simple rectangle) I had trial and error.