question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible train destination bug

See original GitHub issue

Info

Please provide the following information:

  • BkCommonLib Version (/train version): 1.16.5-v3-SNAPSHOT
  • TrainCarts Version (/train version): 1.16.5-v2-SNAPSHOT
  • Server Type and Version (/version): git-Purpur-1118 (MC: 1.16.5)

Bug

Description

I set the destination I want on the train to reach but half the time the train will never path find to that destination when the track switch is right in front of it, or it will go down the track it’s supposed to if it was already set to it and it will still say “can not be reached from here”, and then it will work like it should then stop working. This has been a problem for about a year now at least for me.

Expected behaviour

Trains should path find to the destination 100% of the time.

Actual behaviour

50% of the time gives the error “(destination name) can not be reached from here” and continues down previously selected track.

Steps to reproduce

Please list the steps to take, in order to reproduce the bug.

Additional Information

Video link showing what happens- https://www.youtube.com/watch?v=3TATPmZO5DM

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bbayu123commented, Jun 6, 2021

I am experiencing the same issue with the following Versions:

BkCommonLib: 1.16.5-v2 Build 1000 TrainCarts: 1.16.5-v1 Build 843 Server: git-Paper-683 (MC: 1.16.5)

Update to latest development builds and try first.

0reactions
bbayu123commented, Aug 25, 2021

Okay so… after further testing everything seems to work as intended even after restarting the server.

The only thing I noticed is one Error in Console but that one is not related to the main issue:

[00:27:14 ERROR]: [Train_Carts] Failed to perform physics on train 'train2' at test_1176_10_-389:
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib] java.util.ConcurrentModificationException
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1043)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at java.base/java.util.ArrayList$Itr.next(ArrayList.java:997)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.common.collections.List2DIterator.next(List2DIterator.java:53)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.tc.controller.components.SignTracker.tryUpdateActiveSigns(SignTracker.java:156)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.tc.controller.components.SignTracker.updateActiveSigns(SignTracker.java:115)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.tc.controller.components.SignTrackerGroup.refresh(SignTrackerGroup.java:196)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.tc.controller.MinecartGroup.doPhysics_step(MinecartGroup.java:1455)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.tc.controller.MinecartGroup.doPhysics(MinecartGroup.java:1384)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.tc.controller.MinecartMember.onTick(MinecartMember.java:2252)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.bukkit.common.internal.hooks.EntityHook.onTick(EntityHook.java:131)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.mountiplex.reflection.util.fast.GeneratedMethodInvoker$mplgen30d3ec7d.invokeVA(Unknown Source)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.mountiplex.reflection.ClassInterceptor$CallbackMethodInterceptor.invokeVA(ClassInterceptor.java:506)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at com.bergerkiller.mountiplex.reflection.util.fast.Invoker.invoke(Invoker.java:29)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.EntityMinecartRideable$mplgen124ee344.tick(Unknown Source)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.WorldServer.entityJoinedWorld(WorldServer.java:960)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.World.a(World.java:955)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.WorldServer.doTick(WorldServer.java:646)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.MinecraftServer.b(MinecraftServer.java:1490)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.DedicatedServer.b(DedicatedServer.java:436)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.MinecraftServer.a(MinecraftServer.java:1342)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:1130)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:291)
[00:27:14 ERROR]: [BKCommonLib] [BKCommonLib]   at java.base/java.lang.Thread.run(Thread.java:834)

Hey, if this is still an issue, can you open a new issue ticket? Closing this for now, since it appears to be resolved for no reason.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transport Fever - Possible Train Line Bug? - Steam Community
I created a nice oil train route. Some time later i made some small changes with the train track.. It says theres no...
Read more >
Possible Bug: Train Line Will Not Go Both Ways
Acts as a possible stop on train routes, but does not attract tourist/cargo trains, which must go to a regular/central station to offload....
Read more >
Train route handling problems - InfraSpace Bug Reports
I create a new train line, want to add a station, and bang, the station is gone. I don't think anyone plans to...
Read more >
[BUG] Help, my trains do this and I don't know what to do
It does that when it cannot find a path way to its destination, somewhere along the road there is a node that is...
Read more >
Trips by train to satisfy your regional travel bug - Times Union
You could take the train along the Maple Leaf line to get to fun destinations throughout New York. These little getaways can feed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found