PD Craft from Chest


Adds a toggle shortcut that opens a crafting helper UI. Shows unlocked hand-craftable recipes from all mods and lets you craft using items in your inventory plus items in your current logistic network by pulling missing ingredients instantly, then queueing the craft in the vanilla crafting queue.

Content
2 days ago
2.0
32
Logistic network Storage

Changelog

Version: 0.3.40
Date: 2026-01-28
  - Added multi-request support: PD craft requests are now queued per-player and processed sequentially.
  - UI: added PD job queue panel (always accurate) plus improved vanilla crafting queue parsing.
  - Job runner: automatically starts the next queued PD job when the current one completes.
  - Cancel current PD crafting now also clears queued PD jobs and returns any unused pulled items safely.
Version: 0.3.39
Date: 2026-01-28
  - Fixed crash on craft: some Factorio builds don’t expose LuaRecipe.main_product; now accessed safely with fallbacks.

Version: 0.3.38
Date: 2026-01-28
  - Fix: add missing recipe_item_sprite helper used by the job/queue panel.

Version: 0.3.36
  Date: 2026-01-28
  Changes:
    - Fix Current PD crafting and Crafting queue panels (job summary fields + crafting_queue fallback).

Version: 0.3.35
Date: 2026-01-28
  - Fixed Lua syntax error (extra 'end') that prevented saves from loading.

Version: 0.3.34
Date: 2026-01-28
  - Fixed Current PD crafting + Crafting queue panels not updating (separated panels and reliable element lookup).
  - Crafting queue now lists all queued crafts with icon/name/count.

Version: 0.3.33
Date: 2026-01-28
  - Fix crafting queue/current crafting panel updates (robust GUI element search).

Version: 0.3.32
  Date: 2026-01-28
  Changes:
    - Fixed UI load syntax error (removed stray top-level queue code and added proper update_job_panel()).
    - Registered on_research_finished handler correctly (not nested in on_configuration_changed).

Version: 0.3.31
  Date: 2026-01-28
  Changes:
    - Fixed Total raw expansion after research unlocks (invalidate best recipe map).
    - Fixed Crafting queue list to show all queued crafts (robust iteration across versions).

Version: 0.3.30
  Date: 2026-01-28
  Changes:
    - Current crafting panel now shows full vanilla crafting queue list.

Version: 0.3.29
Date: 2026-01-28
  - Fixed Current crafting panel updating (refreshes while UI open).
  - Cancel/Job UI wiring robustness improvements.
Version: 0.3.28
Date: 2026-01-28
  Bugfixes:
    - Fix Lua syntax error on load (missing 'end' in build_gui).
Version: 0.3.27
Date: 2026-01-28
  - Fixed PD job panel + cancel button (proper GUI element names).
  - Current PD crafting now shows final target item icon + remaining count.
  - Cancel reliably stops PD crafting and returns unused pulled items via trash (no duplication).
Version: 0.3.26
Date: 2026-01-28
  Changes:
    - Added PD crafting queue panel and Cancel button.
    - Cancel safely stops PD crafting and returns unused pulled items to trash inventory (bots will return to network).
    - UI shows PD crafting steps in progress.
Version: 0.3.25
Date: 2026-01-28
  Changes:
    - Craft planning now runs in small chunks (just-in-time intermediates) to prevent massive intermediate stacks (e.g. copper cable) filling the player inventory.

Version: 0.3.24
Date: 2026-01-28
  Bugfixes:
    - Fix Lua syntax error preventing mod from loading (removed stray end)).
Version: 0.3.23
Date: 2026-01-28
  Changes:
    - Crafting now uses the vanilla manual crafting queue (with intermediates), not instant production.
    - Pulling ingredients from the logistic network now checks inventory space before removing items to prevent loss.
  Bugfixes:
    - Fix craft-job event handler registration so intermediate chains advance correctly.
Version: 0.3.22
Date: 2026-01-28
  Bugfixes:
    - Fix crash when clicking craft (missing recipe_has_random_or_variable_products helper).
Version: 0.3.21
Date: 2026-01-28
  Bugfixes:
    - Fix crash when clicking craft (missing recipe_produces_fluids helper).
    - Keep fluid recipes excluded.
Version: 0.3.20
Date: 2026-01-28
  - Fixed a Lua syntax error preventing the mod from loading.

