Heavy Trucks: Autopilot


Autopilot for the trucks of Heavy Trucks (Vanilla+): they drive themselves between truck stops following a schedule, like trains.

Content
14 days ago
2.0 - 2.1
2.15K
Transportation Logistics Circuit network

g Separate mod from this dependency

12 days ago

Hi there!
I was trying a heavy modded game with this mod among some other (all new).
While I find the Heavy Trucks (Vanilla+) well, trucks, much interesting, I couldn't stop noticing UPS spikes. It seems like this mod (autopilot, this mod, and a dependency for Vanilla+) is hogging around 1.279 on my UPS. Are there any plans to separate both mods and turning Autopilot into an optional/recommended dependency instead of a must?

11 days ago

Thanks for the report! I measured it: with no trucks around, the autopilot costs about 0.01 ms per tick, even on a large map, so it shouldn't be the source on its own. Its cost comes from trucks driving on autopilot (around 1–2 ms for 60 trucks in my tests). How many trucks do you have, and how many are on automatic? A screenshot of show-time-usage (F4 → show-time-usage) with the trucks running would help me find what's costing so much in your game.

11 days ago

Huh, I had literally 0 trucks, and obviously 0 on automatic!
Also, my metrics are at 1.279/0.080/5.442 after 15 minutes of idle game (I like to test after everything settled down just to see what might be """problematic""" of sorts when you reach endgame.
Maybe I was a bit wrong just sharing the median without more context, sorry. But as I said, 0 trucks on a mostly early game (save: starting blue science in krastorio, for testing purposes), (1.297/0.080/5.442 which at load wouldn't say much, but after 15 minutes of the save being idle...)
I uploaded the image here! (marked the mod between the black bars!) https://efimero.online/image.php?token=bbc49560e982904927588ccacf9cc124

Thanks for taking the time for replying my post too! And for your wor!

10 days ago

Thanks, that’s really useful! 0.08 ms as the minimum with no trucks means something runs every tick, which shouldn’t happen. My guess is the road detection, which reads map tiles and may be far busier with Krastorio’s extra floor tiles. I’ll test it with Krastorio and look for the cause. For now it stays a required dependency, but this cost shouldn’t be there with no trucks, so I’ll fix it.

10 days ago

I'm sorry for adding extra workload on your end, let me know If I can help in any way.

10 days ago

No worries at all, reports like this help me improve the mod! You can help: could you post your mod list? The mod-list.json in your mods folder, or a list of the mods if it’s easier. That way I can test with the same mods and find what’s making the autopilot work in an empty game.

9 days ago

Sure! This is the entire modlist:
https://pastebin.com/q46FXr8u

And here's a savefile in case you'd find it more useful (lots of mods, sorry...)
https://mega.nz/file/7bpGFKyC#ZISGFFBgs8iwPL0IDqRTNFcyrNE1hnGHgRnhd13iqGk

New response