Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Better hauling - use bins to consolidate things going to single stockpile  (Read 648 times)

Kogut

  • Bay Watcher
  • Next account: Bulwersator
    • View Profile

I thing that it may in part fix strange hauling.

1. With start of hauling job check neighbours for additional objects going to the same stockpile as job generator [realistic, to reduce ghost-like problems with operating on quantum dumps there may be limit [10000?] for number of checked objects]
2. Check number of found objects (1->haul as nowadays, more -> go to steep 3)
3. Pathfind to nearest bin/bag (starting from dwarf or hauled items or both)
4. pickup bin/bag
5. pickup multiple objects
6. move all of them to single tile of stockpile (bin!)

Overall it will be less CPU intensive than normal patfinding: DF will perform 1 additional pathfinding (to find bin) but it will move multiple objects - (with n objects it will make 3 pathfindings: 1 for bin, 1 for moving dwarf to object, 1 to stockpile instead of 2*n).
Idea collected from ideas, rants and random thoughts from: http://www.bay12forums.com/smf/index.php?topic=78413.msg2024084#msg2024084

Example: dwarfs will haul multiple seeds at once from dining room/brewery, multiple clothes from battlefield etc
« Last Edit: February 28, 2011, 02:35:10 am by Kogut »
Logged
The worst bug - 34.11 poll
Tired of going decades without goblin sieges? Try The Fortress Defense Mod
Kogut, the Bugfixes apostle of Bay12forum. Every posts he makes he preaches about the evil of Bugs.