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

    MicroDark

    Good :)
     
  3. Offline

    Baba43

    my 4-cart-train passes the station and drive backward after ~3 seconds to stop there :-/
    property signs doesn't work do they?
     
  4. Offline

    MechanID

    @bergerkiller
    in latest 1.53 version i have issue: minecart with player lose it speed very fast, not enough to pass more then 12 blocks away from booster
     
  5. Offline

    dockter

    Ive been having heavy server related problem with this plugin installed. Hoping that 1.54 helps that.
     
  6. Offline

    MicroDark

    Resolved in the future 1.54.
     
  7. Offline

    bergerkiller

    Yup, to be precise, going to resolve that tomorrow. (in 12 hours lol)
    Plan of approach:
    1. Replace minecart train targets with a 'force target + orientation' system
    2. Launch trains at infinite speeds, not at the max speed. (will make that configurable)
    3. Check native coding for mishaps in the motX/Z coding
    4. A lot of debugging
     
  8. Offline

    StolleJay

    Oh no i become an arror :(

    This Error comes when i try to place a minecart on the Rail. So... i cant Place a Minecart :( I´m the Server-Owner!
     
    bergerkiller likes this.
  9. Offline

    bergerkiller

    @StolleJay Please update your Craftbukkit.

    Ok had a deep thought. The 'velocity target' system was nice, but not very useful. Going to replace it with 'MemberAction' and 'GroupAction'. It already allows me to:
    Now going to implement some methods to give trains a 'direction'. Right now this is unspecified; if I want to launch the train 'forwards' this can mean both directions to the plugin.

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

    alzan12

    cant place minecarts
     
  11. Offline

    bergerkiller

    @alzan12 what CB version? (update if needed)
     
  12. Offline

    alzan12

    thanks it works now. I was on 1.0.0 upgraded to 1.0.1
     
  13. Offline

    Aox

    Just got my buildcraft server bukkitted up, and I'm getting the minecart slowdowns here as well, eagerly awaiting 1.54!!! :D Thanks BK!

    -Aox
     
  14. Offline

    _frozen

    any chance to include an constant speed ala Minecart Mania for all carts? I'm not sure whether that is easily done, though.

    Edit: Easy implementation via signs, in my head?

    [train]
    property
    setconstantspeed
    3 (3x the walking speed? how would that work?)
     
  15. Offline

    Baba43

    my minecarts disappear everyday?
     
  16. Is the train speed in 1.53 (using latest stable CB) how it's gonna stay or you gonna put it back to how it was before with the versions for 1337? Just asking, cause it's rather boring to change again and again my railway system...
     
  17. Offline

    bergerkiller

    Well the station launching has been fixed; it will no longer slow down the train shortly after launching from a station. But for some reason I can't seem to find the reason why minecarts slow down so quickly...

    My only guess right now is that it loses too much momentum during curved rail sections...since there is nearly to no difference on straight tracks. Anyone willing to verify that?
     
  18. Nope, it looses all the momentum even on flat straight lines... after a station, 4 rails away, it stops already...
     
  19. Offline

    bergerkiller

    @Psychokiller1888 Ah after a station, that explains. What if you use powered tracks, do those work fine? (because I fixed the station launching already - now launches with more power)

    Updated. Other than fixing the station launch issues, it also fixes some 'almost invisible' issues with the train movement.

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

    MicroDark

    Always the rail booster problem with 1.54...
     
  21. Oki, launch seems to be almost as before. Looks like your theory of curves diminishing the momentum drastically is correct, as my railway is behaving as in 1.47 but after the first curves it's way slower and stops. Still, boosters are not boosting anything.
     
  22. Offline

    bergerkiller

    @MicroDark @Psychokiller1888 Rail booster problem? How do you mean exactly? Could either of you post a screenshot of the set-up where it fails? (or a drawing which shows this)
    Haven't had powered rail issues on my side...
     
  23. Just that as since 1.47 the boosters don't give any boost to the cart going over them.... Can be on a straight line, flat or going up, after or before a curve...
     
  24. Offline

    L.Antigreen

    I tried to do some stations like "[train] station". Server writes that do it successfully, but train does not stop...
     
  25. You did not power it both sides...
     
  26. Offline

    L.Antigreen

    I did it... [​IMG]
     
  27. Offline

    MechanID

  28. Offline

    bergerkiller

    @L.Antigreen What version do you use & what if you add '5' on the third line and 'continue' on the fourth? Does it then stop and continue after 5 seconds? What if you add powered wire towards the sign instead?

    @MechanID Ow lol well that can mean only one thing...hang on xd

    EDIT

    Try the re-uploaded version on GitHub. (same 1.54)
     
  29. Nope, the reuploaded 1.54 did not solve the problem...
     
  30. Offline

    MechanID

    @bergerkiller redownloaded twice, no other mods on server, but problem still exist, for check - size of TrainCarts.jar is 218376 bytes
     
  31. Offline

    bergerkiller

    @MechanID yeah 218.262 bytes here xd
    Probably github acting up again ... I'll upload under an unique name.
    *done
     

Share This Page