Bio Industries


Provides useful buildings and items, like the Bio Farm for growing trees. Solar Farm and Large Accumulator to make your electric setup easier. Bio Fuel section to produce organic plastic and batteries. Lots of New Wood Products, like the big electric pole, wooden pipes, dart turret. Plant trees using seedlings. Change terrain from deserts to grasslands using Fertilizer - helps trees grow better. And a lot more… Please visit the homepage on the forums for more information and feedback.

Content
8 months ago
0.14 - 1.1
54.3K
Manufacturing

b [Fixed?] SE and 5dim wood stack size

10 months ago

Hello.
I am working on fixing an issue with SE when starting a world. I get the error message that Wood's stack size is over 200. It looks to be set to 210. That happens because in your data-final-fixes.lua:24 you are checking for the existence of the "5d-change-stack" setting. Can you set the max to 200 if both the vanilla size and the mod setting match, otherwise take the "5d-change-stack" value and use that?

Pi-C
8 months ago
(updated 8 months ago)

Sorry for not replying any sooner. Would the following work for you?

local item = data.raw.item["wood"]

if item then
  if BioInd.get_startup_setting("5d-change-stack") then
    item.stack_size = math.max(210, item.stack_size)
  end
  if mods["space-exploration"] then
    item.stack_size = math.min(200, item.stack_size)
  end
end
8 months ago

The max value in the item.stack_size = math.max(210, item.stack_size) line needs to be 200, do that and i think we've got a fix

Pi-C
8 months ago

I've made it more general now, so that all items affected by the stack size tweak will have their stack size limited to SE's limit (200 in general, but 50 for stone and other ores). Please try out version 1.1.19!

8 months ago

will do! thank you

New response