Construction Planner Continued

by azaghal

Ghosts require player's approval before construction bots are dispatched. This gives the player improved control over what parts of the factory get built, and when.

Utilities
5 hours ago
1.1 - 2.0
2.56K
Logistic network Blueprints

Changelog

Version: 4.0.5
Date: 2024-11-06
  Bugfixes:
    - Fixed tiles getting removed from created/updated blueprints when using unapproved ghosts.
    - Fixed crash when using super-forced build on top of unapproved ghosts. Performance issues can be encountered when working with blueprint books due to modding API limitations. A warning will be reported to player if the implemented workaround was not sufficient.
Version: 4.0.4
Date: 2024-11-01
  Bugfixes:
    - Fixed crash when modifying undo stack that contains actions without direct target (like adding wire or building a tile).
Version: 4.0.3
Date: 2024-11-01
  Bugfixes:
    - Fixed crash when technology is researched with a force that has not created any unapproved ghosts yet.
Version: 4.0.2
Date: 2024-10-31
  Bugfixes:
    - Fixed missing recipes in machines for unapproved ghost force.
Version: 4.0.1
Date: 2024-10-27
  Bugfixes:
    - Fixed crash when running migrations for storing approval badges as objects.
Version: 4.0.0
Date: 2024-10-26
  Changes:
    - Dropped support for game version 1.1.
    - Deconstruction planners from library are now fully supported for deconstructing unapproved ghosts.
    - Default control for construction planner has been changed to SHIFT + C to avoid collision with vanilla copper wire connection mode one.
    - Auto-approval is now by default enabled in the player settings. Previously it was disabled. This should reduce confusion for new mod users. Setting can still be changed and toggled via shortcut as in previous versions.
  Features:
    - Added support for game version 2.0.
  Bugfixes:
    - Fixed incorrect shortcut state when starting new game or when new players join the game.
Version: 3.0.1
Date: 2024-06-30
  Bugfixes:
    - Workaround for "Request from buffer chests" option not getting preserved during approvals/unapprovals (vanilla bug/behaviour).
Version: 3.0.0
Date: 2024-06-24
  Changes:
    - Construction planner tool highlights and counts affected (unapproved) ghosts instead of placeholder ghosts. Works with both approval and unapproval.
    - Construction planner tool highlights affected ghosts using red outline (similar to what other vanilla planners do) instead of green.
    - Base game version requirement bumped to 1.1.86.
  Bugfixes:
    - Fixed entity duplication when blueprinting unapproved ghosts (due to changes introduced in Factorio 1.1.86).
Version: 2.0.0
Date: 2022-10-19
  Changes:
    - Deconstruction planners from library no longer deconstruct unapproved ghosts.
  Bugfixes:
    - Fixed crash when player deconstructs area with deconstruction planner from game/player library due to mismatch between deconstruction force and player force.
Version: 1.3.2
Date: 2022-08-08
  Bugfixes:
    - Fixed crash when player places a bluperint using blueprint book from inventory.
Version: 1.3.1
Date: 2022-08-07
  Bugfixes:
    - Fixed placeholders staying behind when canceling deconstruction of entities that do not overlap with the placeholder entity itself.
    - Fixed placeholders staying behind when "quick-building" rails.
    - Fixed undo queue with unapproved ghosts not being preserved correctly when canceling deconstruction.
Version: 1.3.0
Date: 2022-08-03
  Features:
    - Unapproved underground belts and their non-unapproved counterparts can now be rotated together, with some caveats in logic.
  Bugfixes:
    - Fixed underground belts pairing-up (for rotation/direction purposes) with orthogonal counterparts.
    - Fixed underground belt not pairing-up correctly with existing unapproved underground belts.
    - Fixed (hard) crash when undoing changes after the deconstruction planner has been used against area with tiles.
    - Fixed tiles getting deconstruction orders when using deconstruction planner.
    - Fixed accidental approvals when drag-building "gappable" entities (underground belts an pipes, electric poles) over unapproved ghosts.
    - Fixed placeholders staying behind when player is building on top of unapproved ghosts if replacement entity does not have the same center as the unapproved ghost.
Version: 1.2.0
Date: 2022-07-31
  Features:
    - Addition of /cp_cleanup console command that can be used to clean-up some inconsistencies in the savegame related to construction planner. Make sure to backup the savegame before using.
  Bugfixes:
    - Fixed unapproved underground belts reversing when connecting to existing (approved/unapproved) underground belts.
    - Fixed deconstruction planner handling to avoid marking wrong entities for deconstruction (cliffs, fish, filtered entities if deconstruction planne is used from inventory).
    - Fixed deconstruction planner handling to avoid creating uncancelable deconstruction orders for the unapproved ghost force.
    - Fixed issue where copying/blueprinting a mix of approved ghosts and unapproved ghosts would in some cases result in unapproved ghosts being dropped from the resulting blueprint.
Version: 1.1.2
Date: 2022-07-30
  Bugfixes:
    - Fixed crash when undoing ghost placement if player is not holding anything in hand.
    - Fixed deconstruction of landscape (trees, rocks, cliffs) when using cut-and-paste.
    - Fixed uncancelable deconstruction requests when using cut-and-paste tool or deconstruction planner.
Version: 1.1.1
Date: 2022-07-30
  Bugfixes:
    - Fixed crash when requesting deconstruction at beginning of the game (when unapproved ghost force has not been created yet).
Version: 1.1.0
Date: 2022-07-19
  Features:
    - Removal of unapproved ghosts using deconstruction planner can now be undone using standard game controls (Control + Z).
    - Removal of unapproved ghosts using cut-and-paste tool can now be undone using standard game controls (Control + Z).
  Bugfixes:
    - Ignore ghost entitites that are marked as non-selectable. Fixes phantom ghosts when used with Tapeline mod. Permanent tapelines would leave "phantom" ghosts otherwise.
    - Do not auto-approve ghosts when using selection tools that place entities that are not selectable in the game. Those are usually used for special purposes by mods that build them. Fixes issues with selection tool from Tapeline mod approving the ghosts when dragged over them.
    - Fixed unselectable unapproved ghost entities when player invokes undo on a removed unapproved ghost entity.
    - Fixed accidental approvals when placing ghosts by quickly dragging across the screen.
Version: 1.0.5
Date: 2021-10-17
  Features:
    - Construction planner tool now has a hotkey (default Alt + C)
    - Auto-approval mod setting now has a toolbar shortcut and a hotkey (default Shift + Alt + C)
Version: 1.0.4
Date: 2021-10-09
  Bugfixes:
    - Fixed an issue with copying/blueprinting of ghost circuit connection data
    - Fixed a compatibility issue between this mod and the Creative Mod instant blueprint feature
Version: 1.0.3
Date: 2021-10-05
  Bugfixes:
    - Fixed a crash introduced by the previous version
Version: 1.0.2
Date: 2021-10-04
  Bugfixes:
    - Hand-placing assemblers, etc. on top of unapproved ghosts will now preserve the ghost recipe, same as vanilla ghosts
Version: 1.0.1
Date: 2021-10-02
  Bugfixes:
    - Ghosts from destroyed entities are now ignored by the approval tool (they will be rebuilt without approval)
Version: 1.0.0
Date: 2021-10-01
  Other:
    - First mod release!