[Help] Production Queue Speed Change

Place to get help with not working mods / modding interface.
smu42
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Apr 17, 2016 6:48 pm
Contact:

[Help] Production Queue Speed Change

Post by smu42 »

How would I make a mod that changes the speed of the manual production queue, preferably dynamically changing over time? Is that even possible without changing the speed of assembly machines as well?

I've never made a factorio mod, so any help is much appreciated :)
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2173
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [Help] Production Queue Speed Change

Post by Ranakastrasz »

That will allow you to, via console command, change the crafting speed.

IF you want a dynamic crafting speed, its a bit more complex. You would need to be more specific as to how it would change under what circumstances.

Craft fast initially, then slow down as you continue? Then, after not crafting for a little while, speed goes back up?

Crafting speed accelerates as you craft?

Crafting speed depends on what you are crafting? That one is admittedly quite difficult.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
smu42
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Apr 17, 2016 6:48 pm
Contact:

Re: [Help] Production Queue Speed Change

Post by smu42 »

Nice, that is pretty close to what I need!
At first I was confused whether it might be exponential or something, but the docs are very clear :) (http://lua-api.factorio.com/latest/LuaF ... d_modifier)

Ranakastrasz wrote: IF you want a dynamic crafting speed, its a bit more complex. You would need to be more specific as to how it would change under what circumstances.

Craft fast initially, then slow down as you continue?
Something like that. I need to go through the mod tutorial and figure out the setup and experiment a bit.

Thanks to both of you! I'll probably come back with more questions later :)
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2173
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [Help] Production Queue Speed Change

Post by Ranakastrasz »

https://mods.factorio.com/mods/justaran ... tiredhands

I would point you at this mod. It has the unfortunate effect of causing speed to decay and never recover, instead of going back up.
Still, you can probably use it as a starting point.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
smu42
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Apr 17, 2016 6:48 pm
Contact:

Re: [Help] Production Queue Speed Change

Post by smu42 »

Ranakastrasz wrote:https://mods.factorio.com/mods/justaran ... tiredhands

I would point you at this mod. It has the unfortunate effect of causing speed to decay and never recover, instead of going back up.
Still, you can probably use it as a starting point.
Actually, I kinda like it like that.
Do you have a suggestion, in what situation it should recover?
The best thing I came up with is to make it so that when the player hasn't crafted anything for a while (maybe a day), then he gets a speed bonus. But I'd want it to be temporary.
I guess I could introduce a new technology that makes it faster again, but I'm not sure if I like it.

Btw, currently I made the speed decrease dependent on the number of researched technologies. It starts at factor 3, then quickly declines the more you research.
User avatar
Ranakastrasz
Smart Inserter
Smart Inserter
Posts: 2173
Joined: Thu Jun 12, 2014 3:05 am
Contact:

Re: [Help] Production Queue Speed Change

Post by Ranakastrasz »

Is the crafting speed modification even working for you? Its not working for me at all....
...
Apperently a value of 0, instead of one, is the default now, and you have to go negative to alter it.
No idea why that changed.
My Mods:
Modular Armor Revamp - V16
Large Chests - V16
Agent Orange - V16
Flare - V16
Easy Refineries - V16
Post Reply

Return to “Modding help”