[Closed] LuaBurner.currently_burning

Place to get help with not working mods / modding interface.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[Closed] LuaBurner.currently_burning

Post 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 762 times
factorio_gMhccc8sva.png
factorio_gMhccc8sva.png (9.5 KiB) Viewed 762 times
Greetz,

Luzifer
Last edited by LuziferSenpai on Mon Jul 01, 2019 2:15 pm, edited 1 time in total.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
Rseding91
Factorio Staff
Factorio Staff
Posts: 15998
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [17.52] LuaBurner.currently_burning

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 393
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: [17.52] LuaBurner.currently_burning

Post 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 750 times
It should do it automaticly ;)
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
Rseding91
Factorio Staff
Factorio Staff
Posts: 15998
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [17.52] LuaBurner.currently_burning

Post by Rseding91 »

"correcting" != "setting to max". If the value is > the new currently burning it clamps it to the new currently burning value.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding help”