mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-28 05:12:27 +00:00
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:
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.10mm Standard @Eryone ER20 0.2 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_common",
|
||||
"setting_id": "mN66BkXzUCaGGkZ5",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.14"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.20mm Standard @Eryone ER20",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_common",
|
||||
"setting_id": "7Hs87Tz3oMj8YGLU",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.32"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.25mm Standard @Eryone ER20 0.5 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_common",
|
||||
"setting_id": "8AfjLDQQXEAnxuQ7",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.38"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.30mm Standard @Eryone ER20 0.6 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_common",
|
||||
"setting_id": "8USSZMCTCDoHK55n",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.42"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.40mm Standard @Eryone ER20 0.8 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_common",
|
||||
"setting_id": "JWFQL6GvDRJk46i7",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.56"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.10mm Standard @Eryone ER20 Klipper 0.2 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_Klipper_common",
|
||||
"setting_id": "dUHn8STOXHOXD63f",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.14"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.20mm Standard @Eryone ER20 Klipper",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_Klipper_common",
|
||||
"setting_id": "xp3wEd41u0J6bR65",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.32"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.25mm Standard @Eryone ER20 Klipper 0.5 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_Klipper_common",
|
||||
"setting_id": "5zuzTKyILhVSA5J5",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.38"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.30mm Standard @Eryone ER20 Klipper 0.6 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_Klipper_common",
|
||||
"setting_id": "LCVtRqmtH6YySurQ",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.42"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
"default_print_profile": "0.40mm Standard @Eryone ER20 Klipper 0.8 nozzle",
|
||||
"from": "system",
|
||||
"inherits": "fdm_machine_eryone_ER20_Klipper_common",
|
||||
"setting_id": "eMvz9rZXfWxXvuva",
|
||||
"instantiation": "true",
|
||||
"max_layer_height": [
|
||||
"0.56"
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"from": "system",
|
||||
"name": "Thinker X400 0.2 nozzle",
|
||||
"inherits": "Thinker X400 0.4 nozzle",
|
||||
"setting_id": "GM0032",
|
||||
"setting_id": "hMvy9QaXQyM7tGke",
|
||||
"instantiation": "true",
|
||||
"printer_model": "Thinker X400",
|
||||
"default_print_profile": "0.10mm Standard @Thinker X400 0.2 nozzle",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"type": "machine",
|
||||
"name": "Thinker X400 0.4 nozzle",
|
||||
"from": "system",
|
||||
"setting_id": "GM003",
|
||||
"setting_id": "iOmDPImz2E66SIpL",
|
||||
"instantiation": "true",
|
||||
"printer_model": "Thinker X400",
|
||||
"default_print_profile": "0.20mm Standard @Thinker X400",
|
||||
|
||||
Reference in New Issue
Block a user