Page 1 of 1

LuaFlowStatistics get ok, but set ?

Posted: Thu Jul 21, 2016 10:50 am
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 ?

Re: LuaFlowStatistics get ok, but set ?

Posted: Thu Jul 21, 2016 7:46 pm
by Rseding91
It allows you to modify the values for what ever purposes you so deem necessary.

Re: LuaFlowStatistics get ok, but set ?

Posted: Thu Jul 21, 2016 8:49 pm
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 ?

Re: LuaFlowStatistics get ok, but set ?

Posted: Thu Jul 21, 2016 9:13 pm
by Rseding91
Yeah, if you erase the numbers they're gone.