MinecartPermanence
Minecart Permanence - A plugin to keep the chunks minecarts are in always loaded. Version: 1.1
I built this plugin for a sever I'm in where we're building a very extensive railway system. Since we want it autonomous, and sections of tracks are frequently kilometers long, minecarts would unload when they get too far from a player and the trains would just stop. While this kind of displayed a quantum mechanics idea, it was really obnoxious for us. This plugin fixes that.
While there are other plugins that do this same thing, they're few and far between from what I saw, and many provide a lot more features. We wanted to keep the server mostly vanilla, which is why the only thing this plugin fixes is Minecarts.
Features: This plugin simply keeps track of any vehicle move event and chunk unload event. If a vehicle moves and its a minecart, it forces chunks around the minecart to load. If it's a chunk unload event and there is a minecart in a nearby chunk, it'll prevent that chunk from unloading.
[Edit: ah, this format is all new to me. For ease of use and not having eventually pointless comments, please PM me with how to make this not a terrible format for BukkitDev]
MAKE A UPDATE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >>>:(
I've heard from orion304 and he has requested that I post a link here directing you towards RollingMinecarts which shares some of the same basic functionality of MinecartPermanence.
@TomabScblieter
I tried that, no luck. I removed both miencartDelivery and SimpleCarts, and MinecartPermanence still brought the server down in under 5 minutes when it was installed.The only thing I saw was a server output error for NoLagg complaining that the server was out of ram and so couldn't execute its functions. I will do a test later tonight to see if NoLagg is conflicting.
@geodrummer55
Is it possible MinecartPermanence doesn't play nice with minecartDelivery or SimpleCarts? I'm not familiar with either plugin. I am not experiencing any issues with this plugin on my setup:
RB #1597
I'm getting the same issue as MikeKoder, except it takes less than ten minutes to reduce the server from 550mb ram free to out of memory, at which point the server fails. I have checked through the log files and cant find any errors relating to this, but I can tell you, it does happen, and only with this plugin installed.
Tested with RB #1597 and RB #1637
Plugins:
@MikeKoder
How big is your server? Is it possible you have many minecarts lost in the void and other places? I have this plugin running on my server RB #1597 and I have not encountered any problems. What other plugins are you running?
@bigscary
Checkout my plugin called RollingMinecarts. It hasn't migrated to bukkitdev yet but it "fixes" precisely what you describe and is designed to function along with MinecartPermanence.
This plugin is a no go until it is updated I'm afraid. We had it on our server and it caused MASSIVE memory leaks that shut down the server in just a few hours. Hope it gets updated and fixed soon because it was a very useful plugin!
Any news on an update to this?
Does this work for 1.0.0? If it doesn't, I'd love to see an update. Great plugin!
Looking at the error post below, I'm guessing this isn't updated for 1.0.0 yet? This will be really REALLY good for some of the plugins I'm running like DropChest where chest minecarts will auto-pick up items off the ground, now I won't have to worry about transport!
I'm getting errors =(
2011-12-12 21:21:13 [SEVERE] Could not pass event CHUNK_UNLOAD to Minecart Permanence
java.lang.OutOfMemoryError: Java heap space
at net.minecraft.server.NBTTagByteArray.load(SourceFile:24)
at net.minecraft.server.NBTBase.b(SourceFile:95)
at net.minecraft.server.NBTTagCompound.load(SourceFile:27)
at net.minecraft.server.NBTBase.b(SourceFile:95)
at net.minecraft.server.NBTTagCompound.load(SourceFile:27)
at net.minecraft.server.NBTBase.b(SourceFile:95)
at net.minecraft.server.NBTCompressedStreamTools.a(SourceFile:75)
at net.minecraft.server.ChunkRegionLoader.a(SourceFile:52)
at net.minecraft.server.ChunkProviderServer.loadChunk(ChunkProviderServer.java:124)
at net.minecraft.server.ChunkProviderServer.getChunkAt(ChunkProviderServer.java:67)
at org.bukkit.craftbukkit.CraftWorld.getChunkAt(CraftWorld.java:101)
at me.orion.MinecartPermanence.MinecartPermanenceWorldListener.onChunkUnload(MinecartPermanenceWorldListener.java:36)
at org.bukkit.plugin.java.JavaPluginLoader$54.execute(JavaPluginLoader.java:640)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
at net.minecraft.server.ChunkProviderServer.unloadChunks(ChunkProviderServer.java:231)
at net.minecraft.server.World.doTick(World.java:1725)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:514)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
Thanks for saving our minecarts from blipping out of existence! Until I read this plugin description, I was under the impression that somebody on our server was an undercover griefer. :)
Please oh please consider fixing a related issue - empty minecarts slow to a stop MUCH sooner than full minecarts (seriously, try boosting an empty minecraft off a powered rail segment alongside one with a player in it). It's super-annoying because it means we have to place 2-3 times as much powered rail to keep an empty cart moving versus a full one.
Perfect! <3