Don't remove route tracks in scenery processor script

This commit is contained in:
dominik-korsa 2025-07-12 21:43:26 +02:00
parent 3ae1827d10
commit 7d36835b28
No known key found for this signature in database
GPG Key ID: 5A24D76EE0A30974

View File

@ -7,22 +7,24 @@ import sys
# v1.4
#
BAD_WORDS = ['Empty,Empty', 'Forest Start,Forest Start', 'EndMiscGroup', 'Fence', 'TerrainPoint', 'Wires']
BAD_WORDS = ['EndMiscGroup', 'Fence', 'TerrainPoint', 'Wires']
def should_exclude(line: str) -> bool:
for word in BAD_WORDS:
if line.startswith(word):
return True
if line.startswith("Misc"):
values = line.split(';')
return not values[2].startswith("SignalBox")
return False
def process_file(file_path: str):
if not file_path.endswith(".sc"):
print(f"Skipping non-.sc file: {file_path}")
return
if file_path.endswith(".lite.sc"):
print(f"Skipping already processed file: {file_path}")
return