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


    Giuseppe use CraftBukit 1818 or higher (MC1.1)
  3. Offline


    server wont make a log for some reason but im upto date for sure but when i place a cart down the minecartis there i see it but i can walk right though and cant place anythign else prob a simple error
  4. Offline


    Linkmaster1995 make sure you use the latest CraftBukkit version, versions below 1780 or so will probably cause the server to crash, or the minecarts not to function at all.
  5. Offline


    wann komm dass Update ?
  6. Offline


    I have the same issue, i built the track then put a minecart on the rail... couldn't place any more carts and suddenly we all were disconnected from server.
  7. Offline


    yeah its so weird i am upto date im using craftbukkit 1.1 R2 or whatever it is and i tried using fresh server and still didnt work
  8. Offline


  9. Offline


    bergerkiller THANKS idk why but i used ur verison and it worked!...i think... i have to test with some of the stuff lol at least i got further than i did before
  10. Offline


    Working for my current purposes (1.6 beta 14) :D
  11. Offline


    bergerkiller Yup it works! :D you also said you had all of mania in this to?
  12. Offline


    Linkmaster1995 well I decided to use a sign-based system instead of blocks, since blocks cause too many problems during construction. Implemented are:

    All of them are redstone-based, allowing you to combine tag-reading and stations with a complete redstone circuit.

    I still need to work around a few minor problems, such as debugging and making sure the track detector gets updated when a tag on a train changes.

    Also, if you know of a plugin that implements Minecart Mania, which needs to be supported one way or the other, I may be able to do this. (or add my own implementation)
  13. Offline


  14. Offline


    Linkmaster1995 use /train <command> to operate on all carts of a train. Use /cart <command> to operate on a single cart. For example, /train info (or /train i) will show all train-related information, /cart i will show it of a single cart. You set the targeted cart/train by right/left clicking a cart. It is also targeted when first placed.

    If you want to check using signs, make a track switcher but don't power it. Attach a lever to the block the sign is attached to, and the lever will be toggled accordingly.

    Note: I still need to manually update the blocks around when I change a lever. Right now it can change redstone that is directly attached, but it won't update attached blocks. (for example, it won't update the power state of the block the lever is attached to)
  15. Offline


    ok thanks for the info :) cant wait to start building awesome stuff now!
  16. Offline


    Finally got my world-wide (it's a pretty damn big world - Dynmap: ) system on The Shire ( server to work :)

    Thanks so much for developing the plugin, especially the routing + one way signs (which I've finally mastered)
  17. Offline


    how do i set it so anyone can use a train cuz when i make it its always me as owner
    i looked at the commands and it said use this without names to clear but it didnt
    /train setowner
  18. Offline


    Hey andrewpo so the crossover tracks we made work properly now with the one way signs?
  19. Offline


    Short feedback: Seems to have fixed all issues I had. However I am still wondering how and if storage cart teleportation should/will work!? Thank you. Using MyWorld and still have same issues, CB1818.
  20. Offline


    I'll try to make a general usage video of the blocker. It is a bit complicated to explain, but I'll try.
  21. Offline


    I set a train property of /train maxspeed 3.0 and it made the train go nuts fast instant almost. I am wondering if this is a normal occurrence I know it says its 3.0 blocks per tick. Just wondering if it is meant to bypass the max velocity speed set in the config.
  22. Offline


  23. Offline


    I have trouble getting the 'default' property to work (it used to work on 1.0, but I can't get it to work again since I upgraded to 1.1-R3 and the betav14 of TrainCarts).

    I tried putting this sign under the rails:
    and powering it.

    in defaultflags.yml I added:
      destination: a
    (I copy/pasted this to DefaultTrainProperties.yml and TrainProperties.yml later, just to be sure)

    I added a destination sign and track switchers (which works, I tested it with a '[train]/property/destination/a' sign).

    I restarted my server once.

    But it doesn't work...

    Did I miss something, or is there another way to set many options at the same time?

  24. Offline


    Since you are beginning to implement features from Minecart Mania, I would greatly appreciate it if you added in the feature to automatically destroy all empty minecarts after a preferably configurable amount of time has passed. Our server has an issue with cart spammers where players constantly spawn carts onto the main track and end up clogging everything up, resulting with annoyed players.

    Other than that, this plugin suits our needs exceptionally well, thank you for creating it.
  25. Offline


    Blake380 you can already do this; you can combine the track switcher sign with a destroy sign to destroy empty minecarts or empty trains. What you do is redirect the redstone output from the switcher to the destroy sign. (you can have multiple signs for each track)
  26. Offline


    Jea i will test the plugin on our server.
    But i have a problem with your approach of the use of singens.
    The commands are no problem , but placing the signs allways directly under the track is horrible.
    Its nearly impossible to read the sing one its placed and often directly under the track is no way to place the sign.
    Is there any alternative to place the signs in a another place?

    Just form a 2 second thought: use a specific block to tell the train to look for a sing in a predefined range.
    Or placing a empty sing directly under the track to tell the train to look for a sing in a predefined range.

    I relay love to use MM and if you can get as near as good (especially the usability) then i will only use your systhem in near future.
    PS:I like your track destination system. (did you ever thought of a rout system [ Train -> Station a,b,c,d,a...])
  27. Offline


    hey i have a question i made a quick unlisted video for exactly whats wrong please look at it its about tags and desitnations EDIT: also if i take all track away but the way to the farm it just rejects the track like in the video
  28. Offline


    Contrary to above post, I much prefer signs under rails. Yes, you can see them. You just can't see the [train] text; but you don't need to anyway.

    bergerkiller - I had my setup working fine with the 'oneway' signs in beta 13, but 14 has messed it up =/
  29. Offline


    Do you mean the Station sign? I don't see anywhere on the wiki, or ever after testing, showing that the switcher sign can produce a redstone output, or anything about the switcher being able to differentiate between empty and occupied carts. I can definitely be wrong though.
  30. Offline


    can anyone help me?
  31. im occasionaly getting a problem with individual minecarts. they freeze on the track and become undestroyable or moveable carts. even if i destroy everything arround them.

    the only thing that works on them is other carts bounce off them and i can get in them.

    i tryed everything the commands allow removeing all carts from the world didnt work either. in the end i had to take the plugin out restart the server then put the plugin back in to fix the cart.
    this is on 1.0.1 r1 with the recomended build. there was no console errors so iv got nothing to show.

Share This Page