Notifications
Clear all

[Rozwiązany] Problem with adding gcode  

  RSS
von11
(@von11)
Member
Problem with adding gcode

Hello,

I have a problem when I try to add G-code. It says the number I wrote is not an integer - https://prnt.sc/jBxF9feQwBdW . I tried with and without decimal, tried with nothing, always the same error.

Does anyone know how to fix this problem?

Thanks.

 

Best Answer by Neophyl:

Jurgen they are trying to upload gcode generated from Orca Slicer to Printables for their model.  From what I can see it contains variables that the parser online doesn't understand, hence the error message.

As an experiment I would suggest the OP slices this in Prusa Slicer and then try the gcode generated from that to see if it works.  Might narrow down the problem area.

Printables Profile

| GitHub Profile

Opublikowany : 25/01/2026 12:03 am
Jürgen
(@jurgen-7)
Noble Member
RE: Problem with adding gcode

Where and how are you adding Gcode? Could you share the actual code you have written?

Opublikowany : 25/01/2026 8:03 am
1 ludzie polubili
von11
(@von11)
Member
Topic starter answered:
RE: Problem with adding gcode

This happens when I try to add/upload GCode file to the model. I can fill all other required fields, but not the weight field.

This specific model - https://www.printables.com/model/1568686-pen-and-marker-holder

I didn't edit the file; I just uploaded it as it came from the slicer.

Printables Profile

| GitHub Profile

Opublikowany : 25/01/2026 8:10 am
Jürgen
(@jurgen-7)
Noble Member
RE: Problem with adding gcode
Posted by: @von11

This happens when I try to add/upload GCode file to the model. I can fill all other required fields, but not the weight field.
[...]
I didn't edit the file; I just uploaded it as it came from the slicer.

Sorry, I am confused now. You did not edit the file but took it straight from the slicer -- so where did you add any Gcode?

I think we need a detailed description of your workflow and environment. With which tool and settings did you slice? (I notice that the Gcode file on your Printables page states "sliced with Orcaslicer for Ender V3"?) Did you set custom GCode in your slicer -- where, what code? How are you sending the file to the printer -- which software environment, which printer?

Opublikowany : 25/01/2026 10:04 am
1 ludzie polubili
von11
(@von11)
Member
Topic starter answered:
RE: Problem with adding gcode

I don't think we are on the same page. I have an issue adding a G-code file to the Printables model - https://prnt.sc/ElACJ7zxMxrz (This section on Printables model page). I don't have a problem with the printer, but I have an issue uploading the G-code file to the model page.

Printables Profile

| GitHub Profile

Opublikowany : 25/01/2026 10:36 am
Neophyl
(@neophyl)
Illustrious Member
RE: Problem with adding gcode

Jurgen they are trying to upload gcode generated from Orca Slicer to Printables for their model.  From what I can see it contains variables that the parser online doesn't understand, hence the error message.

As an experiment I would suggest the OP slices this in Prusa Slicer and then try the gcode generated from that to see if it works.  Might narrow down the problem area.

Opublikowany : 25/01/2026 10:49 am
1 ludzie polubili
von11
(@von11)
Member
Topic starter answered:
RE: Problem with adding gcode

That is correct. Thanks for the reply. I tried with gcode file from PrusaSlicer, and it works fine. It was a problem with OrcaSlicer.

https://prnt.sc/H378at39qwna

Printables Profile

| GitHub Profile

Opublikowany : 25/01/2026 10:56 am
Jürgen
(@jurgen-7)
Noble Member
RE: Problem with adding gcode
Posted by: @neophyl

Jurgen they are trying to upload gcode generated from Orca Slicer to Printables for their model.  From what I can see it contains variables that the parser online doesn't understand, hence the error message.

As an experiment I would suggest the OP slices this in Prusa Slicer and then try the gcode generated from that to see if it works.  Might narrow down the problem area.

Oh, right -- I did not recognize the Printables page in the screenshot and thought this was about sending the file to the printer.

Agree, it looks like an OrcaSlicer variable construct that is not supported by Printables. I do not see anything suspicious in the GCode file that is currently available on Printables, but that is probably the version before @von11 tried to upgrade the Gcode file. So either try via PrusaSlicer, or just stick with the current (non-parameterized?) OrcaSlicer version?

Opublikowany : 25/01/2026 10:56 am
1 ludzie polubili
hyiger
(@hyiger)
Noble Member
RE: Problem with adding gcode

Printables gcode parser also doesn’t recognize some of the latest g/m-code supported by PrusaSlicer. Example the new M870 (open/close vent) will throw an error when attempting to upload. 

Opublikowany : 25/01/2026 2:30 pm
1 ludzie polubili
Share: