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

Topics and discussion about specific mods
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.6

Post by binbinhfr »

orzelek wrote:Thanks :)
It will be really helpful - might even tempt to play some death world due to increased ammo mags :D
Oh yes, biters are really fun toplay with, especially with my Super Tank. Give it a try ! :D
My mods on the Factorio Mod Portal :geek:

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.6

Post by orzelek »

One more small improvement to consider:
Use the data-final-fixes.lua instead of data-updates.lua. This will make mod work properly with bobplates for example.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.7

Post by binbinhfr »

Ok, hope noone will create items in data-final-fixes.lua, or we're done ! :)
Here is v1.0.7
My mods on the Factorio Mod Portal :geek:

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.7

Post by orzelek »

Is it by design that some item types have the stack size modified twice?

It's evident now when using multiplier - there are separate for loops that iterate ammo/modules/capsules but they were already iterated by main loop.

One more proposal from me - add option to disable ammo from stack size increases. It kind of multiplies with magazine capacity increase.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.7

Post by binbinhfr »

orzelek wrote:Is it by design that some item types have the stack size modified twice?

It's evident now when using multiplier - there are separate for loops that iterate ammo/modules/capsules but they were already iterated by main loop.

One more proposal from me - add option to disable ammo from stack size increases. It kind of multiplies with magazine capacity increase.
Please give me an example of object stack counted twice. I do not see.

For the ammo stack, I prefer to keep it this way : especially when you have a lots of turrets to feed, ammos can take a lot of place/room in chest/bags. So I need this feature. ;)
But you are free to edit the code for yourself, of course.
My mods on the Factorio Mod Portal :geek:

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.7

Post by orzelek »

Do a small test:
Set stack multiplier to 3 and run the game.
Usual item stacks like plates will be x3 but ammo stack will be x9.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.7

Post by binbinhfr »

Yes, I did not notice that when I first wrote this mod a while ago. Maybe something changed.
Anyway, I corrected it, now ammo are not modified twice. So their stack becomes more reasonable :D

Here is v1.0.8
Corrects double modification of ammo stack.
My mods on the Factorio Mod Portal :geek:

Ytm
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun May 01, 2016 4:06 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by Ytm »

how about sandbox? It seems that in this scenario "Big Bags" does not work

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

Ytm wrote:how about sandbox? It seems that in this scenario "Big Bags" does not work
Bigbags only works on a real character's player.
When you are in sandbox, you do not have a character, your are in god mode, flying all around.
God's mode inventory size is not editable as dev said in this post.
Sorry. ;)
My mods on the Factorio Mod Portal :geek:

Therkaz
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun May 01, 2016 8:08 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by Therkaz »

When starting the game with your mod enabled, I get the following error:

data-final-fixes.lua:19: attempt to compare number with strings

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

Therkaz wrote:When starting the game with your mod enabled, I get the following error:
data-final-fixes.lua:19: attempt to compare number with strings
Strange. Did you edit the code by yourself ? What are the other mods you are running ?
Does anyone else gets this error ?
My mods on the Factorio Mod Portal :geek:

kunkka
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun May 01, 2016 12:51 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by kunkka »

Hello!

Thanks for the great mod!

How can I add more logistics slot? I want to keep the vanilla stack sizes but double the inventory / logistic slots / logistic trash sizes (like on the mod screenshot).
I can't find this in the config file and with the mod installed I have only the default slot number except the inventory.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

kunkka wrote:Hello!

Thanks for the great mod!

How can I add more logistics slot? I want to keep the vanilla stack sizes but double the inventory / logistic slots / logistic trash sizes (like on the mod screenshot).
I can't find this in the config file and with the mod installed I have only the default slot number except the inventory.
You don't have to edit the files.

You have to make the corresponding researches of the next tiers in your research panel, and everything will appear. But it's not free ! :D
My mods on the Factorio Mod Portal :geek:

Therkaz
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun May 01, 2016 8:08 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by Therkaz »

binbinhfr wrote:
Therkaz wrote:When starting the game with your mod enabled, I get the following error:
data-final-fixes.lua:19: attempt to compare number with strings
Strange. Did you edit the code by yourself ? What are the other mods you are running ?
Does anyone else gets this error ?
No, I didn't change anything on the code. My other mods are: air-filtering and Yuoki

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

Therkaz wrote: No, I didn't change anything on the code. My other mods are: air-filtering and Yuoki
Air-filtering does not seem to interfere.

Yuoki creates the error :
In one of its lua module, yuoki writes
data.raw["item"]["stone"].stack_size="100"
It should be an integer, not a string, that's what it is interfering with my mod.
I just asked Yuoki why he wrote that way, if it's a trick or if it's an error.

For the moment and untill his answer, please replace this file :
data-final-fixes.lua
(1.5 KiB) Downloaded 116 times
but note that all resources stack (coal, stone, ores) will be fixed to 100.
My mods on the Factorio Mod Portal :geek:

Therkaz
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun May 01, 2016 8:08 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by Therkaz »

binbinhfr wrote:
Therkaz wrote: No, I didn't change anything on the code. My other mods are: air-filtering and Yuoki
Air-filtering does not seem to interfere.

Yuoki creates the error :
In one of its lua module, yuoki writes
data.raw["item"]["stone"].stack_size="100"
It should be an integer, not a string, that's what it is interfering with my mod.
I just asked Yuoki why he wrote that way, if it's a trick or if it's an error.

For the moment and untill his answer, please replace this file :
data-final-fixes.lua
but note that all resources stack (coal, stone, ores) will be fixed to 100.
That worked. Thanks!

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

Therkaz wrote:That worked. Thanks!
Yuoki is looking at his code to see if he can correct the problem in a cleaner way.
My mods on the Factorio Mod Portal :geek:

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

Yuoki just PM me that he released a new version with the needed correction. So you should download his v0.2.45 .
My mods on the Factorio Mod Portal :geek:

User avatar
MiniMe943
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Mon Mar 02, 2015 5:24 am
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by MiniMe943 »

Whenever I try changing the config to use the option that doesn't change stack sizes, i.e. my_stack_offset = 0 and my_stack_factor = 1, I get an error saying "data-final-fixes.lua.5: attempt to perform arithmetic on local 'factor' (a nil value)".

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Big Bags 1.0.8

Post by binbinhfr »

MiniMe943 wrote:Whenever I try changing the config to use the option that doesn't change stack sizes, i.e. my_stack_offset = 0 and my_stack_factor = 1, I get an error saying "data-final-fixes.lua.5: attempt to perform arithmetic on local 'factor' (a nil value)".
Hi,

it works for me...
did you comment/uncomment the right lines ? like this :

Code: Select all

my_inventory_size = 170       -- should be a multiple of 10

-- changes stack size for every item
-- (formula : new_stack_size = my_stack_offset + my_stack_factor * old_stack_size)

-- my_stack_offset = 0	   		-- multiply every stack size by 10
-- my_stack_factor = 10	  	

-- my_stack_offset = 500	-- set every stack size to 500 (old setting in v1.0.5)
-- my_stack_factor = 0			 

-- my_stack_offset = 100	-- multiply every stack size by 5 and add 100
--- my_stack_factor = 5  	

my_stack_offset = 0		-- does not change anything
my_stack_factor = 1  	

-- changes default magazine size for every ammo
my_mag_offset = 0             
my_mag_factor = 10			 

my_default_req_amount = 1	  -- to change default request amount in character logistic slots

my_running_speed_factor = 1   -- multiplicative factor, if > 1, your running speed is increased

Plz, tell me if you solve the problem.
My mods on the Factorio Mod Portal :geek:

Post Reply

Return to “Mods”