profiles: deterministic setting_id from vendor/type/name (#14432)

* profiles: enforce globally-unique, per-vendor-namespaced setting_id

Many non-Bambu vendors copied Bambu's generic setting_ids (GFSA04 alone
appeared in 1557 files), so setting_id was not globally unique. This
namespaces every vendor's ids and reserves Bambu/OrcaFilamentLibrary space.

- Reserve "G*" (Bambu) and "O*" (OrcaFilamentLibrary) id spaces.
- Assign each other vendor a 2-char prefix (first+last letter, collision
  resolved) and renumber every instantiated preset to <PREFIX><NNNN>.
- Strip setting_id from base profiles (instantiation:false) per Bambu's
  convention; assign one to instantiated presets that lacked it.
- Remove the pre-existing misspelled "settings_id" key (91 files).
- filament_id is left untouched (it is a per-material id).
- Add one-time migration script scripts/assign_vendor_setting_ids.py with a
  persisted registry resources/profiles/vendor_prefixes.json. Re-runs freeze
  existing ids; only new vendors/profiles get new ids.
- Bump version in each changed vendor index file.
- Extend scripts/orca_extra_profile_check.py with a CI guard: global
  uniqueness, in-namespace, no base setting_id, no gaps, no settings_id typo.

7425 profile files changed across 61 vendors; 0 cross-vendor collisions;
validator clean; migration idempotent. BBL and OrcaFilamentLibrary id spaces
untouched.

* profiles: add setting_id authoring guide for new vendors / profiles

* profiles: drop in-repo README; setting_id guide now lives in the wiki

* profiles: derive setting_id deterministically from vendor/type/name

* bump profile version
This commit is contained in:
SoftFever
2026-06-27 20:11:25 +08:00
committed by GitHub
parent 3b58217b47
commit 8cb2e4e01e
7876 changed files with 8152 additions and 6541 deletions

View File

@@ -4,7 +4,7 @@
"inherits": "Generic ABS @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS;Generic ABS @Z-Bolt;Z-Bolt ABS @0.4 nozzle",
"from": "system",
"setting_id": "GFSL204",
"setting_id": "p97bQCnVyGgwMn2y",
"filament_id": "GFL204",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic ABS @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS @0.6 nozzle",
"from": "system",
"setting_id": "GFSL206",
"setting_id": "BQdgCL8lvVW7I8Dw",
"filament_id": "GFL206",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic ABS @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS @0.8 nozzle",
"from": "system",
"setting_id": "GFSL208",
"setting_id": "Xn2L7IBp26Bb6G2K",
"filament_id": "GFL208",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,6 @@
"inherits": "fdm_filament_abs",
"renamed_from": "Z-Bolt ABS;Generic ABS @Z-Bolt",
"from": "system",
"setting_id": "GFSL200",
"filament_id": "GFL200",
"instantiation": "false",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic ABS HT @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS HT;Generic ABS HT @Z-Bolt;Z-Bolt ABS HT @0.4 nozzle",
"from": "system",
"setting_id": "GFSL504",
"setting_id": "TDGj84iuRAL9R1d4",
"filament_id": "GFL504",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic ABS HT @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS HT @0.6 nozzle",
"from": "system",
"setting_id": "GFSL506",
"setting_id": "2AKxm2VhVlL2vMM1",
"filament_id": "GFL506",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic ABS HT @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS HT @0.8 nozzle",
"from": "system",
"setting_id": "GFSL508",
"setting_id": "ztusMudd96Ns3Ip0",
"filament_id": "GFL508",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,6 @@
"inherits": "Generic ABS @Z-Bolt Base",
"renamed_from": "Z-Bolt ABS HT;Generic ABS HT @Z-Bolt",
"from": "system",
"setting_id": "GFSL500",
"filament_id": "GFL500",
"instantiation": "false",
"description": "Use this filament profile to print big ABS models with chamber heating",

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PA @Z-Bolt Base",
"renamed_from": "Z-Bolt PA;Generic PA @Z-Bolt;Z-Bolt PA @0.4 nozzle",
"from": "system",
"setting_id": "GFSL404",
"setting_id": "zuvJBWxHOiPMyExQ",
"filament_id": "GFL404",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PA @Z-Bolt Base",
"renamed_from": "Z-Bolt PA @0.6 nozzle",
"from": "system",
"setting_id": "GFSL406",
"setting_id": "MB0n4BeDFEI25yTe",
"filament_id": "GFL406",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PA @Z-Bolt Base",
"renamed_from": "Z-Bolt PA @0.8 nozzle",
"from": "system",
"setting_id": "GFSL408",
"setting_id": "WZc4C1f6cPG8HZR3",
"filament_id": "GFL408",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,6 @@
"inherits": "fdm_filament_pa",
"renamed_from": "Z-Bolt PA;Generic PA @Z-Bolt",
"from": "system",
"setting_id": "GFSL400",
"filament_id": "GFL400",
"instantiation": "false",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PETG @Z-Bolt Base",
"renamed_from": "Z-Bolt PETG;Generic PETG @Z-Bolt;Z-Bolt PETG @0.4 nozzle",
"from": "system",
"setting_id": "GFSL304",
"setting_id": "LWwbNXs8bf1iGELi",
"filament_id": "GFL304",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PETG @Z-Bolt Base",
"renamed_from": "Z-Bolt PETG @0.6 nozzle",
"from": "system",
"setting_id": "GFSL306",
"setting_id": "w4HVBbunzssG9j3s",
"filament_id": "GFL306",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PETG @Z-Bolt Base",
"renamed_from": "Z-Bolt PETG @0.8 nozzle",
"from": "system",
"setting_id": "GFSL308",
"setting_id": "TnLZ0vOVjIjng3u0",
"filament_id": "GFL308",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,6 @@
"inherits": "fdm_filament_pet",
"renamed_from": "Z-Bolt PETG;Generic PETG @Z-Bolt",
"from": "system",
"setting_id": "GFSL300",
"filament_id": "GFL300",
"instantiation": "false",
"fan_cooling_layer_time": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PLA @Z-Bolt Base",
"renamed_from": "Z-Bolt PLA;Generic PLA @Z-Bolt;Z-Bolt PLA @0.4 nozzle",
"from": "system",
"setting_id": "GFSL100",
"setting_id": "0MfamDPH1L6sMRff",
"filament_id": "GFL100",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PLA @Z-Bolt Base",
"renamed_from": "Z-Bolt PLA @0.6 nozzle",
"from": "system",
"setting_id": "GFSL106",
"setting_id": "tdq9Ye9GLpZXlak6",
"filament_id": "GFL106",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,7 @@
"inherits": "Generic PLA @Z-Bolt Base",
"renamed_from": "Z-Bolt PLA @0.8 nozzle",
"from": "system",
"setting_id": "GFSL108",
"setting_id": "GKtc9mJusUZJD6kx",
"filament_id": "GFL108",
"instantiation": "true",
"filament_max_volumetric_speed": [

View File

@@ -4,7 +4,6 @@
"inherits": "fdm_filament_pla",
"renamed_from": "Z-Bolt PLA;Generic PLA @Z-Bolt",
"from": "system",
"setting_id": "GFSL100",
"filament_id": "GFL100",
"instantiation": "false",
"filament_max_volumetric_speed": [