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
1 year, 6 months ago
1.1
1.56K

Changelog

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!