Cycle Quality on Clipboard

by Shemp

Cycle Quality works on blueprints and planners via a temporary clipboard

Utilities
a day ago
2.0
61
Blueprints

i oh hello there

2 days ago

Very nice pair to my mod indeed, im surprised neither LuaItem nor LuaRecord has a built-in "apply upgrade planner to this" api function, i guess it'd be worth asking the devs.

2 days ago

I suppose because it's already possible, it just takes a bit of manual work.

As you can imagine, I'm still quite green when it comes to the API. It's been amusing to see what things are very easy and convenient to do, and what is surprisingly impossible. (You ever tried to stop a train?)

2 days ago

setting it to manual and then the speed to 0?

2 days ago

Let me offer a bit of context:

"Merciful Trains" is my first (attempted) mod. The goal is to make the train brake to a stop if somebody is in the way (like a car stopping for you when you cross the road). The issue with setting Manual mode is that the train could stop anywhere, and inserters/pumps will pull out of the wagons and cause havoc.

You could spam speed = 0 on_tick, but it's ... quite horrible to behold.

My final approach was to wipe the train timetable. This stops the train dead, so you do it at the end of the deceleration curve, and it keeps the train in Automatic. (And then you need to put the timetable back when it's appropriate.)

Then I discovered Splatter Guard exists and I feel like its approach of using teleports is a lot more practical. It's quite difficult to get trains to brake reliably when so many modded trains travel faster-than-light. So I didn't publish that one.

New response