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

    bergerkiller

    [​IMG]

    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. :)

    Description:
    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.

    Media:

    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.

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

    Commenting

    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.

    Changelog

    Show your appreciation for my plugins by donating
    [​IMG]
     
  2. Offline

    Mycah

    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

    bergerkiller

    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

    AppLeNaToR

    Heya.

    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)


    Edit
    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

    Mycah

    Thanks. Looking forward to it.
     
  6. Offline

    Linkmaster1995

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

    bergerkiller

    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

    Malzbier

    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

    bergerkiller

    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

    Blake380

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

    ExCinisCineris

    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

    bergerkiller

    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

    AppLeNaToR

    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

    untergrundbiber

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


    Code:
    2012-02-02 15:14:44 [SEVERE] java.lang.NoSuchFieldError: bN
    2012-02-02 15:14:44 [SEVERE]    at com.bergerkiller.bukkit.tc.NativeMinecartMember.move(NativeMinecartMember.java:690)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.EntityMinecart.y_(EntityMinecart.java:519)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.World.entityJoinedWorld(World.java:1258)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.World.playerJoinedWorld(World.java:1240)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.World.tickEntities(World.java:1147)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
    2012-02-02 15:14:44 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    2012-02-02 15:14:44 [SEVERE] Unexpected exception
    java.lang.NoSuchFieldError: bN
        at com.bergerkiller.bukkit.tc.NativeMinecartMember.move(NativeMinecartMember.java:690)
        at net.minecraft.server.EntityMinecart.y_(EntityMinecart.java:519)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1258)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:110)
        at net.minecraft.server.World.playerJoinedWorld(World.java:1240)
        at net.minecraft.server.World.tickEntities(World.java:1147)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:435)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  15. Offline

    Don Redhorse

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

    DudeClank60

    I have errors and can't get on my server now :\
    15:25:50 [SEVERE] java.lang.NoSuchFieldError: bN 15:25:50 [SEVERE] at com.bergerkiller.bukkit.tc.NativeMinecartMember.move( NativeMinecartMember.java:690) 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 rldServer.java:110) 15:25:50 [SEVERE] at net.minecraft.server.World.playerJoinedWorld(World.ja va:1239) 15:25:50 [SEVERE] at net.minecraft.server.World.tickEntities(World.java:11 46) 15:25:50 [SEVERE] at net.minecraft.server.MinecraftServer.w(MinecraftServe r.java:525) 15:25:50 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftSer ver.java:432) 15:25:50 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(Sour ceFile:465) 15:25:50 [SEVERE] Unexpected exception java.lang.NoSuchFieldError: bN at com.bergerkiller.bukkit.tc.NativeMinecartMember.move(NativeMinecartMe mber.java:690) at net.minecraft.server.EntityMinecart.y_(EntityMinecart.java:396) at net.minecraft.server.World.entityJoinedWorld(World.java:1257) at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:1 10) at net.minecraft.server.World.playerJoinedWorld(World.java:1239) at net.minecraft.server.World.tickEntities(World.java:1146) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:525) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:432) at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
     
  17. Offline

    andrewpo

    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

    Axcess

    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.

    https://github.com/bergerkiller/TrainCarts/downloads

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

    Jaein

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

    Axcess

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

    AppLeNaToR

    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

    andrewpo

    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

    Jaein

    How do you make stations?
     
  24. Offline

    Desertive

    Hello!

    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

    bergerkiller

    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

    AppLeNaToR

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

    Code:
    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(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:387)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:783)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:743)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:731)
            at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:543)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:441)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
            at com.bergerkiller.bukkit.tc.commands.Commands.execute(Commands.java:42)
            at com.bergerkiller.bukkit.tc.TrainCarts.command(TrainCarts.java:305)
            at com.bergerkiller.bukkit.common.PluginBase.onCommand(PluginBase.java:251)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 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

    bergerkiller

    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

    TheShadow777

    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

    bergerkiller

    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

    AppLeNaToR

    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