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. Hey Guys,

    i would like to ask, if someone has a goodd Circle-Subway system and would like to share the Structure?
    I mean, just spawn 3 trains and let them drive through stations is good, but after sometime they will be buggy,
    #


    Thanks in advance,
    Johnny
     
  3. Offline

    CommanderGizmo

    Ack!! ItemParser errors!


    TC v1.72.3; BK v1.42; CB 1.4.6-R0.3

    Error log: http://pastebin.com/DeL7zxJJ

    This happens when passing these signs:
    [​IMG]

    [EDIT]
    Further testing shows this to be an error caused by the collect signs. This seems to be an issue even without an item or distance listed. Furnaces do not appear to be collectable, though chests still are.
     
  4. Offline

    CommanderGizmo

    You can use google to search this thread.
     
  5. Offline

    vayed

    I have a Sign:
    [!train]
    property
    destination
    a

    Under every switch:
    [!train]
    tag

    And at the station:
    [!train]
    destination
    a

    Why does the train take an other way?
     
  6. TrainCarts will take the most direct route to get to the destination, if it is going down a line that does not have access to the destination make sure you have issued the command "/train reroute" if you want to stop a train from going down a particular line you can put in a sign

    [!train]
    blocker

    You could also swap out the tag signs for switcher signs, I have not used the tag feature since switcher does all the routing.

    [!train]
    switcher

    make sure to put in "/train reroute" after playing with these signs or the system will not know about your new signs.
     
  7. Offline

    zopper

    Hi. I've searched (also with google) but I didn't found any information and didn't seen it on any video: how to automaticaly start furnace carts? On station it get fuel, but is not powering the train until I click on it. Or it is not possible?
    Thanks
     
  8. Are there any way to make trains go his way when you are not close?
     
  9. Offline

    zopper

    Cuerdas: Yes, set property keeploaded (keep chunks loaded) to true for some trains, or enable it in config for all trains by default.

    But I'm not sure how effect is has on performance - one train will do nothing, but what about e.g. 30 trains with length 6 carts?
     
  10. Oki perfect! it works!
     
  11. Offline

    ninjaz97

    Do you need somebody to be so close to the train and signs to make them work? If nobody's near one end of my subway system the cars just culminate and dont work...
     
  12. Offline

    zopper

    You even didn't read last three posts... ;-)
     
  13. Offline

    ninjaz97

    apparently not :confused: ! sorry and thank you!
     
    agaricus likes this.
  14. Offline

    TheGoodRobot

    I'm actually encountering a problem where, even when this is set to true, the trains unload

    At least, I think that's what is happening. I did a bit of testing. The complete circuit is 3 minutes round trip. I stood at the station and waited for about four minutes or so, hopped in my minecart, and when the other station which is 1.5 minutes out loaded, the train was coming back the other way at it's normal speed. Note that I don't have any command signs or anything at the other station.

    So any ideas?

    Again, keepChunksLoaded is set to true.

    it got updated a few days ago.

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

    Spizzie

    I have the same problem as @GoodRobot, if anyone has a solution please let us know :), Thank You.
     
  16. Spizzie and TheGoodRobot

    This is a Minecraft Issue and cant be really resolved....
    Do you destroy the Trains at some point?

    If not, do it and let them Respawn.
    Our Server has a big Subway + Train System, we had the same Problem but then we destroyed it at the Main-Station and spawned a new one right after it. Now, we dont have Problems with Trains needing more Time.
     
  17. Im having a problem with this plugin; when a train collide with a mob the train explode and dissapear, Are there any way to make trains dont collide and destoy itself?
     
  18. Check the Config, allow-enter and set Mob to false
     
  19. Other question... how i make to protect my storage minecart from users stoling coal?
     
  20. Dont know, use Chest Protection ala LWC?
     
  21. im try with lwc without results :S
     
  22. Offline

    Kingbox

    I am the owner of a small server and nobody can place carts but ops. I went through and it says that we should be able to. Do I need to fill in permissions to do this?
     
  23. Yes set the permissions cheking the permissios default archive.
     
  24. Offline

    Kingbox

    What? How do I do that?
     
  25. Offline

    Ghosty

    Good day, I seem to be having problems loading TrainCarts (latest version: v1.72.5).
    I have the latest BKCommonLib installed (and loaded fine).
    Here is the error log.

    Thanks!

    PS: BKCommonLib is the only plugin I have that is listed on "Plugins using ProtocolLib", should I still have ProtocolLib installed?
     
    marksc likes this.
  26. I am currently using TC on 1.4.7 (obviusly the using TrainCarts for 1.4.7) and I don't know why upon exiting a station the trains are pulled back into the station?? Any help?
    I am also using destination signs in case it helps.
    Also tried it without the destination signs, the same thing.
     
  27. Offline

    bergerkiller

    marksc
    That is a known bug from 1.4.7 which is/was fixed for the 1.5.1/2 versions. Unfortunately 1.4.7 differs a bit too much from 1.5.1 in that it added a new EntityType for the new minecart types, so I can not add backwards compatibility properly...
     
  28. Ok, Thanks, will update soon (once all plugins which I'm using update) ;)
     
  29. Offline

    woeterman_94

    Hey, I saw this project is inactive.
    Please update it! I would love to use it!
     
  30. Offline

    bergerkiller

    woeterman_94
    It's not inactive, this page is inactive. Go to dev-bukkit.
     

Share This Page