[MOD 0.13] Big Bags - more space in your bags
Re: [MOD 0.13] Big Bags - more space in your bags
I thought it was only increasing the stack size in my inventory, but it increases it EVERYWHERE! That sucks.
If I remove the mod now, will I lose everything above the normal stack size?
If I remove the mod now, will I lose everything above the normal stack size?
-
- Long Handed Inserter
- Posts: 84
- Joined: Mon May 08, 2017 3:33 pm
- Contact:
Re: [MOD 0.13] Big Bags - more space in your bags
Sorry, i guess reducing stack size will destroy anything above that limit if factorio isn't handling it itself(which i don't know), but of you load your savegame directly with another stack mod *it should* take over the original stacks, as long as the new stack mod increases the stack size enough.
Re: [MOD 0.13] Big Bags - more space in your bags
Actually, if there is an inventory with oversized stacks the items will be kept, so you won't lose anything. However, all calculations will be based on the new stack size. Let's say you have a stack of 200 iron plates, and stack size has been reduced to 100. If you use right-click to pick up half a stack, you will take 50 iron plates, not 100, and if you try to put those 50 plates back you will end up with one (oversized) stack of 150 plates and a new stack of 50 plates.myricaulus wrote: ↑Sun Nov 07, 2021 10:54 pmSorry, i guess reducing stack size will destroy anything above that limit if factorio isn't handling it itself
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
-
- Long Handed Inserter
- Posts: 84
- Joined: Mon May 08, 2017 3:33 pm
- Contact:
Re: [MOD 0.13] Big Bags - more space in your bags
Good to know that factorio handles this case. Rimworld would have lost the items.Pi-C wrote: ↑Tue Nov 09, 2021 9:17 am Actually, if there is an inventory with oversized stacks the items will be kept, so you won't lose anything. However, all calculations will be based on the new stack size. Let's say you have a stack of 200 iron plates, and stack size has been reduced to 100. If you use right-click to pick up half a stack, you will take 50 iron plates, not 100, and if you try to put those 50 plates back you will end up with one (oversized) stack of 150 plates and a new stack of 50 plates.
Re: [MOD 0.13] Big Bags - more space in your bags
Has anyone had this issue still with the Inventory size staying huge even after deleting this mod? I love the stack size feature but I research too many bags and now my inventory pane is ungodly big. I tried deleting the mod settings file, I am not sure what to do. Is there something I can edit to reduce it back down?
Re: [MOD 0.13] Big Bags - more space in your bags
Failed to load modes: Error while loading item prototype "caravan-control" (capsule): 'stack_size' must be 1 when ot-stackable is set.
Modifications: Pyanodons AlienLife >Big Bags (more space in bags +longer reach)
getting error with the latest Pyanodons AlienLife 2.0.6
Modifications: Pyanodons AlienLife >Big Bags (more space in bags +longer reach)
getting error with the latest Pyanodons AlienLife 2.0.6
Re: [MOD 0.13] Big Bags - more space in your bags
I am willing to release a new version but reaching out first for BinbinHfr to see if he wants to modify it for v2.0
I don't know Lua, but I think I got everything working again.
Modifications Required:
info.json
data.lua
data-final-fixes.lua
Prototype Capsules that have flags['not-stackable'] must have stack_size set to 1.
Converts to something like this.
I will keep testing it, but it's also attached for review.
I don't know Lua, but I think I got everything working again.
Modifications Required:
info.json
Code: Select all
"factorio_version":"2.0",
"dependencies": ["base >= 2.0"]
Code: Select all
-- worker-robots-storage
..
effects = {
{
type = "worker-robot-storage",
modifier = "1" <- 1.0 (double)
}
},
-- worker-robots-speed
...
effects = {
{
type = "worker-robot-speed",
modifier = "0.8" <- 0.8 (double)
}
},
Prototype Capsules that have flags['not-stackable'] must have stack_size set to 1.
Code: Select all
-- capsule stacks
for _, caps in pairs(data.raw["capsule"]) do
caps.stack_size = new_size( caps.stack_size, my_stack_offset, my_stack_factor )
end
Code: Select all
-- Function to check if a value exists in a table
function table_contains(table, value)
for _, v in pairs(table) do
if v == value then
return true
end
end
return false
end
for _, caps in pairs(data.raw["capsule"]) do
-- Check if the capsule has the 'not-stackable' flag
if caps.flags and table_contains(caps.flags, "not-stackable") then
-- Set stack_size to 1 if it's not stackable
caps.stack_size = 1
else
-- Otherwise, set stack_size normally
caps.stack_size = new_size(caps.stack_size, my_stack_offset, my_stack_factor)
end
end
Last edited by GodCat on Wed Oct 23, 2024 1:22 am, edited 2 times in total.
-
- Burner Inserter
- Posts: 6
- Joined: Thu Mar 23, 2017 1:31 pm
- Contact:
Big Bags for Factorio 2.0?
Hey, s it possible that you will release the updated version? "BinbinHfr" has not been active here for a long time.
Re: [MOD 0.13] Big Bags - more space in your bags
Yeah if others are interested. I don't know if I have the bandwidth to maintain it long term but I could start with this today and see how it goes.
In the mod, it requests that I try and reach out to the author first.
In the mod, it requests that I try and reach out to the author first.
Re: [MOD 0.13] Big Bags - more space in your bags
Yes, please do!