Thruster control behavior

by Quezler

Allows you to enable/disable thrusters with circuits, as well as toggle them by hand.

Utilities
3 days ago
2.0
572
Factorio: Space Age Icon Space Age Mod
Transportation Logistics Fluids Circuit network

Changelog

Version: 1.0.10
Date: 2024. 12. 15
  Info:
    - Fix hub storage size alert whilst a thruster ghost is active
Version: 1.0.9
Date: 2024. 12. 09
  Info:
    - Require 2.0.24 for https://forums.factorio.com/121817
Version: 1.0.8
Date: 2024. 11. 24
  Info:
    - Use player.selected instead of include_selected_prototype
    - Fix crash when trying to mine the control ghost if the thruster wasn't "created first"
Version: 1.0.7
Date: 2024. 11. 18
  Info:
    - See if preventing double opening a gui makes it show once
Version: 1.0.6
Date: 2024. 11. 18
  Info:
    - Log player.opened too
Version: 1.0.5
Date: 2024. 11. 18
  Info:
    - Add some debug logging
Version: 1.0.4
Date: 2024. 11. 18
  Info:
    - Support opening thruster control behavior by clicking a thruster
    - Tint the vent red/green depending on the state
Version: 1.0.3
Date: 2024. 11. 17
  Info:
    - Fix a crash when mining a ghost? weird that it didn't come up earlier
Version: 1.0.2
Date: 2024. 11. 17
  Info:
    - Fix crash in surface_find_entity_or_ghost upon platform destruction
Version: 1.0.1
Date: 2024. 11. 17
  Info:
    - Fix crash when deathrattling an offering after the thruster got removed
    - Fix manual control being broken by code added later
Version: 1.0.0
Date: 2024. 11. 17
  Info:
    - Mod portal release
Version: 0.0.4
Date: 2024. 11. 17
  Info:
    - Support copying thrusters onto thrusters
    - Prevent the gui horizontally stretching when a circuit/logistics panel was open
    - Setup the hidden surface as a planet
    - Attempt to set lava tiles to dispose of the picked up item (fails because tiles get reset)
    - Setup burner inserters on the hidden surface
    - Switch the burner inserter to a powered inserter
    - Create the offering, and toggle the thruster when it is taken
    - Attempt to invert the condition
    - Try to prevent the offering from happening twice
    - Well this does jack shit it seems
    - Final code sweep pre-launch
    - Fix thruster staying offline when disabeling the checkbox
Version: 0.0.3
Date: 2024. 11. 17
  Info:
    - Setup the thumbnail
    - Some sanity checks before i continue
    - New thruster control behaviors default to on
    - Set the thruster status based on the power switch state
    - Remove a race condition assert and hope its fine
    - Debug consistency issues
    - Cleanup consistency debugging
    - Add fake confirm button to convey settings do not apply until the gui closes
Version: 0.0.2
Date: 2024. 11. 17
  Info:
    - Update circuit connector
    - Give the control behavior a texture
    - Fix circuit connector being drawn under the engine
    - Align the circuit connections with the sprite
    - Just listen to all the events in case of editor/character building
    - Remove the connector when the thruster dies
    - Support adopting an upgraded/ghost thruster
    - Fix thruster control behavior finder using the wrong position
    - Prevent control behavior ghosts existing without a thruster
    - Allow the control behavior to only exist at its exact thruster offset
    - If the thruster is a ghost, make a ghost connector
    - When the thruster dies, kill the connector
    - And when a thruster gets revived, revive the control behavior too
    - Prevent the user from mining the connector ghost
    - Do it more legantly
Version: 0.0.1
Date: 2024. 11. 17
  Info:
    - Initial commit