Craftment not at they work station.
Wetz1990 opened this issue · 16 comments
Minecolonies version
1.12.2-0.10.159-Alpha
Version:
Expected behavior
The crafters, Stone mason, sawmill, stone smelter, blacksmith would go to their respective building in the morning and wait for a task.
Actual behaviour
In the morning after the crafters have slep in their beds they almost never go to their work station.
And, it seem, becaues they are not ar their wokr station they do not process requests from the request system.
Steps to reproduce the problem
- Let the game run.
- let the craftmen sleep in a house/bed a night.
- Sleep after it has turned night time to turn in day, or wait till day comes by itself.
- Craftmen will now stay in their house and not return to their work station.
I suspect that this may "break" the request system since they wont process the request.
However, when i make sure the request system triggers when they are a ttheir work station everything works just fine.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
noticed that the cook does the same where he/she just stays in the hut she slept in all day. So no one gets food.
https://imgur.com/ovw1kXU
I can confirm this behavior. I’m also quite sure that there’s some kind of glitch when requests would have to queue up. It seems as if requests are simply ignored if the workers are busy.
It seems to work better.
Without looking in to the code, it seems like that whenever a request is send to the crafter, the deliveryman delivers the materials and the crafter comes running.
Seems to work very well.
It however seems that if the crafter recieves other requests while he is furfilling one, they dont get processed, or queued up.
so, i am now using the latest version 164-alpha.
And i am still getting the problems with not all the requests getting to the crafter.
The builder in the image has had the requst up for a few in game days, and nothing has happend.
The crafter has previously made racks for him, but the it turned to night time and request kind a stranded.
For the crafter to get the request again, i would have to cancle the builders request, and have him request it one more time.
I have also noticed that the requests does not carry over to the next day.
So if the crafter is in the middle of crafting something and sunset/ night comes, the crafter will not continue the crafting the next day
Not sure if it's related, but my server logs show a ton of these error messages when the crafters 'forget' their tasks. This is using 172-ALPHA
17.02 11:28:15 [Server] Server thread/ERROR [minecolonies]: Parent cancellation failed! Unknown request: StandardToken{id=4ca28580-1827-4d37-bddb-e3ed3419463e}
More errors that seem to be occurring around the parent cancellation failures. 198-RELEASE
26.02 10:17:58 [Server] Server thread/WARN [minecolonies]: Statemachine for transition com.minecolonies.coremod.entity.ai.statemachine.AITarget@2933091c threw an exception:
26.02 10:17:58 [Server] INFO java.lang.NullPointerException: null
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.colony.requestsystem.requests.AbstractRequest.setState(AbstractRequest.java:146) ~[AbstractRequest.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.colony.requestsystem.management.manager.StandardRequestManager.updateRequestState(StandardRequestManager.java:271) ~[StandardRequestManager.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.colony.jobs.AbstractJobCrafter.finishRequest(AbstractJobCrafter.java:161) ~[AbstractJobCrafter.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.basic.AbstractEntityAICrafting.afterDump(AbstractEntityAICrafting.java:275) ~[AbstractEntityAICrafting.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.basic.AbstractEntityAIBasic.dumpInventory(AbstractEntityAIBasic.java:1011) ~[AbstractEntityAIBasic.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.statemachine.basestatemachine.BasicTransition.getNextState(BasicTransition.java:77) ~[BasicTransition.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.statemachine.basestatemachine.BasicStateMachine.transitionToNext(BasicStateMachine.java:148) ~[BasicStateMachine.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.statemachine.basestatemachine.BasicStateMachine.checkTransition(BasicStateMachine.java:131) ~[BasicStateMachine.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.checkTransition(TickRateStateMachine.java:79) ~[TickRateStateMachine.class:?]
26.02 10:17:58 [Server] INFO at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.ArrayList$ArrayListSpliterator.tryAdvance(ArrayList.java:1359) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449) [?:1.8.0_191]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.statemachine.tickratestatemachine.TickRateStateMachine.tick(TickRateStateMachine.java:61) [TickRateStateMachine.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.ai.basic.AbstractAISkeleton.func_75246_d(AbstractAISkeleton.java:150) [AbstractAISkeleton.class:?]
26.02 10:17:58 [Server] INFO at net.minecraft.entity.ai.EntityAITasks.func_75774_a(SourceFile:129) [xf.class:?]
26.02 10:17:58 [Server] INFO at net.minecraft.entity.EntityLiving.func_70626_be(EntityLiving.java:763) [vq.class:?]
26.02 10:17:58 [Server] INFO at net.minecraft.entity.EntityLivingBase.func_70636_d(EntityLivingBase.java:2359) [vp.class:?]
26.02 10:17:58 [Server] INFO at net.minecraft.entity.EntityLiving.func_70636_d(EntityLiving.java:577) [vq.class:?]
26.02 10:17:58 [Server] INFO at net.minecraft.entity.EntityAgeable.func_70636_d(EntityAgeable.java:178) [vd.class:?]
26.02 10:17:58 [Server] INFO at com.minecolonies.coremod.entity.EntityCitizen.func_70636_d(EntityCitizen.java:585) [EntityCitizen.class:?]
26.02 10:17:58 [Server] INFO at net.minecraft.entity.EntityLivingBase.func_70071_h_(EntityLivingBase.java:2179) [vp.class:?]
Could you instead upload the whole log to sth like https://paste.dimdev.org ? makes it easier to relate errors to other errors
closed in favor of other issue
Can you test the dman and crafters here: