There were two other posts on this that I found but I don’t believe these ever offered up a remedy. If anyone can suggest a better way, then I would be appreciative of any suggestions
One of the many reasons I do not like to update firmware is the issues that occur soon after. I’m hoping someone out there has a much better workaround.
Please speak up and offer up a better answer if you know of one.
_________________________________________________
With updated P1P firmware my old Printer Presets now complain that the G-Code is incompatible and I am forced to bypass this message:
I am including the text so that the next person who tries to search on this might find it easier to locate this thread.
The printer type selected when generating G-Code is not consistent with the currently selected printer. It is recommended that you use the same printer type for slicing.
______________________________________________
Location of the misbehaving file. It is a .JSON file
Special Note: I am operating in LAN mode so if you’re using Bambu Handy, the target folders will likely be find in your user folder using your user number.
Depending on whether you’re running Studio or Orca WIN-R and Copy and paste this string and hit enter. It will open the folder with your user name.
%AppData%\OrcaSlicer\user\default\machine
For Bambu Studio, the folder is here.
%AppData%\bambustudio\user\default\machine
To find the file you may have to hunt for it in the “user” subfolder. Since I am in LAN mode, it placed it in the folder user\default, however, your printer setting may be located in your 10 Digit Bambu Lab USER number folder
____________________________________________________
Beginning of Janky workaround.
Disclaimer: I fully realize this is a sloppy remedy. If you have a better way…
Find the name of the printer profile that is giving you the error message.
Here’s the offending lines for the P1 series but I suppose one could do this for any printer profile.
Line 3 in the .JSON file is the one you want to change.
Change it to a known printer. In this case, my P1P upgraded firmware now tells the slicer that it is sending the file to a P1S.
End of Janky workaround.
_________________________________________________
I am sharing a sample PowerShell script intended for Power Users who are experienced with scripting and command-line tools. This script example will make the following changes to line 3 for all JSON files in the folder it is being run in:
'"inherits": "Bambu Lab P1P 0.4 nozzle",'
to:
'"inherits": "Bambu Lab P1S 0.4 nozzle",'
It must be placed and run in the folder where the files are located. I recommend making a backup of that folder just in case. If you are not familiar with PowerShell, attempting to use this script without understanding its functionality could result in significant data loss or other unintended consequences.
USE THIS SCRIPT AT YOUR OWN PERIL IF YOU DON’T KNOW WHAT YOU’RE DOING!!!
For your safety, I am deliberately providing the raw code as a small barrier to discourage those who might run it without proper knowledge. If you are a Power User, you will know how to review, modify, and safely execute this script. Please proceed responsibly.
Click here for the Script Text
# Replace-String.ps1
# Define the search and replacement strings
$searchString = '"inherits": "Bambu Lab P1P 0.4 nozzle",'
$replacementString = '"inherits": "Bambu Lab P1S 0.4 nozzle",'
# Get all .json files in the current directory and subdirectories
Get-ChildItem -Path . -Filter *.json -Recurse | ForEach-Object {
$filePath = $_.FullName
# Read the file content
$content = Get-Content -Path $filePath -Raw
# Replace the search string with the replacement string
$updatedContent = $content -replace [regex]::Escape($searchString), $replacementString
# Write the updated content back to the file
Set-Content -Path $filePath -Value $updatedContent
Write-Host "Updated file: $filePath"
}