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

    bergerkiller

    Mycah Nah it's no problem, they simply added the file from MC dev.

    McGarnicle you can place a station sign underneath the tracks the train spawns. Then the station will take over and make the carts wait.

    MechanID Weird issue, looks like it forgets to launch after waiting...
     
  3. Offline

    robxu9

    This is actually kind of weird - I did this and then all of a sudden when someone walked between the train the carts just broke apart...
     
  4. Offline

    bergerkiller

    robxu9 Auto-delinking was added to break trains in bits dynamically when tracks switch with a riding train on top. It can cause trains to de-link when a player stands in between two carts (although I rather prevent that from happening)
     
  5. Offline

    alex4108

    Does TrainCarts work on 1.0.1-R1? I used to use this in the low build 1000 days. Ahh those were the good 'ol days.
     
  6. Offline

    McGarnicle

    robxu9 yeah that happens for me too, plus it really puts a crimp on where i can place my signs relative to their spawn position. the stations make carts come to a stop on the center cart, but that'll put it off kilter from where it needs to rest to be in range of the launch buttons. and aesthetically it looks wonky in our station build.
     
  7. Offline

    jinS

    Code:
    12:16:50 [심각] java.lang.NoSuchFieldError: bN
    12:16:50 [심각]        at com.bergerkiller.bukkit.tc.NativeMinecartMember.move(
    NativeMinecartMember.java:690)
    12:16:50 [심각]        at net.minecraft.server.EntityMinecart.y_(EntityMinecart
    .java:519)
    12:16:50 [심각]        at net.minecraft.server.World.entityJoinedWorld(World.ja
    va:1257)
    12:16:50 [심각]        at net.minecraft.server.WorldServer.entityJoinedWorld(Wo
    rldServer.java:110)
    12:16:50 [심각]        at net.minecraft.server.World.playerJoinedWorld(World.ja
    va:1239)
    12:16:50 [심각]        at net.minecraft.server.World.tickEntities(World.java:11
    46)
    12:16:50 [심각]        at net.minecraft.server.MinecraftServer.w(MinecraftServe
    r.java:526)
    12:16:50 [심각]        at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:433)
    12:16:50 [심각]        at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:465)
    12:16:50 [심각] 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:519)
            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:526)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:433)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    what's this error?
     
  8. Offline

    robxu9

    you updated to 1.0.1-R1-SNAPSHOT without realizing that TrainCarts doesn't work with 1.0.1-R1-SNAPSHOT. Aka, plugin isn't working.

    Don't worry, I just did the same thing 5 minutes ago.
     
  9. Offline

    jinS

    Ahahahaha.. very well Thanks to Go laughing
     
  10. Offline

    McGarnicle

    is there a way to globally enable a mode in which the trains do not interact with other trains? So that trains going in opposite directions just pass right through each other? I've been trying to use the 'collide false' via under track signs. it seems to make the train pass through mobs, but not other trains, even if both trains have that tag.
     
  11. Offline

    Fire_Head431

    is it out for 1.1 yet?
     
  12. Offline

    bergerkiller

    McGarnicle you probably also have to set 'linking' to false, it's possible that it will ignore collisions but not train<>train linking collisions.

    Fire_Head431 I'll work on a first 1.1 build today (expect for CB1781)
     
  13. Offline

    saki2fifty

  14. Offline

    McGarnicle

    Looking forward to 1.1!

    With regard to the collide command, is there a way to apply it globally?

    Thank you for your responsiveness on these threads btw?
     
  15. Offline

    bergerkiller

    McGarnicle yes, you can set it default in DefaultTrainProperties.yml. These settings are applied to first-placed minecarts and first-spawned trains. 'default' and 'admin' are not the only types, you can add multiple and use them:
    - with property signs
    - using /train default [name] command
    - using permissions (give the players train.propertydefault.[name] to give carts placed by those players certain properties)
    And yup, I'm very responsive, probably because I often browse these forums :)
     
  16. Offline

    kinkinhood

    As always I give the mod an A++ as it is awesome, especially for creating an autotrain line to show off creations and creating tourist stops to ooo and aaaa before moving on.
     
  17. Offline

    andrewpo

    Could you possibly make a short demonstration video on how it works, and what plugins you've used?
    Either that or a few screenshots; I'd really appreciate it.

    Alternatively, an IP to the server the rail system is on.

    I used to use Minecart Mania for my rail needs, but sadly the author appears to have abandoned such a brilliant plugin.

    Thanks very much

    I was referring to having a wall of buttons, with a sign above each one saying only the destination name (those signs wouldn't interact with the plugin at all). The buttons would be attached to a face of a solid block. On the opposite side of the block to the button, a [train] destination.... setting sign would be there. When the block with the sign attached is powered, it (somehow (I believe bigbrother - not sure if it's still maintained - could do this) ) would detect who pressed the button and set their destination.

    If that makes any sense whatsoever, it would mean there's no need to make different rails to spawn a cart, ride over a destination sign, then join the main line to go to the station for each destination.

    Please try to make some sense of that, I know it's awfully described XD But it is approaching 2:30AM for me :L

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

    McGarnicle

    yeah it seems like you could just put that property and destination sign under the button that spawns the train and the train would appear with those properties. redstone would have to be able to pass the info of more than one button spawn though or you'd be out of room real quick.
     
  19. Offline

    Fire_Head431

    thnks heaps! i really like this plgin
     
  20. Offline

    kinkinhood

    I can do that for ya once We have 1.1 support. I'll probably just invite you onto the server and show you that way. I've found 2 different ways to do it, 1 with redstonechips and one without. I'd probably show you both as I've found pictures don't quite do it
     
  21. Offline

    Swimo

    Done yet?
     
  22. Offline

    bergerkiller

    Swimo afraid it'll take a while, I have to work for School today and finish off my project. THEN I can work on TrainCarts...but it hopefully won't take too long :/
     
  23. Offline

    Swimo

    Ok :) Any ETA? I'm launching my server on Sunday and want it up.
     
  24. Offline

    kinkinhood

    Hey Berg, do you have a paypal account? I want to toss ya a few for making an overly awesome plugin.
     
  25. Offline

    bergerkiller

    @kinginhood yup I do, see the bottom of the main page. Thanks for showing your appreciation, if you have a request, I am more than eager to get it done :)
     
  26. Offline

    kinkinhood

    lol. Just threw some your way. Biggest request would be to get it to being 1.1 compatible and perhaps developing a way to make it better at distinguishing 1 way tracks(I tend to lay tracks parallel and have one travel one direction and the other the opposite to prevent collisions)
     
  27. Offline

    andrewpo

    Sounds good! Let me know when you're ready (My client is still on 1.0.0)
     
  28. Offline

    rooligan

    I got a error that says 'unexpected exception' and my server wont start anymore because of that error. Can u fix that?
     
  29. Offline

    saki2fifty

    There are very few plugins that are deserving of being supported financially with donations, but some plugins are such staples to the game that people shouldn't mind donating. Nothing is worse than building your server and creating your environment based on some really cool plugins... only to find that the author abandoned it. It'll eventually happen here too... so..

    Promote that donate button...
     
    robxu9 and Swimo like this.
  30. Offline

    Mycah

    Donation tossed your way, get yourself a beer. Can't wait to see 1.1 support!
     
  31. Offline

    kinkinhood

    I find it a shame when an update to the server breaks a plugin.
     

Share This Page