Topic: Multiple warhouses
mxb2001 Topic Opener |
Posted at: 2020-10-16, 20:56
If you set 2 warehouses to prefer store ware x here (and have more houses on normal) what happens? Is there any documenation on how all the warehouse options work in detail? -- |
the-x |
Posted at: 2020-10-16, 20:59
If you join me playtesting I can answer all of your questions. See you in the Lobby : ) - short answer: Green is always prefered, so then is goes to the next warehouse with green settings - then standard, then red - its like 3 groups ; ) Top Quote |
Nordfriese |
Posted at: 2020-10-16, 21:54
There is no documentation unfortunately except the code itself: https://github.com/widelands/widelands/blob/master/src/economy/economy.cc#L992 (esp. line 1011-1056) After reading the code briefly it seems that if you have one or more warehouses that Prefer a ware, then only those can receive that ware. If there are several Preferring warehouses, the ware goes to the one of these with the lowest stock of this ware. Distance is not considered when you have a Preferring warehouse. If you have no Preferring warehouses, the ware goes to the closest warehouse of those with the Normal policy. Edited: 2020-10-16, 21:56
Top Quote |
the-x |
Posted at: 2020-10-16, 22:08
Top Quote |
kaputtnik |
Posted at: 2020-10-16, 22:42
@ the-x: All your questions has nothing to do with the initial question of warehouses. I would delete your post again, as with some former posts.... either you have substantial answers to this specific question, or create an new topic with your questions.
I think this is the most logical behavior, isn't it? This is may not what the player want though. Edited: 2020-10-16, 22:45
Fight simulator for Widelands: |
the-x |
Posted at: 2020-10-16, 23:37
@ kaputnik : I dont understand the logically. The question goes a bit further. Can you answer it? Top Quote |
the-x |
Posted at: 2020-10-17, 10:18
The warehouse system is very similar to the traffic lights system Top Quote |
hessenfarmer |
Posted at: 2020-10-17, 10:38
It is defintily different then the Traffic lights in the production site buildings. Top Quote |
niektory |
Posted at: 2020-10-17, 10:54
The "traffic lights" priorities work differently than warehouses. The lower priority destinations will still receive wares even when there are higher priority destinations. The higher priority ones will just receive them more often.
Usually they are sent from a warehouse. If there are no wares of this type in warehouses, the building waits until one is produced and it's transported directly from the source, without going to a warehouse first. Top Quote |
the-x |
Posted at: 2020-10-17, 11:29
Good Explanation! : -) So - if for example i need 2 reed and dismantle a building, do i need to close every slot for every building or is it enough if i set in the building which uregntly needs the 2 reed priority to green. Tested if often and about 70-80% it works in the other cases dont, im interested in the exact coding behind it and how reliable it is aimed to be? Top Quote |