Player count based research speed and productivity

by Yenz

This mod dynamically adjusts the research speed and productivity based on the current count of online players. It allows to slow down or even stop the research in case none or only a few players are online.

Tweaks
12 days ago
0.18 - 2.0
783

i Please be more selective

4 years ago

I have been made aware of this mod from a community member who was having issues with scripted recipe unlocks being removed under several trigger events.
Can you please be a bit more focussed on event triggers instead of running reset_technology_effects() all the time please.
You are only trying to change research speed correct?
Every time you run that function it removes all of my script unlocked recipes. If i am to enforce my recipes existence, I would end up slowing down these events considerably, especially as the game goes on.
Please stop using the nuclear option when a scalpel will do, I may be the first to mention this, but you are likely to get more reports from other modders in relation to this in future.
Many other modders are happy to help if you have questions on the factorio discord (#mod-making), I highly recommend having a chat to us if you would like to learn more.

4 years ago
(updated 4 years ago)

I indeed had a way to calculate the researched speed bonus by going through all the researched technology with a research bonus. But I thought that it might be unnecessary if reset_technology_effects did the same (for me) not knowing about the side effects.

See first function in https://github.com/JensForstmann/factorio-mod-player-count-based-research-speed/blob/388edc9bff89fa1eb12c6473361b7039fc949725/control.lua

Is there another better way to do this?

4 years ago

Ill take a look after work

4 years ago

my tester confirmed that this didn't break the recipes :D
was the issue with it that it was slower, or just that its a chunkier block?

4 years ago

I didn't measured the time - it was only unnecessary code for me (chunkier block). But now knowing about the posssible effects I'll change that for the next version.

Thanks for reporting it!

4 years ago

Just uploaded the fix, let me know if any issues occur.

New response