Surviving Mars

Surviving Mars

Drone Load Balancing
146 kommentarer
Draco18s  [ophavsmand] 29. aug. kl. 4:23 
Super weird.
Nyx (She/Her) 27. aug. kl. 18:02 
same as @Destroyer below me, but will note I SEE it working in game anyway
Destroyer 20. apr. kl. 4:17 
Soo, not sure if I'm doing something wrong, but when I go into mod editor when the mods all load it always says this mod is not found. I also don't see it in mod options during my game. It doesn't appear to be loading.
Draco18s  [ophavsmand] 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  [ophavsmand] 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  [ophavsmand] 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  [ophavsmand] 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  [ophavsmand] 12. dec. 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. dec. 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.
Draco18s  [ophavsmand] 12. dec. 2021 kl. 8:20 
I have no idea why my mod would cause that behavior, that's really weird ExavierMacbeth. Are you sure it's my mod (have no other mods installed, vanilla does not show the issue)?
ExavierMacbeth 12. dec. 2021 kl. 3:49 
Found a bug for you.
When you pack a drone hub back into a prefab (Prefab-Refab Tech under Recon & Expansion Tree) while this mod is installed that Hub's drone range for the building shows up and becomes permanently displayed & stuck in place.
jhhillman 4. nov. 2021 kl. 22:32 
Is there an updated version available?
lukeh_ro 30. sep. 2021 kl. 14:17 
Hi, can you please check the PM you have from me on discord. Thanks
Draco18s  [ophavsmand] 9. sep. 2021 kl. 7:18 
Tremualin: I'll take care of that this evening. Thanks.
Tremualin 8. sep. 2021 kl. 20:29 
Seems like you left the developer debugging on. It spams the log file with Drone Load messages.
Draco18s  [ophavsmand] 8. sep. 2021 kl. 14:34 
Published to Paradox for all platforms.
Draco18s  [ophavsmand] 8. sep. 2021 kl. 11:42 
Ah, I need to push to Paradox too. Will do this eve, it's been a while and I forgot how everything works.
dgb666 8. sep. 2021 kl. 11:14 
ahh, thanks. this steam version works fine. The paradox version said that it were incompatible
Pirate of AE 8. sep. 2021 kl. 7:51 
Seems to be working fine too, Thanks
Draco18s  [ophavsmand] 8. sep. 2021 kl. 7:46 
dgb666: I did.
Updated Sep 7 @ 5:44pm
dgb666 8. sep. 2021 kl. 4:13 
an update would be great
Draco18s  [ophavsmand] 7. sep. 2021 kl. 15:31 
Gotcha. Haven't really put much effort into maintaining these mods, but this one should be easy to update. Thanks for the poke!
Pirate of AE 7. sep. 2021 kl. 14:39 
its flaged as not comptable
Draco18s  [ophavsmand] 7. sep. 2021 kl. 14:31 
...is it not working? Just because an update to the game comes out doesn't mean I need to do anything.
Pirate of AE 7. sep. 2021 kl. 13:19 
odds of a update are?
Draco18s  [ophavsmand] 29. maj 2021 kl. 12:20 
(Added logging: I mean for debug just to check what the code was doing, and the logging indicated normal operation)
Draco18s  [ophavsmand] 29. maj 2021 kl. 12:19 
ZERT:
So I just took a look at things and it looks like the mod is functioning normally. Added some logging and reassigned all drones from one hub to another, then created tasks at the hub with only 1 drone and it jumped up to a medium load, then had 2 drones reassigned on the game-hour (and 2 more an hour later).
Being overloaded just means there are more tasks than drones. They don't turn off when overloaded and can only pull drones from a hub that has idle drones.
Z.E.R.T. 26. maj 2021 kl. 7:34 
Thanks Draco! you the best
Draco18s  [ophavsmand] 25. maj 2021 kl. 20:17 
ZERT: I'll take a look this weekend.
Z.E.R.T. 25. maj 2021 kl. 18:59 
mods dont work ... the drone dont switch by them self when its over load...
Kenji_03 6. feb. 2021 kl. 18:37 
Loving this mod, major Quality of Life (QoL) change!
Draco18s  [ophavsmand] 19. juli 2020 kl. 13:37 
Pushed an update that should hopefully fix it. Looks like some metadata may have changed, so the local ("dev") copy was still appearing in-game, but could not be searched for on the in-game mod marketplace and the steam subscribed version would not appear either.
Draco18s  [ophavsmand] 18. juli 2020 kl. 16:17 
Let me check on that dori, its possible that the game updated and the mod isn't compatible with some change.
Nesign 18. juli 2020 kl. 15:53 
Hi! may this mod not appear in the game? i couldn't download it. I already subscribed, opened the game and it does not appear either
Draco18s  [ophavsmand] 26. jan. 2020 kl. 13:31 
astudslyfe: I don't regularly play any more, though if someone finds that a mod of mine is broken and lets me know, I can fix it. I haven't heard anything lately, so I assume it still works (if not, let me know!)
BKGamesPI 26. jan. 2020 kl. 11:15 
Is this compatible for current game?
KampfTomate007 16. juni 2019 kl. 3:32 
Oh i wasnt talking about the 100 drone per hub limit.

