Page 1 of 1
Change belt speed in game
Posted: Sat Oct 19, 2019 4:52 am
by leahcim4686
I want to make a mod that allows belts to be slowed much like inserts can override stack size. So far as I can tell, belt speed can only be changed during startup. Am I missing something that would allow this?
Re: Change belt speed in game
Posted: Sat Oct 19, 2019 5:56 am
by boskid
belt speeds are defined on prototypes during data stage and so cannot be changed later.
Some mods would solve this issue in data stage by doing n deep copies of transport belt (lets keep n<10) with different speeds and then in game you could using lua, fast replace selected belts to different ones. This would look like "changing speed" because graphics would be same (i am not sure if animations would still align).
Performance may suffer after fast replacing belts and when there are many transitions between belts of different speeds (no transport line merge optimisation)
Re: Change belt speed in game
Posted: Sat Oct 19, 2019 6:42 am
by leahcim4686
Perhaps an entity (e.g.
Belt Buffer 0.17) that I could change output speed?
Re: Change belt speed in game
Posted: Sat Oct 19, 2019 8:22 am
by leahcim4686
NM, I used two decider combinators and a constant combinator to enable the belt for a certain number of ticks. Thanks anyway!