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

    Astrae

  3. Offline

    bergerkiller

    Astrae
    Hmm something appears to have went wrong. I'll re-upload it in a few mins, including the fix for sign destroying.
     
  4. Offline

    Helmi74

    I also had the same problem trying to unpack the file on linux - unpacked and repacked it on my desktop (Mac OSX) and that worked on the linux machine then.

    But i seem to have a big problem - trains are not moving. When i create new storage carts they sometimes stay still, sometimes drive in highspeed but only to the next corner and then stop moving. I strangely hear train sounds as they would move but nothing happens. I tried deleting carts and recreating them but something seems to go really wrong. is there anything we need to change on the config files for the new version?

    It's a bit weird.

    Thanks for the update anyhow - i'm happy to use it again after everything works well again.

    Edit: Seems to be a problem with the latest dev version of craftbukkit server - it works with the latest beta.

    re:grouping multipliers. I don't know if that should work already i understood it like this in the past.

    having a line in the config that allows different multipliers for each item in the group list. Example:

    toolbox: 5*iron_hoe;2*wooden_axe;10*stone;64*coal

    That would be great and i thought you were saying that this way already works?

    For the other grouping: I use that a lot already - thanks so much :)

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

    bergerkiller

    Helmi74
    Yeah that should already work right now. It converts that line into physical item parsers (parsers that can match one type of item with or without forced data, with or without amount and 'any' if no type set)

    If it doesn't work then that's a bug.
     
  6. Offline

    Helmi74

    bergerkiller

    ok, great - i'll test that tomorrow. Does that also work with a multiplier on the sign? So if i say 5xtoolbox with the example from above it takes 25 iron_hoe, 10 wooden_axes and so on?

    Thanks,
    Frank
     
  7. Offline

    bergerkiller

    Helmi74
    Yup, I added that in the latest updates.
     
  8. Offline

    Astrae

    My problem was fixed with the latest test build; thanks!

    One observation I have, however, is that although the cart movement is really smooth when I'm outside the carts, it is really, really jittery once I get into a cart. Once I start moving at full speed, the stuttering gets really, really obvious; like there are 2 carts almost right on top of each other that just keep switching back and forth.
     
  9. Offline

    bergerkiller

    Astrae
    You can blame Mojang for that. They screwed up the client and now minecart entity movement smoothing is out the window.
     
    Qi Xiang likes this.
  10. Offline

    Helmi74

    bergerkiller is this entity movement thingy known to be a bug or is it a "feature"? :eek:
     
  11. Offline

    bergerkiller

    Helmi74
    I think it is a 'feature' to prevent the bugged movement in corners (you know, derailing). But it is a bug because they didn't implement a more sane smoothing system to replace it.
     
  12. Offline

    Helmi74

    bergerkiller ok, so let's hope they continue working on that and make movement smooth again - otherwise i have to close eyes while driving in a minecart to not get sick underway :)
     
  13. Offline

    Rob2222

    Hello,
    someone know the problem that a placed minecart directly starts moving east like crazy?
    I have no idea what I've changed, it was working and I didn't changed the traincart version.
    Tested two different 1.72.2 test versions and 1.72.1. When I remove traincarts, this behaviour is gone.

    And, someone know this problem? Link

    BR
    Rob
     
  14. Offline

    Helmi74

    Rob2222 probably you installed the latest dev version of the bukkit server? I've had similar problems with that but i'm okay with the latest beta.
     
  15. Offline

    bergerkiller

    Rob2222
    Must have overlooked that one, I did fix some stuff related to putting coal in minecarts, but not that the player can run without any coal at all.
     
  16. Offline

    Rob2222

    Helmi74:
    Yes, I have updated to the latest bukkit dev version. That's it. Why does it drive traincarts crazy?! ^^
    I updated to todays latest dev build but the problem still exist.

    bergerkiller:
    Well, for my understanding it doesn't run without fuel, when I let the train roll into a station with refuel on, direct after spawning, right? OK, it runs without "coal" but it should be refilled. And it is refilled, it runs for 180 seconds after station-refill. I just dont know, why it runs for maybe 50m and then you have to click the cart (without coal) to make it run again. But then it runs until the fuel is empty.
    I know the difference from fuel and coal because I took a look at the sourcecode.
    However I was not able to find the cause of the described behaviour.

    BR
    Rob
     
  17. Offline

    Astrae

    bergerkiller

    Noticed an issue with waiter signs today with the latest build. The past couple of times that I've been on, my server's been incredibly slow due to a stoppage on the tracks. I finally found the problem today. It looks like when a cart is stopped at a waiter sign some distance back from the cart in front of it, it never starts moving again, even when the other cart clears out. This only seems to happen when trains have keepchunksloaded on and I'm not loading the chunk with my character; when I watch it, everything goes fine (and I've tested it too- talk about quantum mechanics at work)

    So basically, one train stops (correctly) waiting for the station to clear out, and it gets held there indefinitely while other trains come in, stack up, and get held there too. The wait sign is about 8 blocks from the end of the station in front of it with a 15 block range on it (waiter 15). Earlier versions of trainCarts (with 1.3.x) didn't have a problem with this setup.
     
  18. Offline

    bergerkiller

    Astrae
    Do not use the latest build for any of my plugins. Bukkit did some changes that affect all nms using plugins, so it won't work. I am working on adding a compatible way with their new change.
     
  19. Offline

    harryjamesuk

  20. Offline

    Desmulator

    Hey, is there any way to turn off the additional sounds for poweredminecarts?
     
  21. Offline

    Helmi74

    Hi bergerkiller,

    i still can't get switchers to work right. Simple situation:

    Code:
    A=================T=================C
                      |
                      |
                      |
                      |
                      |
                      B
    The T marks the switcher. Each of the three destinations have a small rail loop at the end. Everything worked well with two destinations but the third marks a problem.

    A has the following sign:

    Code:
    [!train]
    destination
    A
    B
    The sign at B reads:

    Code:
    [!train]
    destination
    B
    C
    and C then of course:

    Code:
    [!train]
    destination
    C
    A
    The sign below T facing to B reads:

    Code:
    [!train]
    tag
    
    That doesn't seem to work right. How should the switcher look like to make routing work right and switch the switcher to the direction that is needed by the train? I can't seem to find the right hints in the docs. You wrote some posts above that "tag" is deprecated but i don't know how to use switcher to solve this.

    Thanks for helping,
    Frank
     
  22. just use
    Code:
    [!train]
    switcher
    
    Issue "/train reroute" when every you add a switcher track
     
  23. Offline

    bergerkiller

    @harryjamesuk
    You most likely have to update BKCommonLib.

    I'll look at the other issues later, I really need to fix up a lot of internal logic in TrainCarts.
     
  24. Offline

    Helmi74

    Lexion thanks - i must have missed /train reroute in the docs :S

    usually chunks with trains driving in them should get updated even if no player is around, right?

    I currently see the problem of trains not coming back from a track where no people are near and when i start walking in that direction suddenly the train comes back. I'm quite sure that has already been different in the past - any changes here?

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

    bergerkiller

    Helmi74
    Set keepchunksloaded to true on the train.
    You can also set it to true by default in the DefaultTrainProperties.yml file.
     
  26. Offline

    Helmi74

  27. Offline

    harryjamesuk

    Hi,

    My BKCommonLib is already running on the latest version.
     
  28. Offline

    Indagroove

    Can someone post an example for the ticket signs? How are they suppose to work?

    I am trying to keep players from entering trains unless they buy a ticket. the ticket add, buy signs are just not working for me at all no matter where I place them. Is it something I am missing or doing wrong?

    Thanks
    Indagroove
     
  29. Offline

    Qi Xiang

    you are no longer updating this plugin? :(
    Thanks for making this plugin as it literally helped to expand my server's CART (City Area Rapid Transit) system.
    This was one of the best plugins i have ever used or seen in my life.
    It is one of a kind.
    There is no other plugin out there (that i know of) that can do awesome things like linking minecarts together and having a smooth stop, launch and even have a great waiting system to prevent trains from colliding
    Pretty sad now... but anyways, thanks for updating the plugin since I started using it and fixing all the bugs which were reported. Helped out my server a lot.
    Thanks and Good luck!
    -Qix
     
  30. Offline

    carmeops

    don't worry Qi Xiang, judging by his development notes, he is still actively working on it:
    https://github.com/bergerkiller/TrainCarts/commits/

    sadly 1.4.5 will probably be the last version updated :(

    i passed weeks making a global railroad on the server i play on, waiting for traincarts to make it alive, hope someone will take the lead if Bergerkiller stop developing it
     
  31. Offline

    Qi Xiang

    Berg are you back!?!?!? I saw that BKcommonlib has been updated :D
    EDIT: Thanks for updating the plugin! you are the best berger!!!
     

Share This Page