Page 1 of 1

Any methods for dynamic production modifiers?

Posted: Tue Jan 17, 2017 1:35 am
by Kormer
I'm working on a mod where the player would be given a bonus for transporting items via train. The first part, measuring the amount of stuff moved via train in a given time has been worked out to a degree that I'm confident it'll work.

The second part I'm having some issues with. "Bonus" here is a loose term and while there is a lot I'd like to do, it doesn't seem like Factorio allows much to be modified at runtime. Below are a list of things I've looked at, but I'm open to other suggestions that would benefit the player on a dynamic basis.

* Modifying recipe input or output quantities.
* Modifying assembly machine stats (energy usage, crafting speed).
* Modifying module bonuses.

Re: Any methods for dynamic production modifiers?

Posted: Tue Jan 17, 2017 1:48 am
by Rseding91
No, none of those things can be changed runtime.

Re: Any methods for dynamic production modifiers?

Posted: Tue Jan 17, 2017 2:04 am
by Kormer
Ok that's what I figured. Thanks for the info though and I can't wait to see what's possible in the next updates.

Re: Any methods for dynamic production modifiers?

Posted: Tue Jan 17, 2017 8:49 am
by hoho
What should be possible to change run-time is handcrafting/mining, running, research speeds and player inventory size.

Re: Any methods for dynamic production modifiers?

Posted: Tue Jan 17, 2017 9:40 am
by Rseding91
hoho wrote:What should be possible to change run-time is handcrafting/mining, running, research speeds and player inventory size.
So, all of these? http://lua-api.factorio.com/latest/LuaC ... d_modifier

Re: Any methods for dynamic production modifiers?

Posted: Tue Jan 17, 2017 10:44 am
by hoho
Yes, these would be the ones :)

Also all those "bonus" and "modifier" things listed here:
http://lua-api.factorio.com/latest/LuaF ... l#LuaForce

Those two lists should give quite a few things one can use as a bonus.