FormerLurker / Octolapse

Stabilized timelapses for Octoprint
GNU Affero General Public License v3.0
638 stars 99 forks source link

Receiving Error when starting to Print - Some slicer settings were missing from your gcode file. Missing Settings: Retraction Length,Retraction Speed,Deretraction Speed,Z Lift Height,X/Y Travel Speed,Z Travel Speed #942

Open bretthatcher opened 8 months ago

bretthatcher commented 8 months ago

If this is a feature request describe it here

_REPLACE_THISFEATURE_REQUEST_DESCRIPTION_GOES_HERE

Version of Octolapse

Octolapse Version: 0.4.5

Version of OctoPrint

OctoPrint Version: 1.9.3

When you ran into the problem, did you have diagnostic logging enabled?

Diagnostic Logging was Enabled: No

What were you doing when the problem occurred

  1. I had edited the Start G-Code in Cura so that Auto Configuration would work for OctoLapse
  2. I sliced a new model and loaded the file into OctoPrint
  3. When I went to print I got the following error:

Some slicer settings were missing from your gcode file. Missing Settings: Retraction Length,Retraction Speed,Deretraction Speed,Z Lift Height,X/Y Travel Speed,Z Travel Speed

What should have happened?

No error message with OctoLapse

My Fix Need to add six more properties to the Start G-Code in Cura

; The following 6 settings were not part of the original G-Code ; and will cause OcotoLapse to throw an error. So I added them and everything works fine now ; retraction_distance = {retraction_amount} ; deretraction_speed = {retraction_speed} ; retraction_length = {retraction_amount} ; x_y_travel_speed = {travel_speed} ; z_lift_height = {z_hop_height} ; z_travel_speed = {z_hop_speed}

The full script located here: https://raw.githubusercontent.com/wiki/FormerLurker/Octolapse/version/0.4/assets/scripts/slicer/cura/4.2/settings_output.gcode

Should look like this for it to work.

; Script based on an original created by tjjfvi (https://github.com/tjjfvi) ; An up-to-date version of the tjjfvi's original script can be found ; here: https://csi.t6.fyi/ ; Note - This script will only work in Cura V4.2 and above! ; --- Global Settings ; layer_height = {layer_height} ; smooth_spiralized_contours = {smooth_spiralized_contours} ; magic_mesh_surface_mode = {magic_mesh_surface_mode} ; machine_extruder_count = {machine_extruder_count} ; --- Single Extruder Settings ; speed_z_hop = {speed_z_hop} ; retraction_amount = {retraction_amount} ; retraction_hop = {retraction_hop} ; retraction_hop_enabled = {retraction_hop_enabled} ; retraction_enable = {retraction_enable} ; retraction_speed = {retraction_speed} ; retraction_retract_speed = {retraction_retract_speed} ; retraction_prime_speed = {retraction_prime_speed} ; speed_travel = {speed_travel} ; retraction_distance = {retraction_amount} ; deretraction_speed = {retraction_speed} ; retraction_length = {retraction_amount} ; x_y_travel_speed = {travel_speed} ; z_lift_height = {z_hop_height} ; z_travel_speed = {z_hop_speed}

What happened instead?

Got the error message above.

Operating System running OctoPrint and Octolapse

OS Name: _REPLACE_THISOS_NAME_GOES_HERE Os Version: _REPLACE_THISOS_VERSION_GOES_HERE

Printer model & used firmware incl. version

Printer Model: _REPLACE_THISPRINTER_MODEL_GOES_HERE Printer Firmware Version: _REPLACE_THISPRINTER_FIRMWARE_VERSION_GOES_HERE

Browser and version of browser, operating system running browser

Browser: _REPLACE_THISBROWSER_VERSION_GOES_HERE Browser OS: _REPLACE_THISBROWSER_OS_GOES_HERE

Link to the gcode file you were printing when the problem occurred

Link to Gcode File: _REPLACE_THISGCODE_FILE_LINK_GOES_HERE

Link to settings.json

Link to settings.json with all passwords removed: _REPLACE_THISSETTINGS_JSON_LINK_GOES_HERE

Link to plugin_octolapse.log

Link to plugin_octolapse.log: LINK_GOES_HERE

Link to octoprint.log

Link to octoprint.log: _REPLACE_THISLINK_GOES_HERE

Link to contents of Javascript console in the browser

Link to javascript console output: _REPLACE_THISLINK_GOES_HERE

Screenshots and/or videos of the problem:

Screenshot/Video Links: _REPLACE_THISLINKs_GO_HERE

Please consider becoming a patron

If you like this project, please support my work by becoming a patron, and consider adding a 'star' to the repository. It takes a lot of time and effort to maintain the project and respond to issues. The cost of test prints, software, cameras, printer parts, etc. can quickly add up, so every bit helps.

You can find various videos and tutorials by subscribing to my Youtube channel. You can also follow me on Twitter.

rgaborko commented 6 months ago

My Octolapse was working perfectly fine until last week and now it is coming up with the same error. gcode was copied and pasted and was working great now it is not and had to disable it to be able to print.

MarsBars06 commented 4 months ago

@bretthatcher I think it may be because Octolapse searches the first and last 1000 lines of code. In my case, I use a thumbnail plugin in Cura and it adds lines into the generated gcode file before the start gcode that is specified in the machine settings section in Cura. I have yet to verify this and I will get back to you, but its probably worth opening one of your gcode files that triggers said error and open it in notepad++ (or similar) and just check what lines the octolapse comments are on.