Surviving Mars

Surviving Mars

50 ratings
Automatic Drones Reassignment
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
609.788 KB
Dec 23, 2018 @ 3:26am
Feb 1, 2023 @ 7:57am
3 Change Notes ( view )

Subscribe to download
Automatic Drones Reassignment

Description
Q.: What exactly this mod does?
A.: This mod reassigns idle drones to hubs with heavy workload.

Q.: How does it work?
A.: Once in a certain time period (30 in-game seconds by default) it scans all the hubs around the base looking for hubs with "Heavy" drones load status. Once it finds one it tries to find an idle drone in the certain radius around this hub (70 hexes by default). Once an idle drone is found, the hub that controls this drone gets an order to dismantle it to a prefab and when it's done, the desired hub gets an order to assemble a new drone from this prefab. When it's done, the search continues until the end of the hubs list. When the end of the list is reached the mod goes to sleep for aforementioned period of time and then goes allover again. OUTDATED. SEE MKII NOTES ABOVE FOR DETAILS.

Q.: What is "in-game seconds" and how does it differ from real-time seconds?
A.: In-game seconds depend on game's speed. So if you play on 1x speed they would last 30 real-time seconds. 3x game speed would make it 10 and 5x would make it 6 real-time seconds.

Q.: But what if the hub stays heavily loaded despite all the efforts? Can it completely strip other hubs leaving them without drones?
A.: Absolutely not. There is a minimum number of drones (default is 5), which should stay at each hub under any circumstances.

Q.: Does this mod affect Rockets or RC Rovers?
A.: No, it only affects hubs.

Q.: Does this mod require any additional mods?
A.: Though it is not vital, it is strongly recommended that you use Mod Config Reborn - it will make mod more flexible, making it possible to change it's default settings to your liking.
38 Comments
KampfTomate007 Feb 5, 2023 @ 10:20am 
I did try it out a couple hours ago and it seemed to work fine, i will test it for a week or so and see if any problem pops up, but i replaced drone load balancing with this mod on an existing save so even if something went wrong it might be fixed in a new game.
KampfTomate007 Feb 5, 2023 @ 2:29am 
WOO! Thank you so much, you have no idea how happy this makes me. :D
Will try it out soon and see if everything works as intended.
Солдат НАТО  [author] Feb 1, 2023 @ 7:59am 
Mod has been updated to the game's latest version!
KampfTomate007 Jan 17, 2023 @ 5:18am 
Understandable, am looking forward to when you find the time to update it.
Солдат НАТО  [author] Jan 16, 2023 @ 9:51am 
ATM I'm really out of free time to update this mod, but hopefully will get back to it sooner or later
KampfTomate007 Jan 16, 2023 @ 5:47am 
Does that mean that this mod is officially incompatible with the current version of the game?
I'd really hate to leave this out of my mod list because i considered it an essential mod.
ChoGGi Jul 13, 2021 @ 8:06pm 
It does spam the log a lot:
[LUA ERROR] PackedMods/1599196567/Code/ADRScript.lua:107: attempt to perform arithmetic on a nil value (local '_check')

Looking at the code I think that means the update drone assignment function fails to do anything?
God? Jul 24, 2020 @ 7:01am 
Is this outdated?
optimusgd Mar 6, 2020 @ 4:31am 
so finally I figured out what the difference with "Drone Load Balancing" is. This mod can automagically pack free unused drones to prefabs and unpack them where and when they needed. So its like Drone Load Balancing+. Its definitely better behavior.
Don Julio Oct 20, 2019 @ 4:43am 
@optimusgd: I'd like to know this, too. Don't know which one of those mods to get.