Inactive [MECH] TrainCarts v1.71.2 - Link minecarts of different types together to form trains [2222]

Discussion in 'Inactive/Unsupported Plugins' started by bergerkiller, Aug 3, 2011.

  1. Offline



    After a request from Marius A. Winsjansen I started to work on linked Minecarts. On the first day I already managed to make multiple carts move with the same speed, but a long list of bugs was to be expected. After fixing lots of bugs, adding lots of (complicated) Minecart handling functions and after hours of testing on my local server, this plugin is finally ready for a stable release! :D

    Also, special thanks go to @Shamebot for helping me out several times. :)

    For a lot of information about TrainCarts see the WIKI page!

    Configuration and permissions

    All configuration nodes can be found in config.yml and contains a description with it. Permissions can be found in PermissionDefaults.yml, combined with a description.


    Early development video (Photobucket)

    Video displaying version 0.6 of this plugin (YouTube)

    Video displaying version 1.0 of this plugin (YouTube)

    Video displaying version 1.1 of this plugin (YouTube)

    Video displaying version 1.2 of this plugin (holy...)

    A tutorial video in German explaining various sign-circuitry of TrainCarts

    PhotoBucket Sign system tutorial videos (also linked in the WIKI pages)
    Train spawner / Stations / Stations2 / Arrival signs / Train teleportation / Track switcher based on tags / Destinations / Blocker
    Video of how the switcher, station and destination signs work together

    Side information:

    It works best on straight lines with not too much elevation changes followed up by sharp corners. As long the cart gap can be adjusted, everything goes fine. It had some collision issues in the past, but I fixed all of that by manipulating the actual Minecraft server native code. I added links in the source where this was appropriate. Sharp 'U'-turns cause individual carts to lose perceptive of their direction. Keep at least one piece of track in between corner sections! Trains are stored on-disk when reloading and stopping the server, so expect trains to be there when you return.

    Important when updating: do one reload to save all trains, then replace traincarts.jar, and then do another reload. This next reload will probably cause a noClassDefFound exception (since the old jar got replaced), this is why a pre-reload is required. Replacing the jar without reloading is a very bad idea: it will cause a lot of runtime exceptions. Best is of course to stop the server and start again, but this is not always possible.

    This plugin is made compatible with Minecart Mania. If you notice a certain feature of Minecart Mania is not compatible with TrainCarts, notify me and I'll fix it. :)

    Known bugs:
    - None.

    - Train-sign message handling using SignLink (low priority)
    - Minecart use permissions (for individual carts?) such as Storage Minecarts


    If you encountered a bug, post exactly what you had done and in what order. Even a slight wobble can help fixing bugs. When posting (long) errors I recommend you to post everything, don't cut it off. I work with native methods, so in my case these lines are important. For comments on the media content see YouTube, it also contains a description with the music name when music is used.

    Bug reporting (extend)

    1. Post the Craftbukkit version you are using (the first info message in the console)
    2. Post the log from where the first plugin gets enabled to the 'done'.
    3. Post possible errors in this log too (don't cut them short)
    4. No error? Still post the log. Also explain how I can reproduce it, you can use screenshots
    5. Before reporting, remove ALL plugins other than TrainCarts and try again. If it works then, find out what plugin is interfering and post that here. I can add support.
    6. ALWAYS use the latest recommended Craftbukkit build with this, or my methods may just fail because of renamed functions.

    Important links:

    Request thread
    TrainCarts on BukkitDev for download and more
    TrainCarts source and more on GitHub
    TrainCartsBlocks add-on source and more on GitHub
    SignLink Bukkit page (required to use Arrival signs)
    MyWorlds Bukkit page (required to use Portal train teleportation)

    notice: try to keep SignLink/MyWorlds up-to-date to prevent compatibility issues.

    Installation for those that don't know how

    1. Download and install the latest craftbukkit version
    2. Download the latest TrainCarts version
    3. ^ Save the archive (zip file) to your computer
    4. ^ Open the archive you just downloaded
    5. In the folder your server sits in, create the plugins folder if it doesn't exist
    6. Open the plugins folder
    7. Move the TrainCarts.jar file found in the archive into the plugins folder
    8. Run your craftbukkit server and look in the console/log for possible errors, and/or if the plugin is enabled.


    Show your appreciation for my plugins by donating
  2. Offline


    With the old non beta version I would edit the plugin.yml in the .jar file to allow access for everyone on my server to create stations, etc. However in the new beta the plugin.yml doesn't have those options. Is there a new way to do it without having to mess with permissions on the bukkit?
  3. Offline


    andrewpo they are now called 'blocker' signs, which adds some more functionality to the sign. See the video about it on the main post.

    Linkmaster1995 Did you try to use /train reroute? It is possible that something got messed up along the way; that command will clear all set destination signs and forces them to be re-generated.

    Also, if possible use the latest beta version, I had to fix several things of the train path finding in that previous beta version. (of which, it didn't properly telt the other nodes when a node spots new nodes)

    Mycah afraid not, but it's a good suggestion to add them. I was forced to put all permissions in an enumeration, since the key-system became very extensive. I can now use Permission.BUILD_STATION.has(player) to do all of my permissions. I'll add a configuration system to set permission defaults in a separate yml file, seems simpler.
    Mycah likes this.
  4. Offline



    I also updated to the latest version (Craftbuckit 1.1 R3 + Beta 14) and as for lejedifou the Default flags are not working anymore.

    I think even the destination flags are not working for me. Don't know whats the issue here. (iam OP)

    Actually i think no Properties are working for me. Its ignoring any destination signs, i tested a maxspeed one (ignored)

    I get the verification that i built a sign which can set the properties of a train above but the train above ignores it.
  5. Offline


    Thanks. Looking forward to it.
  6. Offline


    i tried using reroute it works...but anytime i do something to a destination i have to do reroute :/
  7. Offline


    Linkmaster1995 ye I am still working on the dynamic rerouting; detect if a node got removed and automatically force all nodes that know of that node to wipe themselves.
  8. Offline


    I have some problems with the spawning of more then 3 mincarts together: The do just split up randomly.

    The second porblem is that the order i put the mincarts on the order sign gets ignored.

    Is this just a setting to take care of or what else is wrong?
  9. Offline


    Malzbier it may seem as if it is spawned in reverse, I should change that but a lot of people have already adapted to this. :)
  10. Offline


    Don't want to be persistent, but any ideas?
  11. Offline


    Is anyone able to use this on the 1.1 r3 RB yet? I tried it and it crashed. Just want to make sure it wasn't conflicting with any other plugins.
  12. Offline


    ExCinisCineris working on it right now. :)
    Will probably take till tomorrow to finish this off; since I am currently separating all plugins and push out a library instead, so those plugins can share that.

    Blake380 See the station videos on the main page. When a train waits at a station, it sends out a redstone current by toggling a lever. The same happens with switcher / tag signs; if it has either of the tags set on the third and fourth line of the sign, the lever toggles. You can use 'empty' or 'passenger' to check if it is occupied or not; the same !-system applies there.
  13. Offline


    Heya Bergerkiller

    Do you have any idea what the issue for me could be?

    After spawning a train they will not take any property from signs below.

    It worked fine with Traincarts 1.53 on Minecraft 1.0 but now after updating to 1.6 beta 14 on minecraft 1.1 all trains ignore the property signs.

    They get spawned and stay "neutral" with no owner. Its not taking default settings from a sign, nor does it take any destination settings. Somehow i can't even enter the train.
  14. Offline


    After add TrainCarts, the server (CB1846) crash with the following error:

    2012-02-02 15:14:44 [SEVERE] java.lang.NoSuchFieldError: bN
    2012-02-02 15:14:44 [SEVERE]    at
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.EntityMinecart.y_(
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.World.entityJoinedWorld(
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.WorldServer.entityJoinedWorld(
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.World.playerJoinedWorld(
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.World.tickEntities(
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.MinecraftServer.w(
    2012-02-02 15:14:44 [SEVERE]    at
    2012-02-02 15:14:44 [SEVERE]    at
    2012-02-02 15:14:44 [SEVERE] Unexpected exception
    java.lang.NoSuchFieldError: bN
        at net.minecraft.server.EntityMinecart.y_(
        at net.minecraft.server.World.entityJoinedWorld(
        at net.minecraft.server.WorldServer.entityJoinedWorld(
        at net.minecraft.server.World.playerJoinedWorld(
        at net.minecraft.server.World.tickEntities(
        at net.minecraft.server.MinecraftServer.w(
  15. Offline

    Don Redhorse

    afaik you need a newer version which is hopefully coming out today... see above
  16. Offline


    I have errors and can't get on my server now :\
    15:25:50 [SEVERE] java.lang.NoSuchFieldError: bN 15:25:50 [SEVERE] at 15:25:50 [SEVERE] at net.minecraft.server.EntityMinecart.y_(EntityMinecart .java:396) 15:25:50 [SEVERE] at net.minecraft.server.World.entityJoinedWorld(World.ja va:1257) 15:25:50 [SEVERE] at net.minecraft.server.WorldServer.entityJoinedWorld(Wo 15:25:50 [SEVERE] at net.minecraft.server.World.playerJoinedWorld(World.ja va:1239) 15:25:50 [SEVERE] at net.minecraft.server.World.tickEntities( 46) 15:25:50 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServe 15:25:50 [SEVERE] at 15:25:50 [SEVERE] at ceFile:465) 15:25:50 [SEVERE] Unexpected exception java.lang.NoSuchFieldError: bN at at net.minecraft.server.EntityMinecart.y_( at net.minecraft.server.World.entityJoinedWorld( at net.minecraft.server.WorldServer.entityJoinedWorld( 10) at net.minecraft.server.World.playerJoinedWorld( at net.minecraft.server.World.tickEntities( at net.minecraft.server.MinecraftServer.w( at at
  17. Offline


    Exactly the same issue.

    ...then disable the plugin?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 14, 2016
  18. Offline


    Hey everyone,

    I was getting those errors until I realized that the links on Berg's OP are out of date. He's updating the plugin, but not the link.

    I'm using TrainCarts 1.6 Beta v.14 with craftbukkit 1.1-R3 and it's working fine.
  19. Offline


    The 1.54 version crashes the entire server when you put a cart down. o.o
  20. Offline


    Only the 1.6 Beta version works with craftbukkit 1.1
  21. Offline


    I tested it again. I removed all other Bukkit plugins and just had the Traincarts running.

    1. I can't enter the carts. Not as normal user, nor as OP. (same when PEX is active)
    2. Carts won't take any properties from signs below

    But Carts do accept propertys given by chat-commands.

    I of course also deleted all config files. Did not help either.

    I don't know what else i should try. Traincart is not even throwing any console errors.
  22. Offline


    I'm having the same issues.

    When a train passes over a property setter, it does not set a property.

    Bukkit 1.1-r3
    tc 1.6 bv14
  23. Offline


    How do you make stations?
  24. Offline



    This issue might have been here, but didn't see anybody talking about it in near history. So...

    I have this automatic reboot plugin in my server. It restarts the server every 3 hours. The problem is that when the server gets up almost all the trains have stopped. This happens too if I manually start the server. Is there anything we can do about this?
  25. Offline

    Don Redhorse

    there should be a fix coming for this afaik
  26. Offline


    Version 1.60 beta 15 is now up on GitHub. This version is compatible with CB 1846 (RB 3) and uses a completely new system. (my library, with the plugin base allowing new features)

    Main noticeable changes:
    This is sort of an intermediate version, as a lot of new features still need to be implemented. Expect the following features as well:
    If you still have any issue (or the same), feel free to post here or write a ticket on Bukkit dev. I will be developing TrainCarts further now.
    Don Redhorse likes this.
  27. Offline


    With the new Version i can not use the /Train info command. it will throw me an error.

    12:21:09 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'train' in plugin Train Carts v1.6
            at org.bukkit.command.PluginCommand.execute(
            at org.bukkit.command.SimpleCommandMap.dispatch(
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(
            at net.minecraft.server.NetServerHandler.handleCommand(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.Packet3Chat.handle(
            at net.minecraft.server.NetworkManager.b(
            at net.minecraft.server.NetServerHandler.a(
            at net.minecraft.server.NetworkListenThread.a(
            at net.minecraft.server.MinecraftServer.w(
    Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
            at com.bergerkiller.bukkit.common.PluginBase.onCommand(
            at org.bukkit.command.PluginCommand.execute(
            ... 12 more
    Also iam unfortunately still not able to enter the trains, nor do they take the propertys from the signs (i had a destination sign active, but instead of switching the track to the propper direction, it just "bounces" back on the trackswitcher.)

    Unfortunately i have no clue how to solve this :(
  28. Offline


    AppLeNaToR Ow I completely forgot about that error, good thing I always keep the previous beta versions online as well. I'll try to fix this soon.
  29. Offline


    can you tell us when traincarts 1.6 final released ?

    i have a few bugs with the latest beta, for example the cart spawner sign with 4 carts spawn the 4 carts but 2 carts drive straight and 2 carts drive back...
  30. Offline


    TheShadow777 well while those issues exist I have to keep it a beta :)
    Thanks for reporting, I fixed the command exceptions, will look at the spawner sign now.
  31. Offline


    Heya Bergekiller. Awesome quick reply :)

    Iam sorry that i have to ask but did you take a look at my issue? (Not error caused by the /train command)

    I can not enter my trains, nor do they accept any propertys from signs below.

    I really have no clue what is causing it. If you want to take a look i can send you the server details.

Share This Page