DFFD for source file and Windows binaries:
http://dffd.bay12games.com/file.php?id=14917GitHub repository:
https://github.com/bloop-bleep-b12/minecart_fall_loadingThis is a plugin that allows items OR units that fall on top of a minecart to be a loaded into that minecart, if they can fit within the minecart. This, I believe, is an important addition, because it allows automatic minecart loading without direct dwarf interaction, in a simple way, without making it TOO easy =P. In the base game, only automatic minecart unloading is possible.
Think of the possibilities! We could have minecarts passing items from one to another, with a dumping track stop next to a hole over another minecart. Imagine dwarves dumping finished items down chutes right outside their workshops, to be spirited away by a waiting minecart, without the need for the stockpile walk after the job is done. I have considered constructing a horrifying recursive goblin grinder, where goblins are pelted from afar with the corpses of their previously fallen comrades, until the ground underneath them gives way, allowing a minecart below to scoop up their own cadavers. The efficiency is exponential!
All with minimal dwarf interaction, and a relatively simple mechanic.
Please tell me what you think, and provide any bug reports or comments! Thank you!
NOTE: Currently only one unit at a time may be loaded into a minecart this way. This restriction is artificially created by me, so could be easily changed if people feel against it. Also make sure to pit units from at least 2 z-levels above minecarts in order for them to loaded.
EDIT: Also I would appreciate any technical advice on how to search for items (which may be in the air) in a specific tile? Currently I'm looping through all active items, which I assume is not the most efficient way. Is it true that if an item is not a projectile, then it is recorded in the df::map_block* in which it is located?