[MOD 0.13] Big Bags - more space in your bags

Topics and discussion about specific mods
ps666
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Sat Jul 04, 2015 8:40 pm
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by ps666 »

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?
myricaulus
Long Handed Inserter
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

Post by myricaulus »

ps666 wrote: Mon Nov 01, 2021 1:54 pm 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?
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.
Pi-C
Smart Inserter
Smart Inserter
Posts: 1725
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by Pi-C »

myricaulus wrote: Sun Nov 07, 2021 10:54 pm
ps666 wrote: Mon Nov 01, 2021 1:54 pm 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?
Sorry, i guess reducing stack size will destroy anything above that limit if factorio isn't handling it itself
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.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
myricaulus
Long Handed Inserter
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

Post by myricaulus »

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.
Good to know that factorio handles this case. Rimworld would have lost the items.
ZogTheHog
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Nov 21, 2021 1:21 am
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by ZogTheHog »

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?
hcoutdopi
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Apr 02, 2018 7:06 pm
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by hcoutdopi »

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
GodCat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Oct 23, 2024 1:09 am
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by GodCat »

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

Code: Select all

	"factorio_version":"2.0",
	"dependencies": ["base >= 2.0"]
data.lua

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)
			}
		},
		
		
data-final-fixes.lua

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

Converts to something like this.

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

I will keep testing it, but it's also attached for review.
BigBags_1.1.0.zip
Last edited by GodCat on Wed Oct 23, 2024 1:22 am, edited 2 times in total.
Steppenwolf
Burner Inserter
Burner Inserter
Posts: 6
Joined: Thu Mar 23, 2017 1:31 pm
Contact:

Big Bags for Factorio 2.0?

Post by Steppenwolf »

GodCat wrote: Wed Oct 23, 2024 1:12 am 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.
...
BigBags_1.1.0.zip
Hey, s it possible that you will release the updated version? "BinbinHfr" has not been active here for a long time.
GodCat
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Oct 23, 2024 1:09 am
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by GodCat »

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.
RKDuke
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Oct 26, 2024 12:13 pm
Contact:

Re: [MOD 0.13] Big Bags - more space in your bags

Post by RKDuke »

Yes, please do!
Post Reply

Return to “Mods”