From bb423fa522b6ff01e6bc50f60cb2962e3976d8dd Mon Sep 17 00:00:00 2001 From: Cooliebruv Date: Tue, 23 Sep 2025 12:23:10 +0300 Subject: [PATCH 1/4] Update combine.lua --- combine.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/combine.lua b/combine.lua index 3253d28db3..dca84678b6 100644 --- a/combine.lua +++ b/combine.lua @@ -9,6 +9,7 @@ local opts, args = { types = nil, quiet = false, verbose = 0, + override = nil, }, {...} -- TODO: @@ -169,6 +170,10 @@ local function stack_type_new(type_vals) stack_type[k] = v end + if opts.override then + stack_type.max_stack_qty = opts.override + end + -- item info stack_type.comp_items = CList:new() -- key:comp_key, val:comp_item stack_type.item_qty = 0 -- total quantity of items types @@ -785,6 +790,7 @@ local function parse_commandline(opts, args) {'d', 'dry-run', handler=function() opts.dry_run = true end}, {'q', 'quiet', handler=function() opts.quiet = true end}, {'v', 'verbose', hasArg=true, handler=function(optarg) opts.verbose = math.tointeger(optarg) or 0 end}, + {'o', 'override', hasArg=true, handler=function(optarg) opts.override = math.tointeger(optarg) or 0 end} }) -- if stockpile option is not specificed, then default to all From c58cc30d138d87054f3507065f4a7984eac3573e Mon Sep 17 00:00:00 2001 From: Cooliebruv Date: Tue, 23 Sep 2025 12:28:05 +0300 Subject: [PATCH 2/4] Update combine.rst --- docs/combine.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/combine.rst b/docs/combine.rst index 9a0ec5f530..906e2ab305 100644 --- a/docs/combine.rst +++ b/docs/combine.rst @@ -68,6 +68,9 @@ Options ``-v``, ``--verbose n`` Print verbose output for debugging purposes, n from 1 to 4. +``-o``, ``--override n`` + Override the default max stack qty. + Notes ----- From cf7bbf84198e2e7a9a514a4f9cbedf45d75a0457 Mon Sep 17 00:00:00 2001 From: Cooliebruv Date: Tue, 23 Sep 2025 12:40:09 +0300 Subject: [PATCH 3/4] Update changelog.txt --- changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.txt b/changelog.txt index 5ecf8024e1..8b0e0f79dc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -29,6 +29,7 @@ Template for new versions: ## New Tools ## New Features +- `combine`: added functionality to override the max stack quantity ## Fixes From f43daad4c9eb08236fda905b1b35d9d3d35320c7 Mon Sep 17 00:00:00 2001 From: Cooliebruv Date: Tue, 23 Sep 2025 12:41:05 +0300 Subject: [PATCH 4/4] Update combine.lua --- combine.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/combine.lua b/combine.lua index dca84678b6..1b584e4cd3 100644 --- a/combine.lua +++ b/combine.lua @@ -19,7 +19,6 @@ local opts, args = { -- - Combine partial bars in smelters. -- - Combine thread, quality of thread. -- - Quality for food, currently ignoring. --- - Override stack size; armok option. -- - Override container limits; quantum containers armok option. -- list of types that use race and caste