KirkMcDonald / kirkmcdonald.github.io

Simple web-based calculator for the game Factorio.
Apache License 2.0
540 stars 148 forks source link

Rocket silo count is incorrect? #123

Closed DRY411S closed 5 years ago

DRY411S commented 5 years ago

When asking the calculator to tell me what I need for all the sciences including space science at 1K per minute, it tells me I need more than 1 silo. Do I really? Can't I just put speed beacons around a single silo?

adrianvanderwal commented 5 years ago

Even if you have as many speed beacons around the silo as you can fit, the animation time takes too long for a single silo to sustain 1K SPM.

See https://wiki.factorio.com/Rocket_silo#Maximum_throughput for more details.

KirkMcDonald commented 5 years ago

This is correct. The calculator models the launch animation time, which limits the rate at which a single silo can launch rockets, regardless of how large of a speed effect you can apply. The code for this is here.

DRY411S commented 5 years ago

Does the 2475 in the code relate to ticks? 41 and a bit seconds?

KirkMcDonald commented 5 years ago

As described on the wiki page, the launch animation takes 2475 ticks. The calculator converts this into a number of seconds with the rational 2475/60 (which gets reduced to 165/4), which equals 41.25 seconds.

jthill commented 4 years ago

As of 18.18 (not sure exactly when it changed) the launch animation takes 2420 ticks, and one silo can sustain 983 science per minute (I'm here because I wanted to report I could do better than the calculator said)