I mean sure if that limit isnt altered it cant be that bad right?
Well... unless you have 100 (or so) hubs then it might get a little "nasty"
(which btw is the reason why im having over 2000 drones in the first place)

And that number is easily reached if you build the hub grid in a way that each hub is within reach of atleast 3 other hubs just to minimize the likelyhood of a fatal failure.

(it also helps if you use the terraforming mod so that your ocd infested mind can go mental :D)
Ketamarine 4. juni 2019 kl. 17:18 
It is a tech you normally get early game called drone swarm. I was playing a chaos run and it never came up. Game default is 20 per hub until tech ups it to 100.
Thanks for all your hard work!
Draco18s  [ophavsmand] 4. juni 2019 kl. 15:06 
This mod does not alter, in any way, the maximum drone capacity. That functionality is controlled by hub:GetMaxDrones(), which while DLB calls this method, it does not overwrite it.
KampfTomate007 22. maj 2019 kl. 12:21 
Not to mention the possible outcome of huge lags because you stored 2000+ drones just for moments like 10^rockets refueling, huge cargo transfers from multiple storages, backup in case of spontaneous destruction of several drones via meteors etc. where massive amounts of drones may be practical over a short period but dont get undeployed afterwards

...and therefore eat your fps for breakfast :D

Im certainly not able to offer any serious help here but you may find some from the "Automatic Drone Reassignment" Mod which is similar but focuses more on a "fine-tune" approach
but also manages to undeploy "idle" drones

unfortunately im not sure how exactly the author does it but maybe he/she can help you out?
Draco18s  [ophavsmand] 21. maj 2019 kl. 13:51 
Ah, I see what you're getting at. I had never thought about that and hadn't really been concerned when I wrote the mod. I suppose I could add it to the list. I'd have to think about how to handle it though, its not as simple as packaging up drones at low-load hubs, it'd be too easy to get into a situation where one part of the code is trying to package up the drones and another is redeploying them to the same location.
BioDiesel112™ 21. maj 2019 kl. 13:16 
I mean, I think sometimes is it better when inactive drones roll back into the Garage for quicker reactivation on a other dronehub. So must a not used drone first drive back to depot before it can used anywhere else (for faster deploying)
Draco18s  [ophavsmand] 21. maj 2019 kl. 9:47 
Tesseract: I don't have Green Planet, so I have no idea how the open farms affect things. As for adding a "if not doing anything, go here" toggle, I might be able to do something like that, though not soon. I will have to wait for my new desktop to arrive.
Tesseract 21. maj 2019 kl. 9:12 
@Draco18s - Thats an interesting query by @MinenSuchSchnuller™, as on Green Planet, open farms are harvested for food/seeds "when drones are inactive". Does this mod take this into account? Could we maybe have the ability to mark hubs as "priority" for when drones aren't doing anything?
Draco18s  [ophavsmand] 21. maj 2019 kl. 8:45 
Minen: I'm not sure what you mean. There's really no point in putting drones back into storage. Once they're active, even if idle, they consume virtually no resources.
BioDiesel112™ 21. maj 2019 kl. 8:37 
tiny Question... Drone adding works.... but reducing ?