WeichenMeister
What it can do
Tiered of building complicated redstone circuits to create a automatic minecart system? No interest in updating intersections if one destination changes? You need a plugin which knows all your tracks and the shortest path to your destination. WeichenMeister will switch intersections automatically so you can build up a railway system really fast. Simply type in your destination and enjoy the journey.
About the name
'WeichenMeister' is a german created word and can be translated with 'intersections master'. The idea behind the name was automatic switching of minecart rails. So every rail communicates with the minecart and knows which way it wants to go. So 'WeichenMeister' is a kind of AI which does the switching for you and it does this job perfectly. And german craftsman which are really good in their job are called 'Meister'. You see the name makes sense.
Features
- Automatic switching of intersections
- Signs to mark stations
- Detects connected rails and finds the shortest path
How does it work?
To create a destination place a sign with [WMDestination] in the first line and the name in the second. The sign can be placed next to the track or underneath. Your railway system should consist of connected rails, powered rails or detector rails. Jumps and other one way connections are not supported. Make sure you have enough powered rails to ensure a pleasant journey.
When you run the plugin the first time you need to search your world for tracks. Do this by typing '/wm scan'. It creates a abstract map of your railway system which can be solved with graph theory. To find the shortest path to your desired destination type '/wm dest STATION' and plugin is going to find it. That is all you need to do.
Installation
Drag the plugin in the plugin folder and reload your server. If you run this plugin the first time you have to type '/wm scan' to detect all rails in the world. Depending on the size of your world it can take a few minutes.
Commands & Permissions
Configuration
Known Bugs
- Detection if you are moving in the wrong direction
- No detection if destination is connected to your railway
ToDo
- Database implementation
- Listener to update database
- Display the distance to the target
- Thread to check if database data is up to date
Changelog
Version 0.1 - delayed because other projects need my attention
- Initial release
is the source code available for this plugin? maybe I can do some work on it myself?
@dretax Recently I am busy in Reallife and doing some updates for Cannons. I have talked to the Traincarts developer and we are going to improve the pathfinding for this plugin.
@DerPavlov
Well, i don't but if you want im still here to help :)
I need some time to rethink the database system, because it stores now huge files. So I will swap from 'saving all rails' to a more iterative process. Should be no problem, because the plugin processes 3000 rails in 5seconds. But if you build really long rails it can last a few seconds before the railmap.
EDIT: Detrax, do you have a railway system on your server. I am going to need a testing ground with 10km railway system and more than 3 stations :)
Good :D Tell me if you need help :)