Page 1 of 1

[Closed] LuaBurner.currently_burning

Posted: Mon Jul 01, 2019 1:01 pm
by LuziferSenpai
Hey,

When I want to write the currently burning it doesnt work!

Rseding told me on Discord that you just need to do: burner.currently_burning = "coal"

But that doesnt give the Train the Fuel!
factorio_2o4fu6WBwD.jpg
factorio_2o4fu6WBwD.jpg (2.93 MiB) Viewed 763 times
factorio_gMhccc8sva.png
factorio_gMhccc8sva.png (9.5 KiB) Viewed 763 times
Greetz,

Luzifer

Re: [17.52] LuaBurner.currently_burning

Posted: Mon Jul 01, 2019 1:33 pm
by Rseding91
You have to also write the remaining fuel value otherwise it is 0 and the next time the burner ticks it clears the currently burning.

Re: [17.52] LuaBurner.currently_burning

Posted: Mon Jul 01, 2019 1:43 pm
by LuziferSenpai
Rseding91 wrote: Mon Jul 01, 2019 1:33 pm You have to also write the remaining fuel value otherwise it is 0 and the next time the burner ticks it clears the currently burning.
chrome_LsXMGk7np2.png
chrome_LsXMGk7np2.png (13.41 KiB) Viewed 751 times
It should do it automaticly ;)

Re: [17.52] LuaBurner.currently_burning

Posted: Mon Jul 01, 2019 1:54 pm
by Rseding91
"correcting" != "setting to max". If the value is > the new currently burning it clamps it to the new currently burning value.