Surviving Mars

Surviving Mars

Automatic Drones Reassignment
38 Comments
KampfTomate007 5 Feb, 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 5 Feb, 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] 1 Feb, 2023 @ 7:59am 
Mod has been updated to the game's latest version!
KampfTomate007 17 Jan, 2023 @ 5:18am 
Understandable, am looking forward to when you find the time to update it.
Солдат НАТО  [author] 16 Jan, 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 16 Jan, 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 13 Jul, 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? 24 Jul, 2020 @ 7:01am 
Is this outdated?
optimusgd 6 Mar, 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 20 Oct, 2019 @ 4:43am 
@optimusgd: I'd like to know this, too. Don't know which one of those mods to get.
optimusgd 9 Jun, 2019 @ 11:25am 
Is this mod are the same as "Drone Load Balancing", just with Russian description?
GameOverRIP 1 Jun, 2019 @ 1:58pm 
All it seems to do is take drones out and leaves them as assignable, not actually reassigning them.
Tuvka 25 May, 2019 @ 9:43pm 
Поддерживаю вопрос, работает ли мод с последними обновлениями? Спасибо.
kaatrav 20 May, 2019 @ 9:48am 
Привет! Работает ли мод с последним патчем (доп. Зеленая планета)?
ChoGGi 14 Mar, 2019 @ 8:11am 
which honestly is the entire reason why i picked it up regardless of missing capacity mods
Yeah it does do that.
KampfTomate007 14 Mar, 2019 @ 7:53am 
Nope still happening
BUT!
Now im also having a NEW problem where my metal extractors are showing a bit less than -6000 stored waste rock... wow this is getting messy
KampfTomate007 14 Mar, 2019 @ 7:49am 
But in the mods description it states that if you have the drone carry breakthrough they will only pick up items if they are 2 entire units but your mod makes them able to also carry just one so they react faster/do things instead of nothing/take resources of extractors that are turned of and not let 1.9 res units laying there until its on again)

which honestly is the entire reason why i picked it up regardless of missing capacity mods

if i misunderstood something then obviously my bad

am currently testing without drone carry amount fix and see whats happening
ChoGGi 14 Mar, 2019 @ 6:05am 
Could try carry amount, I only made it for if you're using a cheat to increase the amount they carry.
KampfTomate007 14 Mar, 2019 @ 4:42am 
Hm the only mods i have installed that i think are related to drones are
fix: drones crry amount
disable drone maintenance
and then change drone type and
change drone skin

disable drone maintenance got updated november last year but the issues not only appeared after that they also got more or less solved after that so im out of ideas
ChoGGi 13 Mar, 2019 @ 2:22pm 
Then I doubt it's this mod, since I don't think there's anything in the code that would stick around in a saved game.
KampfTomate007 13 Mar, 2019 @ 7:10am 
Ok even more strange...

i uninstalled adr and it seemed to be working fine but then it happened again with the exception of a few drones that are transporting metal and waste rock from extractors to dedicated depots

so its kind of better but not entirely
ChoGGi 13 Mar, 2019 @ 5:51am 
Your issue is that drone stutter mentioned below? Have you tried disabling this mod, if it doesn't happen then you know the issue is from this mod.
KampfTomate007 13 Mar, 2019 @ 5:30am 
Choggi shall i upload another log via pastebin so you or anyone willing to can take a look?
KampfTomate007 13 Mar, 2019 @ 5:29am 
Hmm strange

did sm got updated recently by any chance?
because i have the feeling that the last time i had this problem it worked fine but when it didnt i noticed that there was a update to sm and thought there might be a connection

so if there was a update within the last 3-5 days then it might be the reason for the mass drone afk problem

but i honestly hope that its not related to it because last time i could only "solve" it by starting a new game and i rather not do it again (would be my second game over 2500 sols going to nirvana)
ChoGGi 13 Mar, 2019 @ 5:17am 
So anything i can do on my side to avoid the gamebreaker?
Neither of them are issues that'll affect the mod, it's just log spam.

Though since it is log spam happening what seems to be every in-game minute, so it'll fill up your log file and make it hard to see actual errors.
KampfTomate007 13 Mar, 2019 @ 4:52am 
BTW now while im at it i totally forgot to thank you for your awesome mod! lol

Usedd it for a while now and when it works (which it usuall does very well) it is fantastic!

