-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicating layer indicators #224
Comments
PTG never rewrites files. The M117 was added by a different plugin. I would say that this is the fault of the other plugins that are modifying uploaded files. Take PTG for example. PTG stores in it's data the ETA of a print at one minute intervals. I could have had PTG put all that info directly into the file but I didn't. PTG never modifies your gcode. That plugin which is adding M117 could have instead been written to store the indicators in a separate file, like PTG does. And then it could have hooked the print status and injected an M117 into the command list as needed. Using this strategy, there would be no need to rewrite the files. So I'm saying that the other plugin is misbehaving. Lots of plugins misbehave this way and it's a shame. Do you know which plugin is doing that? |
Apparently not :). I'll have to do some research. The only thing I know is operating on the file is PTG and Multi-Colors, and it happens even when I haven't used Multi-Colors (i.e., upload a file, download it and delete it from OP, then re-upload it again). I've used MC hundreds of times and it's never done anything but add the M600 line into the file. I'll snoop the logs and see what's happening when the file is uploaded. Sorry for the false alarm, it just appeared it was PTG's fault. |
Maybe it's this: OllisGit/OctoPrint-DisplayLayerProgress#104 (comment) ? |
No problem here. I wish that pluigns would not rewrite gcode files. OctoPrint supports storing plugin data and modifying gcode before it gets sent to a 3D printer. I would bet that all these plugins which are rewriting gcode could pull off their functions without rewriting files. |
PrintTimeGenius Version (if you know): 2.2.7
If PTG reevaluates a file it has already scanned (which happens if you use something like MultiColors which adds an M600 line at spots where you want it, then resaves a new file, or if you download an evaluated file, alter it (or not!) and upload it again using a different file name), it duplicates the M117 Layer Indicator line at each layer (throughout the whole file).
Example:
This is a file prior to upload for the first time:
Same file, after PTG first scan:
Same file, after being altered and resaved, which caused a second scan by PTG:
It probably effectively doesn't cause any problems, except increasing file size slightly, but when files are on the borderline of what the gcode viewer can handle, that will make IT barf.
The text was updated successfully, but these errors were encountered: