Any methods for dynamic production modifiers?

Place to get help with not working mods / modding interface.
Kormer
Inserter
Inserter
Posts: 30
Joined: Wed Nov 30, 2016 1:34 am
Contact:

Any methods for dynamic production modifiers?

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14250
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Any methods for dynamic production modifiers?

Post by Rseding91 »

No, none of those things can be changed runtime.
If you want to get ahold of me I'm almost always on Discord.
Kormer
Inserter
Inserter
Posts: 30
Joined: Wed Nov 30, 2016 1:34 am
Contact:

Re: Any methods for dynamic production modifiers?

Post 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.
hoho
Filter Inserter
Filter Inserter
Posts: 681
Joined: Sat Jan 18, 2014 11:23 am
Contact:

Re: Any methods for dynamic production modifiers?

Post by hoho »

What should be possible to change run-time is handcrafting/mining, running, research speeds and player inventory size.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14250
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Any methods for dynamic production modifiers?

Post 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
If you want to get ahold of me I'm almost always on Discord.
hoho
Filter Inserter
Filter Inserter
Posts: 681
Joined: Sat Jan 18, 2014 11:23 am
Contact:

Re: Any methods for dynamic production modifiers?

Post 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.
Post Reply

Return to “Modding help”