Version 0.3.19
- Crafting no longer pulls ingredients/intermediates into player inventory; consumes from inv+logistic network and produces only final items (spills overflow).
- Fix: crafting now works reliably; intermediate chains supported without inventory-full losses.
- UI totals refresh after crafting.
Version: 0.3.18
Date: 2026-01-28
  Changes:
    - Selected recipe now shows output item icon and inv/net/total counts.
    - Craft jobs now reliably craft dependency chains (intermediates) by handling partial begin_crafting starts and retrying.
    - UI continues updating totals after crafts without resetting tabs/search.
Version: 0.3.17
Date: 2026-01-28
  Changes:
    - Refresh Inv/Net/Total and craftable counts after every craft completes (including intermediate steps).
Version: 0.3.16
Date: 2026-01-28
  Changes:
    - Fix craftable count calculation to account for intermediate crafting (uses total-raw upper bound).
    - Total raw panel now shows Inv / Net / Total counts for each raw item.

Version: 0.3.15
Date: 2026-01-27
  - Fix: intermediate crafting chain executor now works reliably (craft progress handler is registered correctly).

Version: 0.3.14
Date: 2026-01-27
  - Fix: craft intermediate items sequentially using vanilla crafting (auto-chains intermediates).
  - Fix: intermediate crafting now works for multi-step recipes.

Version: 0.3.13
Date: 2026-01-27
  - Fix crash in Total raw computation (forward-declared build_best_item_recipe_map).

Version: 0.3.12
Date: 2026-01-27
  - Fix crash when selecting recipe (use correct manual crafting speed properties).

Version: 0.3.11
Date: 2026-01-27
  Changes:
    - Added Time and Total raw panels (similar to vanilla crafting UI).
    - Added Craft x1000 and Custom amount craft (type a number and press Craft).
    - Total raw now expands intermediate recipes (no fluids), and Time reflects player crafting speed.

Version: 0.3.10
Date: 2026-01-27
  Changes:
    - Fixed crash on opening UI caused by invalid LuaStyle property 'horizontal_stretchable' (uses 'horizontally_stretchable').

Version: 0.3.9
Date: 2026-01-27
  Changes:
    - Reworked the tab strip to avoid confusing sizing; tabs are now standard icon buttons inside a framed strip.
    - Added a clear horizontal divider line between the tab strip and the recipe grid.
    - Updated tab selection visuals to match the new tab strip layout.

Version: 0.3.8
Date: 2026-01-27
  Changes:
    - Fixed crash when selecting recipes by handling get_contents() formats that return arrays (prevents numeric keys reaching item_id_key).
    - Tabs now have a light-grey framed background and are significantly larger for clearer separation from recipe icons.
    - Improved search focus stability.

Version: 0.3.7
Date: 2026-01-27
  Changes:
    - Fixed Lua syntax error preventing saves from loading (removed stray line in control.lua).

Version: 0.3.6
Date: 2026-01-27
  Changes:
    - Fixed inventory/logistic network counting to support Factorio 2.0 ItemWithQuality keys (prevents false 'not enough items').
    - Improved logistic network detection (uses surface network lookup when character.logistic_network is nil).
    - Increased tab icon size to 96x96 to be clearly larger than recipe icons.

Version: 0.3.4
Date: 2026-01-27
  - Fixed syntax error in clamp_count.

Version: 0.3.3
Date: 2026-01-27
  Changes:
    - Craft now supports intermediate crafting like vanilla (uses inventory+logistics for ingredients).
    - Custom tab strip with larger icons; tab no longer resets after crafting.
    - Search box stays focused; filtering no longer rebuilds the UI.
    - Fixed missing recipes by improving hand-craft category checks and filtering.
Version: 0.3.2
Date: 2026-01-27
  Changes:
    - Added thumbnail.png and changelog.txt for Mod Portal.
    - Tabs now show item-group icons (vanilla-style).
    - Preserves selected tab when crafting; tab selection is remembered per player.
    - Excludes fluid recipes from the list.
Version: 0.3.1
Date: 2026-01-27
  Changes:
    - Removed subgroup title labels.
    - Fixed tab selection resetting and search focus issues.

Version: 0.3.5
  Date: 2026-01-27
  Changes:
    - Fix crash on opening UI on builds missing selected_slot_button style (fallback to slot_button).
Version: 0.3.37
Date: 2026-01-28
  Fixes:
    - Fix crash when crafting due to missing recipe product sprite helper in job panel.