I've encountered a "stuck caravan" problem, that matches this thread:
http://www.bay12forums.com/smf/index.php?topic=128968.0My fort is about 5 years old and a human caravan arrived in April. In the mid of May the caravan was about to leave as a werebeast arrived. I had stationed a military squad at the fort entry and after a short fight the beast was dead. But the caravan did not leave. I don't know if the beast is related to the caravan problem, but this is at least peculiar. The werebeast never made it to the depot.
Some members of the caravan leading Yaks are standing inside the walkway between the fort entry and the depot, but the wagons are still at the depot. I did not care about the caravan, because such delays sometimes happen.
But now it's June and food brought by the caravan is starting to rot and clouds of miasma are now making my dwarfs unhappy. I tried to dump the rotten stuff, but nothing happens.
There is a dfhack script, that should fix merchant stuck when entering the map. I tried it and it reported "4 wagons being removed", but the caravan is still stuck.
Deconstructing the depot seems to fix the problem, but in some other thread this "fix" was considered harmful regarding the relations to the Civ the caravan belongs to, so I wanted to avoid that.
I've written a small script that lets me dump the rotten stuff, so I can solve the miasma problem at least:
local utils = require('utils')
for i,item in ipairs(df.global.world.items.all) do
if item.flags.rotten and item.flags.on_ground and item.flags.trader then
for k = #item.general_refs-1, 0, -1 do
if (item.general_refs[k].entity_id == 244) then -- human civ
print(utils.getItemDescription(item,0)..' '..tostring(item:getStackSize()))
item.flags.dump = true
item.flags.forbid = false
item.flags.trader = false
item.flags.foreign = false
item.general_refs:erase(k)
end
end
end
end
After a while I discovered that there are "4 deceased wagons" in the list of "dead/missing" units. Probably these are the units the "fix merchant" scrip" tried to fix/remove. dfHack's deathcause does not reveal and reason:
"The wagon died in year 255 (cause: none)." So most likely something weird must have happened, that the wagons "died" and this seems to have caused the trouble. Any ideas how to fix this? Is there a way to "revive" the wagons (toggling the "killed" flag is not sufficient).