Page 1 of 1

Stack size overrides.

Posted: Mon Jul 18, 2016 2:15 pm
by OzHawkeye
I was going through the various configuration files and was amending stack sizes in preparation to play a game where I was just going to go nuts collecting ores, and I've run into a problem.

According to PowerGREP the only reference to "solid-fuel" with a stack_size is in the \data\base\prototypes\item\item.lua where it is set to 100.

However, it's now stacking to 20,000, preventing me from auto-loading trains with solid-fuel. Yet, when I use PowerGREP on all the Bob's mod files, it finds no reference to solid-fuel setting any override value of 20,000, so, as best I can see, solid-fuel should be stacking to 100.

Is there anywhere in Bob's mods where an override stack value is used that could be overriding the base item.lua file?

Re: Stack size overrides.

Posted: Mon Jul 18, 2016 2:25 pm
by bobingabout
Nope. Not for solid-fuel anyway.

There are a few stack size over-rides dotted around the place, but usually for ores, stone and coal, setting them all to 200 and wood and raw-wood, doubling their stack size. As for where they are... check ores, plates, electronics and maybe greenhouse. I know I override them, but can't remember where exactly.

Re: Stack size overrides.

Posted: Mon Jul 18, 2016 2:47 pm
by Arch666Angel
bobingabout wrote:Nope. Not for solid-fuel anyway.

There are a few stack size over-rides dotted around the place, but usually for ores, stone and coal, setting them all to 200 and wood and raw-wood, doubling their stack size. As for where they are... check ores, plates, electronics and maybe greenhouse. I know I override them, but can't remember where exactly.
Image

Re: Stack size overrides.

Posted: Mon Jul 18, 2016 5:17 pm
by orzelek
You can try BigBags mod that will multiply and/or set stack sizes for you based on config file parameters.
Mush easier then trying to edit mods to change stack sizes.

Re: Stack size overrides.

Posted: Mon Jul 18, 2016 11:18 pm
by OzHawkeye
Thanks for the replies everyone. I actually found the issue this morning when I tried to restore the items.lua file from the original steam installation.

I copy the game out of steam into a new directory, so that if steam updates the game, the copy I'm running doesn't update. This works for all other steam games, however I've now found that even doing this, the new installation (installed into F:\Games\Factorio 138), still refers back to the steam installation (F:\Steam\SteamApps\Common\Factorio) configuration files.

All the changes I made to the lua fils in the separate installation have (somehow!) been replicated back into the configuration files in the Steam directory, including the change that inadvertently increased the solid_fuel stack_size to 20,000. When I changed that back to 100, it properly stacked again to 100.

Re: Stack size overrides.

Posted: Tue Jul 19, 2016 12:09 am
by Nexela
I copy the game out of steam into a new directory, so that if steam updates the game, the copy I'm running doesn't update. This works for all other steam games, however I've now found that even doing this, the new installation (installed into F:\Games\Factorio 138), still refers back to the steam installation (F:\Steam\SteamApps\Common\Factorio) configuration files.
Factorio steam and exe installer save everything in %appdata%/factorio due to write restrictions on program files directory (typical default install directory), While you can get around this in a couple of ways the easiest would be to download the .zip version from factorio.com


Other options:
Delete %appdata%/factorio/config.lua
and change the bottom of /factorio 138/config-path.cfg to false

Re: Stack size overrides.

Posted: Tue Jul 19, 2016 12:46 am
by OzHawkeye
Nexela wrote:
I copy the game out of steam into a new directory, so that if steam updates the game, the copy I'm running doesn't update. This works for all other steam games, however I've now found that even doing this, the new installation (installed into F:\Games\Factorio 138), still refers back to the steam installation (F:\Steam\SteamApps\Common\Factorio) configuration files.
Factorio steam and exe installer save everything in %appdata%/factorio due to write restrictions on program files directory (typical default install directory), While you can get around this in a couple of ways the easiest would be to download the .zip version from factorio.com


Other options:
Delete %appdata%/factorio/config.lua
and change the bottom of /factorio 138/config-path.cfg to false
I'll definitely need to do this - I wouldn't want any steam-initiated Factorio update to overwrite the changes I've made to the base configuration files. I'll do this after work tonight.