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

    andrewpo

    Now that would be truly epic with minecart mania's light green wool control blocks (players stand by the rails and get sucked in to the carts when they pass, then at the end of the rollercoaster have and iron block eject them :D
     
  3. Offline

    bergerkiller

    @andrewpo The eject sign can already achieve what the iron block does. (personally, I hate the 'different block types do that system', my rollercoaster got ruined the first time when I built it out of iron blocks)

    I'll consider the 'suck into' system...perhaps a sign which, when powered, places all players in a sec radius into the train when the train drives over it.

    EDIT

    Also, slow-down system is working over here. You still do need powered rails when climbing, otherwise it will run forever.
     
  4. Couldnt that mode set by stations and speed signs also?

    Please! ;-)
     
  5. Offline

    bergerkiller

    @szoller it's a default property you can set as owner. Trains having 'slowDown' disabled will still stop for things like hills, disabled powered rails, etc. No real need to set it from stations. :)

    Also, might add a 'property setter sign' eventually to add tags for example.
     
  6. Offline

    Aeron

    This plugin is amazing and it is simple, yet very effective. Works like a charm for now :)
     
  7. Yeah, but I don't really understand how to set propertys (especially for each train from e.g. a spawner)

    At the moment, trains don't stop only on hills etc., also on a flat route after some blocks (maybe because of the powered cart that brakes the train?)
     
  8. Offline

    bergerkiller

    @szoller haven't added a property setting for spawner signs yet, not sure of how to get around such a thing. Perhaps use one of the default properties you can set...

    Guess I rather add a secondary sign you can place next to the spawner sign to apply certain properties to the train passing above it...

    Also, see the WIKI page for properties, contains all information you'd need.
     
  9. Offline

    King_KYl3

    can you please make it so people carnt hope in a train utill it hits the sign were it triggers it to let people in or somethink like that so like Train goes over the track with a sign under it saying lock carts and no1 can enter or exit untill it goes over an other sign saying unlockcarts or somethink i dunno but that idea would be so epic i hope you think about it xD Plugin is getting better and better Good work Loving it will work good on my massive subway sytem :D Thanks agian
     
  10. Offline

    L337_Trooper

    I don't know if this has been asked before, but can we use minecarts with chests?
     
  11. Offline

    bergerkiller

    @King_KYl3 I'll add an 'allowPlayerEnter' property to the train. This enabling/disabling can be done through the train property sign which I will add later on.

    @L337_Trooper yep you can connect powered minecarts and storage minecarts to the train. However, storage minecart chest protection is not (yet) added.
     
  12. @bergerkiller I like that new tag system! If I am not mistaken it is not possible yet to set tags through redstone?
    What about this: if a tag sign is under regular track (not an intersection), make it work like a tag setter instead of a switcher. That way you can have tag signs hooked up to buttons and/or levers or other redstone-powering magic to set destinations. I'd say have the 3rd and 4th line be a list of tags to add, optionally seperated by spaces. Tags prefixed with a "!" could then be unset if they are currently set on the train above it. I feel a very cool automated destination choosing system coming up... :)

    Or, to prevent confusion from the overloaded use of the tag sign, use tagset signs instead of tag signs...
     
  13. Offline

    evil_andy

    First off, thank you! With your plugin, powered carts finally WORK on SMP!
    However, I'm having an issue where if a powered cart pushes another cart into a block (i.e. end of the track) it doesn't stop, and will push the entire train through the block, derailing all of the cars.

    If I can figure out how to stop that, I will be a happy man!
     
  14. Offline

    SAMDAN

    CAN WE HAVE THE MAP DOWNLOAD PLZ? THAT ROLLERCOASTER IS AMAZING! Great plugin, btw, rollder coaster would suck if it wasnt for that.
     
  15. Offline

    sintri

    Nice, would allow large farms if it works as it says. Installing overflow caches reduces/negates the loss, though doesn't really increase the carrying capacity. Much better if when you can run a train of chests.
     
  16. Offline

    Julianoz1224

    I can't get the ejector signs to work :(
    I place one like this:
    ~~~~~~~~
    [train]
    eject all
    0/0/4

    ~~~~~~~~
    But nothing happens.
    I have tried putting th sign below, above and on the side of the track.
     
  17. Unfortunately, without a way to set tags automatically, the tag switcher is useless :'(
    If you're low on time, I could fork the code on github and add a push request with a patch, but you'd probably do a better job :).
     
  18. Offline

    ledhead900

    Did u power it ?
     
  19. Offline

    Julianoz1224

    No I didn't, :S
    I tried powering it and it works great now :D
    Thanks for the help.
     
  20. Offline

    ledhead900

    Np glad to help :)
     
  21. Offline

    Julianoz1224

    Could you make it so you can set a flag to a train so that people cant get out unless its stopped at a station or an ejector sign ejects them out?
    This would stop people from getting to places they are not supposed to go on my track :p
     
  22. Offline

    Rigeborod

    I'm using the latest (1185) Craftbukkit and (1.37) TrainCarts.
    There's a bug with train properties. Default train properties do not apply for trains created with a "spawn" sign.[​IMG]

    But they do apply for manually created minecarts.
     
  23. Offline

    BlancoLanda

    @bergerkiller Hey! This plugin is nice... but is there any way to avoid people from modifying the movement (velocity, etc.) when touching a minecart? :S I want to make a train station but I can't with that.

    Another thing... with linked trains the Enter message isn't working for me!!
     
  24. Offline

    bergerkiller

    @Rigeborod true, I forgot to add that part in the train spawning section. Will do that for the next version...will take a bit longer since I'm VERY busy with NoLagg and MyWorlds...

    @BlancoLanda yup, use the /train collision command to disable all collisions done to and by this train.
    Or some other command, see the WIKI.

    Enter message is odd, I'll check that when I see the coding next time. (also, did you set it for the correct train? Use /train info to check this)
     
  25. Offline

    BlancoLanda

    @bergerkiller yeah, that's with other trains, i'm talking about touching it with the player's body. I can still move a train with my body using those CMDs.
     
  26. Offline

    bergerkiller

    @BlancoLanda that's because you are an owner. Owners override various 'permission-like' properties. Use this:
    And no one but 'sasadasgdsadasdasdd' can push and change the train. :)

    See also the WIKI!
     
  27. Offline

    BlancoLanda

    @bergerkiller When I use setcollision to false, I can't link minecarts. It doesn't care if linkminecarts (or however it is written) is in true... Can I fix that?
     
  28. Offline

    bergerkiller

    It's kinda obvious that trains without collision can't collide with other trains to link. But, since you can do the same by setting linkable to false, I'll see if I can allow collision to link...
     
  29. I really need the feature of not-needing powered rails, could'nt you add that tag? :)
     
  30. Offline

    bergerkiller

    Ye I should update this once...
    Once MyWorlds' custom chunk generator feature is added (and tested) I'll update this one.
     
  31. Offline

    korsanclan

    Hello,
    First, it is useful tool for the effort, respectively hatched!

    Unfortunately, I have a problem I can not the einornen!

    I unzwar creire a sign for example
    [train]
    day
    a
    b
    activate redstone torch on right side.

    But if I then remove the Redstone Torch again cracht my client!
    I go back to the server, just go to the point where I entfert the redstone torch immediatelycrashes from my client!

    what is lying?
    ClientMod tomanyitems!
    Plug ins on the server and I've only minecartmania Train



    Ps: Is it not possible details to make multiple crossroad as
    /train tag a, f, gh, z, stop


    sorry for my English! I hope art will understand:)
     

Share This Page