Surviving Mars

Surviving Mars

425 vurderinger
Drone Load Balancing
2
   
Utmerkelse
Favoritt
Favoritter
Fjern som favoritt
Filstørrelse
Lagt ut
Oppdatert
425.923 KB
28. mars 2018 kl. 14.59
9. sep. 2021 kl. 14.24
15 endringslogger ( vis )

Abonner for å laste ned
Drone Load Balancing

Beskrivelse
This mod automatically reassigns drones from low-load hubs to heavy-load hubs every hour. Drones are moved from the highest-population low-load hub to the lowest-population heavy-load hub in order to balance the load between hubs. Compatible with Below and Beyond update! The update only provides a notification that a hub is under heavy load, DLB's notification is when a hub is under heavy load and has the maximum number of assigned drones.

if Mod Config is available, the number of drones reassigned every hour is configurable. Otherwise the default value of 2 is used (range: 1-10). Can also control the minimum number of drones (for default hubs and tech-upgraded hubs separately).

Reassigns are handled via converting drones to prefabs and reconstructing them, avoiding travel time and possible battery issues. Low-load hubs with fewer than 5 drones are never considered. Stockpiles of drone prefabs will be assigned to heavy-load hubs at the same rate, if enabled via Mod Config.
143 kommentarer
Draco18s  [skaper] 15. nov. 2023 kl. 10.26 
BioDiesel: not exactly. If drones are idle it doesn't do anything to them. But it does "pack them up" in order to transfer which hub they're assigned to. There really isn't a way to tell whether or not an individual drone is doing anything, the only way to monitor things is based on hub activity load.
BioDiesel112™ 15. nov. 2023 kl. 9.39 
does it repack unused drones ?
Draco18s  [skaper] 16. jan. 2023 kl. 9.23 
There's already a maximum cap on the number of drones a hub supports, so that shouldn't even be a concern.
KampfTomate007 16. jan. 2023 kl. 5.35 
IIRC this mod only adds, or transfers drones between hubs, but is it possible to also make them remove unneeded drones and keep them as prefabs?

I'm mostly asking because in the endgame you easily get 20 hubs, and if it can't remove drones when idle then it might eventually end up adding all 2000 drones even if the average workload only requires like 200.

This could become a problem by causing a decent amount of lag and at the same time forces you to only have as many drones as you need on average workload, meaning during spikes it won't have enough drones, but at the same time you lose drones over time to things like events, threats, or similar and can't replace them without manually watching your drone addemblers to not overproduce.

I used to use the Automatic Drone Reassignment Reboot mod but it seems to have been discontinued so this mod seems to be the only option left.
Draco18s  [skaper] 9. sep. 2022 kl. 12.36 
Good to hear! This mod should be pretty stable across updates, as Paradox hasn't touched the drone hub code at all, so for it to just stop working was worrisome. But if it was just a perception issue, then that makes sense.
Yeah, it only packs up a couple of drones ... I think it was every in-game hour? Without mod config, it will only re-assign 2 drones at a time, and only if there's a significant discrepancy in task load, so it can be kind of subtle sometimes.
Dswp_CZE 9. sep. 2022 kl. 8.16 
Well, maybe I was not patience in my playtime, because today I´m registering movement of drones between hubs. So the mod probably works. Of course if you as its creator can check it in the future, that would be great :)
Draco18s  [skaper] 8. sep. 2022 kl. 12.37 
Thanks for letting me know, Dswp_CZE. I can't currently look into what's going wrong (or more accurately, the mod editor doesn't function on linux, so there's a limit to what I can do to investigate and fix the issue, and 100% can't push a new version; my Windows machine has decided that it has 4 minutes of up time and then it crashes).

Sorry. :\
Dswp_CZE 8. sep. 2022 kl. 10.34 
I don´t think this is working at all. I have the mod enabled and see no difference, I must still manually transfer drones between hubs.
Draco18s  [skaper] 12. des. 2021 kl. 8.47 
Interesting, thanks for the extra info. Won't have the capability for looking into this in some time (lack a Windows machine at present).
ExavierMacbeth 12. des. 2021 kl. 8.34 
Definitely Sure. Only mod I had installed that affects the Drone Hubs and the issue does not present itself when I disable your mod (Though any existing glitched range UIs still remain, my guess baked into the save). But like I said it only occurs when you use the prefab repack function... just dismantling the hub into resources does not glitch it out.

My guess would be the fact that the Hub & 6 drones getting removed as part of the repack effect is causing something to throw a null object error. Probably not clearing the scripts cleanly.