Hazeron Forums
Processes don't output if a single run exceeds storage - Printable Version

+- Hazeron Forums (https://hazeron.com/mybb)
+-- Forum: Shores of Hazeron (https://hazeron.com/mybb/forumdisplay.php?fid=1)
+--- Forum: Bug Reports (https://hazeron.com/mybb/forumdisplay.php?fid=17)
+---- Forum: Prerelease Bug Reports (https://hazeron.com/mybb/forumdisplay.php?fid=21)
+---- Thread: Processes don't output if a single run exceeds storage (/showthread.php?tid=2355)

Pages: 1 2 3


"Inventory full" error despite empty storage - Celarious - 03-28-2023

I have a refinery building with 512 workshops all set to produce Hydrogen. The building has a storage capacity of 256,031. Because the output of those 512 workshops would exceed the storage, the entire output is discarded and the building ceases to function, despite having zero commodities stored
[Image: YnSKjzM.png]
[Image: VF8eZPp.png]


RE: "Inventory full" error despite empty storage - Deantwo - 03-28-2023

The manufacturing process is likely making more than the storage can hold. Try lowering the number of workshops.

This is like duplicate of a number of bug reports related to manufacturing processes.
First being output amount calculation is wrong: Production bonuses apply twice per shop (Exponential bonuses)
Second being about buildings with too small storage will report as "full inventory": Processes don't output if a single run exceeds storage (merged with this though)


RE: "Inventory full" error despite empty storage - Deantwo - 03-28-2023

(03-28-2023, 03:31 PM)Deantwo Wrote: First being output amount calculation is wrong: Production bonuses apply twice per shop (Exponential bonuses)

Using the formula from the thread, 512 workshops with 1 bonus (Computers), will result in an output of 534'528, which is more than double what the building can hold.

Code:
[ (Output * Shops) + (1 * NumOfBonuses * Shops ^ 2) ] * 2
[ (10 * 512) + (1 * 1 * 512 ^ 2) ] * 2
= 534528



RE: "Inventory full" error despite empty storage - Celarious - 03-28-2023

(03-28-2023, 03:31 PM)Deantwo Wrote: The manufacturing process is likely making more than the storage can hold. Try lowering the number of workshops.

Yes, this is the reason, as I said with the output exceeding the storage


RE: "Inventory full" error despite empty storage - Deantwo - 03-28-2023

(03-28-2023, 09:09 PM)Celarious Wrote:
(03-28-2023, 03:31 PM)Deantwo Wrote: The manufacturing process is likely making more than the storage can hold. Try lowering the number of workshops.

Yes, this is the reason, as I said with the output exceeding the storage

Then why make a new separate bug report about a double issue? Want me to merge this with the Processes don't output if a single run exceeds storage thread? EDIT: Merged.

This all wouldn't be as big an issue if Production bonuses apply twice per shop (Exponential bonuses) was fixed though.


RE: "Inventory full" error despite empty storage - Celarious - 03-28-2023

(03-28-2023, 09:13 PM)Deantwo Wrote:
(03-28-2023, 09:09 PM)Celarious Wrote:
(03-28-2023, 03:31 PM)Deantwo Wrote: The manufacturing process is likely making more than the storage can hold. Try lowering the number of workshops.

Yes, this is the reason, as I said with the output exceeding the storage

Then why make a new separate bug report about a double issue? Want me to merge this with the Processes don't output if a single run exceeds storage thread?

This all wouldn't be as big an issue if Production bonuses apply twice per shop (Exponential bonuses) was fixed though.
Sure, prob better to have one big thread, didn't see it before creating

and yeah would be nice if the bonus was fixed


RE: Processes don't output if a single run exceeds storage - Deantwo - 03-28-2023

(05-29-2020, 04:50 PM)Haxus Wrote: This is not a bug. It prevents a building from wasting materials by manufacturing more than it can store. The excess is then lost.

When the process has no room to store the output, it runs again without consuming more materials. Eventually there is room to store the output.

This only matters for manufacturing processes that actually consume materials though. But as mentioned earlier, having the process itself calculate how many workshops is causing it to exceed and then return the materials for those, would be the best solution.

But as just mentioned in my post above. This issue is mostly only noticeable because of the bug that causes output to be way too high. Fix that and this issue will stop being noticeable for 90% of cases.
See: (Bug report) Production bonuses apply twice per shop (Exponential bonuses)