Vehicle Loading Dock


Automatically load and unload parked vehicles through a configurable dock with a standard 100-slot inventory, electrical power and a parking status light. Drive in, stop, and let the dock handle the cargo.

Content
9 days ago
2.1
161
Transportation

g optimization

11 days ago

Hi, thanks for the great mod. I'm seeing increased load on my ups from your mod. Could you improve the optimization?

9 days ago

Thanks for the report! Version 1.3.0 fixes this. The main cost came from docks with a vehicle parked on them: the storage was scanned slot by slot every cycle even when there was nothing to move. Transfers now go through the engine's own insert, and the circuit output and indicator are only updated when something actually changes. With 100 docks and parked vehicles, the script time went from about 260 ms to under 2 ms per tick in my benchmark. Docks are also spread over several ticks to avoid spikes. Let me know if you still see a noticeable impact.

9 days ago

Thank you, your mod is a great addition to my Vehicle -_- RTS Control mod, I'll add your mod to my recommendations soon

9 days ago

I was about to make my own mod similar in concept to yours, but you beat me to it and it's great

New response