Skip to content

Commit

Permalink
made loaded signals not dependent on configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
redruin1 committed Dec 17, 2024
1 parent 04f9f68 commit 8708b12
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions draftsman/_factorio_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# _factorio_version.py

__factorio_version__ = "2.0.24.0"
__factorio_version_info__ = (2, 0, 24, 0)
__factorio_version__ = "2.0.27.0"
__factorio_version_info__ = (2, 0, 27, 0)
Binary file modified draftsman/data/entities.pkl
Binary file not shown.
Binary file modified draftsman/data/fluids.pkl
Binary file not shown.
Binary file modified draftsman/data/instruments.pkl
Binary file not shown.
Binary file modified draftsman/data/items.pkl
Binary file not shown.
Binary file modified draftsman/data/mods.pkl
Binary file not shown.
Binary file modified draftsman/data/modules.pkl
Binary file not shown.
Binary file modified draftsman/data/recipes.pkl
Binary file not shown.
Binary file modified draftsman/data/signals.pkl
Binary file not shown.
Binary file modified draftsman/data/tiles.pkl
Binary file not shown.
8 changes: 6 additions & 2 deletions draftsman/environment/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,10 @@ def extract_signals(lua: lupa.LuaRuntime, draftsman_path: str, sort_tuple, verbo
# hidden_signals = []

def add_signals(signal_category_name, target_location, signal_type):
# Depending on configuration, some items/signals might not exist
if signal_category_name not in data.raw:
return

signal_category = convert_table_to_dict(data.raw[signal_category_name])
for signal_name in signal_category:
signal_obj = signal_category[signal_name]
Expand Down Expand Up @@ -1448,7 +1452,7 @@ def add_signals(signal_category_name, target_location, signal_type):
add_signals("pipe", entity_signals, "entity")
add_signals("pipe-to-ground", entity_signals, "entity")
add_signals("plant", entity_signals, "entity")
# add_signals("player-port", entity_signals, "entity") # Deprecated in 2.0
add_signals("player-port", entity_signals, "entity") # Deprecated in 2.0
add_signals("power-switch", entity_signals, "entity")
add_signals("programmable-speaker", entity_signals, "entity")
add_signals("projectile", entity_signals, "entity")
Expand Down Expand Up @@ -1500,7 +1504,7 @@ def add_signals(signal_category_name, target_location, signal_type):
add_signals("space-location", space_location_signals, "space-location")

# Asteroid Chunks Signals
#add_signals("asteroid-chunk", asteroid_chunk_signals, "asteroid-chunk")
add_signals("asteroid-chunk", asteroid_chunk_signals, "asteroid-chunk")

# Quality Signals
add_signals("quality", quality_signals, "quality")
Expand Down

0 comments on commit 8708b12

Please sign in to comment.