LuaFlowStatistics get ok, but set ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

LuaFlowStatistics get ok, but set ?

Post by binbinhfr »

about LuaFlowStatistics
http://lua-api.factorio.com/latest/LuaF ... stics.html
I used them to read production/consumption data from the game, with the get or counts members,
but I wonder what is the use for set_input_count and set_output_count ?
Will they override data of the game ? Losing any production statistic from the beginning of the game ?
Is it to "reset the counter" of a force statistics ?
My mods on the Factorio Mod Portal :geek:
Rseding91
Factorio Staff
Factorio Staff
Posts: 15965
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaFlowStatistics get ok, but set ?

Post by Rseding91 »

It allows you to modify the values for what ever purposes you so deem necessary.
If you want to get ahold of me I'm almost always on Discord.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: LuaFlowStatistics get ok, but set ?

Post by binbinhfr »

Rseding91 wrote:It allows you to modify the values for what ever purposes you so deem necessary.
But we agree that then you lose any total count from the beginning of the game (tick = 0) ? There is no way to get back ?
My mods on the Factorio Mod Portal :geek:
Rseding91
Factorio Staff
Factorio Staff
Posts: 15965
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: LuaFlowStatistics get ok, but set ?

Post by Rseding91 »

Yeah, if you erase the numbers they're gone.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Modding help”