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
parent 8ccae50e1b
commit 6d7eeb89dc
7876 changed files with 8152 additions and 6541 deletions

View File

@@ -3,7 +3,7 @@
"name": "Anycubic 4Max Pro 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM003",
"setting_id": "jEkuUvCQyBNL2MFy",
"instantiation": "true",
"printer_model": "Anycubic 4Max Pro",
"default_print_profile": "0.20mm Standard @Anycubic 4MaxPro",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic 4Max Pro 2 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "SzWHDonRrgyHlGEW",
"instantiation": "true",
"printer_model": "Anycubic 4Max Pro 2",
"default_print_profile": "0.20mm Standard @Anycubic 4MaxPro2",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Chiron 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "l7eK78cq6VEaMYfb",
"instantiation": "true",
"printer_model": "Anycubic Chiron",
"default_print_profile": "0.20mm Standard @Anycubic Chiron",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "nyudbXDikl51Tr9N",
"instantiation": "true",
"printer_model": "Anycubic Kobra",
"default_print_profile": "0.20mm Standard @Anycubic Kobra",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 2 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "A5NqCueiXvqICdAN",
"instantiation": "true",
"printer_model": "Anycubic Kobra 2",
"default_print_profile": "0.20mm Standard @Anycubic Kobra2",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 2 Max 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM003",
"setting_id": "vp0DZVLgGGz8clHc",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 2 Max 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 2 Neo 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM005",
"setting_id": "LIsjlFTwoNWK2WyU",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 2 Neo 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 2 Plus 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM004",
"setting_id": "9nAwSZ5vXCWD9qnT",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 2 Plus 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 2 Pro 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM002",
"setting_id": "yQ1l7ZmiAu0DyGxR",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 2 Pro 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 0.2 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "N1JltE63FhgypxCh",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 0.2 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "E1yQxO2andqiuIIv",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 0.6 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "1jaDeBe7CJNcv9jW",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 0.6 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 0.8 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "oSz15RnEtcH6vjxN",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 0.8 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 Max 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM007",
"setting_id": "lj7NBHJtE1211s3A",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 Max 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 Max 0.6 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM007",
"setting_id": "7Soa9b5ZLJGE4azO",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 Max 0.6 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra 3 Max 0.8 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM007",
"setting_id": "eIkFSkCh3UahGLAF",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra 3 Max 0.8 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra Max 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "Gtfgaixnuy5sZZED",
"instantiation": "true",
"printer_model": "Anycubic Kobra Max",
"default_print_profile": "0.20mm Standard @Anycubic KobraMax",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra Neo 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM005_kobra_neo",
"setting_id": "OYpKGADZU98KNq2m",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra Neo 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra Plus 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "6P8w81ez1853W0NK",
"instantiation": "true",
"printer_model": "Anycubic Kobra Plus",
"default_print_profile": "0.20mm Standard @Anycubic KobraPlus",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra S1 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "IfuZplbodKgggoSZ",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra S1 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra S1 Max 0.25 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "Anycubic Kobra S1 Max 0.25 nozzle",
"setting_id": "Puudpg2z8v7I6IQA",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra S1 Max 0.25 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra S1 Max 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "Anycubic Kobra S1 Max 0.4 nozzle",
"setting_id": "gI3IJRLKNc1fyiO6",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra S1 Max 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra S1 Max 0.6 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "Anycubic Kobra S1 Max 0.6 nozzle",
"setting_id": "p7ilBBLpGn5OYr2e",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra S1 Max 0.6 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra S1 Max 0.8 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "Anycubic Kobra S1 Max 0.8 nozzle",
"setting_id": "eD3ZKZ62sl6JMvUr",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra S1 Max 0.8 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Kobra X 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM040",
"setting_id": "tNXmqWS23vQPHt5Y",
"instantiation": "true",
"printer_technology": "FFF",
"printer_settings_id": "Anycubic Kobra X 0.4 nozzle",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Predator 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM003",
"setting_id": "MwdK4pzPlNcVU3eW",
"instantiation": "true",
"printer_model": "Anycubic Predator",
"default_print_profile": "0.20mm Standard @Anycubic Predator",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic Vyper 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "4dZHITQQJ9IB8MHj",
"instantiation": "true",
"printer_model": "Anycubic Vyper",
"default_print_profile": "0.20mm Standard @Anycubic Vyper",

View File

@@ -3,7 +3,7 @@
"name": "Anycubic i3 Mega S 0.4 nozzle",
"inherits": "fdm_machine_common",
"from": "system",
"setting_id": "GM001",
"setting_id": "5dhgi6AGtzKSrNiD",
"instantiation": "true",
"printer_model": "Anycubic i3 Mega S",
"default_print_profile": "0.20mm Standard @Anycubic i3MegaS",