i talked with choggi about a few mods which settings in ModConfigReborn arent saved (or rather inconsisstently saved) and get reset

adr is one of them which isnt that bad tbh cuz it just sets the min amount of drones to 3 instead of 1 and the check time to every 1h (ingame sol cylce) instead of every 2 which again is more a minor thing to correct but if there is anything that can be done to solve this problem id be glad to help whereever i can

once again thank you mate!
much love
KampfTomate007 13 Mar, 2019 @ 4:43am 
So anything i can do on my side to avoid the gamebreaker?

i dont want to pause playing sm until it works again (again ^^)
ChoGGi 12 Mar, 2019 @ 6:48pm 
line 124 is
_Hub:UpdateUI()
but dronehubs don't have an :UpdateUI() function, so it's erroring out. luckily it's at the end of the function so nothing else in the mod is interfered with.


"[LUA ERROR] Attempt to create a new global _ADRGreetMsg" etc...
Those aren't actual errors, it's just the game telling you it's creating a new key in _G
just above function OnMsg.NewMapLoaded()
you can add:
_ADRGreetMsg = nil
_ADRGreetHeader = nil
_ADRGreet = false
and that'll remove the "errors"
KampfTomate007 12 Mar, 2019 @ 11:04am 
Well it was working again (more or less) after i started a new game guessing my savefile borked but now im having the exact same issue described below again

besides the 3 common lua errors (ADRGreet/-Msg/-Header) there are tons of these:

[LUA ERROR] PackedMods/1599196567/Code/ADRScript.lua:124: attempt to call a nil value (method 'UpdateUI')
[C](-1): global procall
(17): global StaticMsg
(22): global Msg
Mars/Lua/City.lua(1375): <>
--- end of stack

so considering my log is filled with literally thousands of these id suggest taking a look into it just to be sure
if im overlooking something obvious im sorry otherwise i do appreciate any help
Солдат НАТО  [author] 6 Feb, 2019 @ 2:43pm 
The mod itself works fine so I don't see any problem here
XxUnkn0wnxX 6 Feb, 2019 @ 4:06am 
@Random Unit, i'm getting some errors with your mod in the log: https://gist.github.com/XxUnkn0wnxX/d40ae76d289dd53b75877357cd0b98f7

"[LUA ERROR] Attempt to create a new global _ADRGreetMsg" etc...
KampfTomate007 22 Jan, 2019 @ 7:27am 
I have a problem where after i load my current game save drones work as intended but after a few moments there occurs a little "stutter" which can last from .5-2 sec (tested 5-6 times) and after that all drones complete their task and return to their hubs (as usual) but after they arrived they stop doing anything for pretty much eternity (just waited 4 days since im kinda busy(not rly) and therefore have to save the few eternitys i have lol)

as if the task system crashes during that stutter while the "rest" of the game doessnt for whatever reason

logs show some intense hebrew but a single line sticks out:

[LUA ERROR] Attempt to create a new global _ADRGreet
(622): metamethod __newindex
(146): <>
[C](-1): global procall
(17): global StaticMsg
(22): global Msg
(670): global UnpersistGame
Mars/Lua/Savegame.lua(196): local load_callback
(273): upvalue fnCall
(85): <>
--- end of stack
Солдат НАТО  [author] 25 Dec, 2018 @ 12:20pm 
Меня эта возня с дронами выбесила на удивление быстро. Первая версия мода была написана буквально через пару дней после того как игра была куплена.
Sulendil 25 Dec, 2018 @ 8:13am 
Спасибо, очень толковый мод, особенно когда колония разрастается и на микро уже не хвататет рук)
Солдат НАТО  [author] 25 Dec, 2018 @ 6:54am 
k
Emmote 25 Dec, 2018 @ 6:52am 
DLB does turn them into prefabs to move them around though.
"Reassigns are handled via converting drones to prefabs and reconstructing them..."
Солдат НАТО  [author] 25 Dec, 2018 @ 6:49am 
DLB moves drones by bunches between hubs. My mod disassembles idle drones to prefabs one at a time and assembles prefabs back to drones. These mods are absolutely different though they serve the same purpose
Emmote 25 Dec, 2018 @ 5:47am 
May I ask why I would use this mod over the Drone Load Balancing mod? It seems to do exactly what this does and works with the latest patch too.
Are there any functional or efficiency improvements?
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1345052602