Topic: Solution proposals for maritime shipping problems
kaputtnik |
Posted at: 2020-02-03, 10:09
Thanks for the info Maybe i have messed up this logic with some economy settings: Prefer all wares and workers in port of island2, remove all wares and workers from port and headquarters of island1. Anyway i noticed also some ships were idling at island2, although there were plenty of wares waiting for shipping at island1. This game had only two ports... Fight simulator for Widelands: |
Yo... |
Posted at: 2020-02-03, 11:57
Ok, now I know it's not just a feeling when I think the priority-settings for wares are sometimes ignored ...
Yes, but this discovery doesn't help much to make the game better
Thank you Top Quote |
simplypeachy |
Posted at: 2020-02-03, 17:46
My thinking was that the warehouse targets would serve as a minimum requirement. I would propose that once the minimum is met, the Prefer/Normal priorities are honoured. Whether the "Do Not Store" priority is honoured, or ignored, until target is met, well this is another matter. I can see why we would want to keep 20 marble in a remote warehouse, but make sure no other marble is kept there. But then it could be thought of as somewhat counter-intuitive. WARNING: New-style view packet not found. There may be strange effects regarding unseen areas. |
simplypeachy |
Posted at: 2020-02-03, 17:49
That was my original thinking. There is an argument for honouring Prefer/Normal priorities, too.
Great idea to give warehouses a lower priority in that situation. I would say that the mechanic for sending to the largest difference could be useful, but doesn't need to be restricted to warehouses. Perhaps keep it simple to begin with. WARNING: New-style view packet not found. There may be strange effects regarding unseen areas. |
simplypeachy |
Posted at: 2020-02-03, 17:52
I agree here. One of Widelands' strengths is its simple mechanics which then allows for emergent strategy. I'd prefer ports to simply act like economy nodes across water, as they are now. WARNING: New-style view packet not found. There may be strange effects regarding unseen areas. |
simplypeachy |
Posted at: 2020-02-03, 17:54
Wow. I know a lot of thought and effort goes into the code of the game but I hadn't realised how clever the ship and port system was. I wouldn't have been able to envisage such a system, let alone create one <3 WARNING: New-style view packet not found. There may be strange effects regarding unseen areas. |
king_of_nowhere |
Posted at: 2020-02-03, 17:58
i didn't follow the last 5 pages or so, but i just had an idea on the large economy problem: if we send a ware to a faraway place, and we try to see if there is a duplicate of that ware closer to the destination, it's going to kill the cpu. but it could be reasonable to do it when wares go into a port. then all you have to do is check if there is already a duplicate of that ware in the destination port. only once per ware. very cpu light, would already be helpful Top Quote |
Nordfriese |
Posted at: 2020-02-03, 22:17
Good idea We would only need to check: If there is the same ware type at the other dock, and it´s heading to the first dock, swap their destinations. If this is not the case, but the given ware type is stored in the other port´s warehouse, use that one instead and cancel transporting the current ware. Should this be done only for wares or also for workers? This is not strictly related to the shipping algorithm though, it needs to go in a completely different code path (and one which I am not very familiar with, so I can´t tell if it might have side effects...) Top Quote |
niektory |
Posted at: 2020-02-03, 23:16
Would be nice if it was done for workers too. Should be especially useful in case of builders because they move around a lot (and it's hard to ensure you have enough of them in every colony). I also have another unrelated idea. What if the number of wares in a warehouse was considered when requesting a ware by a production site, so warehouses with a big surplus would be preferred over near-empty ones? Distance would still be the primary factor, this would only be considered when there are several warehouses with similar distance to the requesting site. Top Quote |
king_of_nowhere |
Posted at: 2020-02-03, 23:18
i suppose for workers too. i got very frustrated playing a sea map today because i had plenty of wares and workers on the colony but the game insisted in shipping them from the mainland. we need to make an exception for wares that are simply going to the warehouse, though, like if a warehouse is set up as preferential storage. in that case the wares are just getting stored there, and you do want them transported. only wares/workers that are requested by a bulding are double-checked. speaking of shipping, i noticed another weakness of the shipping algorithm: the incapability of recognizing that one ship doesn't have enough cargo hold to take all the wares. i had those two very distant ports, and i had hundreds of wares and workers to be transported. and yet, one single ship was called. the ship would crawl to the distant port, load the wares it could, and only then a new ship would be called. again, only one. so, i had one port that could not ship all the wares it accumulated, and i had half my ships idle. the port should be taught to call a new ship when the amount of items to be shipped exceeds the capacity of a single one. also, the current algorithm results in a few ships loading 40 wares and doing a very long tour of all the ports, while other ships are idle. I'd also add that if you have at least 2 idle ships, the port should call a second ship when it exceeds 20 wares anyway, to split the load. and then only load the first 20 on the first ship, and the rest on the second. if you have at least 7 idle ships, it should call a new ship when it has 10 wares to ship. Top Quote |