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


    AppLeNaToR well actually all I need to know is how to reproduce it on my local server :)

    I see that you can't enter your trains. This probably means that you are not an owner of that train. First check if you own the train, or force-own the train (/train claim).
  3. Offline


    What i tried so far (with 1.6 R14 as 15 wont let me use commands)

    spawning a train which will pass over a property sign. /train info - shows this train did not get any property
    spawning a train holding it on a station. *click* the train and then /Train claim - Train is now mine (/train info confirms that) but iam still not able to enter the train

    Trains properly stop on stations and continue depending on the settings. But they completely ignore any "[Train] property" signs and won't let me enter them.

    I tried to run my server without plugins except traincarts but still iam not able to enter the trains.

    I also deleted all config files so they are "fresh". Did not help either.

    I guess the problem might be somewhere on my server, but i can't figure out what it is.

    Before on 1.0 with TrainCarts 1.54 everything worked fine. The trainstation did not change at all but with 1.1 + Traincart 1.6 R14 its not working anymore.

    Also when i create a sign i get the "confirmation" that i created it.

    Iam OP and have the "*" rights in PEX
  4. Offline


    AppLeNaToR is your cart or train set public?
    It sets whether or not the cart can be everyone. May something have gone wrong with the ownership, this should fix it.
                if (!mm.getProperties().isPublic && !mm.getProperties().isOwner(event.getPlayer())) {
  5. Offline


    I tried all commands. The plugin tells me "The selected train can be used by everyone: true" iam the owner but still iam not able to enter it :( is there a way to enable debugging commands?

    I tried spawned carts and also just placing them. Both had the same effect.

    Do you wan't to see it for yourself?

    Could it be caused by a MOD iam using? Well actually that might be the Problem tbh.

    We are running a modded Server With ModloaderMP and MinecraftForge from that homepage:

    Its hard to verify as i can not run the world without that Mod.

    Our server is running

    CraftBukkit 1.1-R3
    MinecraftForge (updated to R2 right now no change)

    Iam sorry that i forgot to mention this earlier. I guess the problem might be happening because of an incompatibility with the mod stuff as it seems to be working fine for others.
  6. Offline


    Uploaded beta 16, fixing the command exceptions and fixing the spawner sign.
  7. Offline


    Is your train spawning on a slope? I noticed that causes issues with not being able to enter a cart, if the cart spawns on the lower part of a slope.
  8. Offline


    I had just updated to this, however, now my spawner signs spawns 5 carts instead of the 1 that I had set it to do. ( Line 1: [train], line 2: spawn 1, line 3: m)
  9. Offline


    Blake380 ow (...) it is still the debug version, sec xd


    Ok correct version is now up. (same beta 16)

    andrewpo TrainCarts can not cause that; it only changes the physics of minecarts. Check if you have 'use block' permissions on your server, or if some other plugin provides this feature.

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


    mh...still cant enter the minecarts (im OP, public is enabled, etc.) also the sign spawned over 15 (!!!!) carts when i placed it (1:[train] 2:spawn 3: pm). dont know what im doing wrong...
  11. Offline


    anzGER first re-download beta 16. 6 people downloaded the wrongly uploaded version (this version simply spawns infinite carts to fill all the tracks)
  12. Offline


    and where can i download these version? i got mine from your github (v16), but still have those problems..maybe u upload the wrong one dunno
  13. Offline


    I am running the new version you just uploaded now, but it is still doing the same thing as before.
  14. Offline


    thats what i said. i guess he uploaded the wrong file... hope there will be a fix soon ;)
  15. Offline


    So you tried to convice me with the pressure plates bergerkiller.
    We played around with them yesterday, tried lot of different setups, here is what we got:

    - the cart loves it. It thinks its a rail, so working
    - the cart can stop on it if the station is powered correctly, and start from it
    - however we did not get the player enter launch thing to work.

    Maybe we are using the wrong setup? Something missing on the sign? You have details?

    We put the pressure plate above the station sign, so...
    Best thing we got that when a player is leaving the cart it will start :(

    Thank you for all your efforts :)
  16. Offline


    Gadarol it treats the pressure plate as 'both sides powered', so use the following station sign ATTCHED TO THE RAIL BLOCK (so a wall sign):
    This will launch the train to the right when entered.
  17. Offline


    Okay, you nearly got me with your pressure plate idea - but one small detail:
    This will not stop a minecart on the plate.

    Setup we use is:
    - Cart is waitig for player
    - Player enters and drives away (this works) and by that triggers detector rail
    - Detector rail gives signal to "spawn train" -> Cart goes into the place of the one just used waiting for the next player

    Users that use MM right now would usualy replace their obsidian blocks with your plates. But those do stop trains until triggered by either redtone or "enter" event.
    So it would be nice if the pressure plate could somehow stop the cart, that would make transition from MM to your awesome plugin much more easier :)

    btw: This video shows how we use your plugin in our new built central station / warehouse :)
  18. Offline


    Should i just ignore this:
    17:08:35 [WARNING] CraftBukkit build 3 is too old for plugin 'BKCommonLib' v1.02
    17:08:35 [WARNING] Update CraftBukkit to a newer build or look for an older version of BKCommonLib
    CB 1.1 R3 and TC 1.6 beta 16.
  19. Offline


    xcanner you probably use a custom build of CraftBukkit, you can ignore it yes. Do note that it may cause incompatibilities may field names differ.

    Gadarol Then you will probably have to use the sign-post station version (which doesn't get powered by the pressure plate) and connect that with a redstone circuit. I can't think of an understandable method to allow a 'trigger' signal and the pressure plate...

    Btw really nice chest station system, I knew it was possible but never saw it implemented like that :)
  20. On latest recommended CB and latest version of your plugin:

    Arrival sign is not working anymore. Doesn't trigger the count down

    Weird behavior at train stations. The cart makes a cart linked souind when it gets to the station and stops, makes the same sound when it launches, moves around 5 milimeter, stops again, waits, and then slowly starts...

    Boosters are working again. Did not yet have the courage to test if teleporting is ok
  21. Offline


    mh. which version is now working without any probs? i still have the problems with the v16 beta version (no minecart enter, spawn too much carts, etc.). would be cool if u can help me bergerkiller, cause im just freaking out here x).

    Ps: im using the v16 beta from your github
  22. Offline


    Psychokiller1888 note that it now uses the following format for the triggers. The trigger-sign format is still the same, only the variable names on the display signs got changed:

    I'll make it set the default as well (%trigger2%) to prevent confusion.

    anzGER Wish I knew what was going on there, it's a bit vague. I think you have some issues with the permissions, but since you are OP, it doesn't make sense. Maybe you denied players from exiting the carts in the default train properties?

    Just in case, post your 'PermissionDefaults.yml' and 'config.yml' and 'TrainPropertiesDefaults.yml' on pastebin (not here, it's quite large as I can imagine). Maybe I can see from that what is going on.

    Development status: Wait signs are now fully functional; you can now let trains wait for the tracks ahead to be clear of other trains. It allows perfect X-intersections without trains colliding all the time. However, be sure not to add too many wait-zones, it can cause an 'infiwait'; two trains waiting for each other to get away.
  23. Offline


    A.. bergerkiller? I need to Am... 1.-1 ver.. sorry for saying this..!
  24. Offline


    jinS What exactly do you mean? You need 1.-1 version ...? Or do you mean 1.1 version? Because the version for MC 1.1 can be found on GitHub, see main post (all above) below; the links.
  25. Offline


    mh after i reinstalled the plugin for the 20th time, the correct amount of carts spawn with my signs. but at least i cant enter them. all of my config files are default. i fixed nothing on them. also im OP and the config files say:

    allowPlayerEnter: true
    allowPlayerExit: true
    isPublic: true

    ps: im not using any permisson plugins or things like that. :/
  26. Offline


    Thanks..! sorry to bother
  27. Ok, correct, my syntaxe was outdated, sorry. It works just fine. Just the train station that acts weird:

    Minecart rolls to the station, stops with the link sound effect, wait the normal and written time before launch, moves just a little bit, makes the sound again and stops again for the wait time, then launches
  28. Offline


    jinS No problem :)

    Psychokiller1888 aah I know what happened. It basically stops the cart/train BEFORE it reaches the sign. So the next time it launches again, it encounters the same sign again. Had the same with the wait signs...

    This feature only seems usable in the blocker sign, not any other. I'll try to separate the two 'stop' methods.

    anzGER I looked at it, but the only way you can be denied from entering is if 'allowPlayerEnter' is false AND you are not an owner. So not sure what is going wrong there...

    You can enter non-spawned carts?
  29. Offline


    at least i cant enter any carts. even the one that i spawn or build without your plugin. when i delete the plugin, i can enter the carts. realy strange :(
  30. Offline


    anzGER I did spot that I used two checks to validate the player, so I removed one of them. Just in case; do you have 'mob enter' disabled? It can deny you if thats disabled and it somehow fails to identify you as a player.


    Uploaded beta 17 on GitHub. This time the common lib has the right version, if you use NoLagg; 1.04 is supported by NoLagg. (NoLagg comes with version 1.03, not much got changed)

    This version probably fixes the 'trains not correctly stopping at stations' issue. It also introduces wait signs, but these are still in a rather poor state.

    optional direction to look at: left/right/north/etc.
    distance to look at
    For example:
    The distance will become optional; when left empty it will then use a distance up to 100 blocks or shorter if it spots another wait sign along the way. It will wait the train until the tracks ahead are clear of trains. THIS IS NOT YET WORKING CORRECTLY. So do set a distance for now.

    It still needs several other things, such as furnace item dispension (coal + other item) and automatic crafting.
  31. Offline


    i got 'allowMobsEnter: true' in my config. i changed it to false just for testing it out, it has no effects for me. no minecart entering for me :(

Share This Page