Surviving Mars

Surviving Mars

Shuttle Reservation System A.I.
91 Comments
The Tempted Man 31 Oct, 2023 @ 4:21pm 
thank you
SkiRich  [author] 31 Oct, 2023 @ 1:12pm 
Thats not my mod. Contact the Depot_OCD mod owner.
The Tempted Man 4 Oct, 2023 @ 1:53pm 
I found out that it loops on

Attempt to use an undefined global 'label'
[string ""](-1): metamethod __index
CommonLua/Classes/Mod.lua(904): metamethod __index
PackedMods/Depot_OCD/Code/Script.lua(357): method OnContextUpdate
CommonLua/X/XContext.lua(90): global XContextUpdate
CommonLua/X/XContext.lua(95): <>
[C](-1): global procall
CommonLua/Core/cthreads.lua(17): global StaticMsg
CommonLua/Classes/MsgObj.lua(22): global Msg
CommonLua/Core/lib.lua(3899): global ObjModified
Mars/Lua/X/Infopanel.lua(347): upvalue func
CommonLua/Core/lib.lua(3404): <>
The Tempted Man 4 Oct, 2023 @ 12:55pm 
Shuttles freeze in mid air upon picking an object with AI improvisation alogirthm on, not sure hwy, it fidgets for a while then unfreezes. Weird, maybe mod conflict?
CircleCube 12 Apr, 2023 @ 9:12am 
Einfach genial! Die Mod reduziert die sinnlosen Shuttleflüge DEUTLICH. Ich habe - Stand jetzt - 10 Shuttlehubs a 12 Shuttles und ohne die Mod sind alle 120 Shuttles ununterbrochen geflogen, um Waren von A nach B und direkt wieder zurück zu fliegen. Mit der Mod sehe ich maximal 10-20 Shuttles auf der Map und keines davon macht einen sinnlosen Flug.
Danke!
Random_of_Amber 23 Jun, 2022 @ 4:39am 
Thanks, SkiRich. After many hours of fooling around with things in game I'd come to the conclusion that 'not giving your drones and shuttles any other options for where to put stuff' was probably the answer. And by extension, that means centralising production alongside distribution source. It's just, you know, hard to plan for that from the start of the game.

I'd additionally discovered that having a small armada of single-purpose transport rovers (I name them 'Concrete 1', 'Food 1', 'Food 2', etc) whose only raison d'etre is to move a single resource from point of production to the mech depot distribution centre, helps considerably -- especially if you get them out and rolling BEFORE the production point is already full to bursting with the resource in question.

Anyway, thank you kindly for taking the time to answer. Glad to know it wasn't just something I was doing all wrong!
SkiRich  [author] 22 Jun, 2022 @ 1:48pm 
Its a common problem if you cannot centrally locate production. For things like electronics and machine parts thats easy. Put those workplaces in one or two domes and the mech depots right there. Ideally a source or metals is also nearby like a mohole. Thats three mech depots being filled up ready for distribution.
For rare metals, setup rovers on auto transport to move them from their outlying areas to a central depot next to the electrics. Now you have 4 mechs being filled. Build the concrete wonder near here, now you have 5 mechs.
Take a look at this screenshot. It is a typical layout for me. Very central feeding everything else, and getting fed from local production.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2824550719
Random_of_Amber 22 Jun, 2022 @ 4:22am 
[Part 2 of 2] What I want is for all producers (extractors, factories, etc) to 'send' their goods to the mech depots for centralised, 'as needed' distibution by shuttles. What I get is a highly decentralised nightmare of resources all over the map while my mech depots sit fallow.

I DO understand the problems of Desired Amounts on the standard and universal depots. But I do NOT understand how you correctly get resources both (a) where you need them, WITHOUT setting local Desired Amounts; and (b) into your mech depots WITHOUT setting Desired Amounts ON those mech depots, which I understand from the User Guide then makes the shuttles ignore them as a source for pickup and distribution.

TL;DR - I think I'm doing something 'wrong', but not at all sure what that might be. Help! :-P (Please and thank you.)
Random_of_Amber 22 Jun, 2022 @ 4:20am 
[Part 1 of 2] @SkiRich: Ok, so this - as all your mods - is amazing, and truly game-changing. However, I've still struggled with a few aspects of logistics management, so thought I'd pick your brain for advice/insights. (And before anyone asks, yes, I've RTFM. :-P)

So the main issue is, once I have mechanized depots -- which I understand from the user guide are the shuttles' primary point of resource pickup for distribution -- I seem to really struggle to get my colony and its drones actually to STOCK the mech depots in the first place.

By default, because (any) other necessary and dome-specific standard depots have a Desired Amount set, all drones and shuttles ONLY stock those depots, and very few (if any) resources ever make it into the mechanized depots in the first place.
SkiRich  [author] 2 Jun, 2022 @ 11:56am 
Minor update to fix a syntax error in Mod Config options.
SkiRich  [author] 2 May, 2022 @ 8:00am 
Yes
Thaumaturge 1 May, 2022 @ 9:57am 
Does it still work for the current version?
SkiRich  [author] 24 Sep, 2021 @ 8:08pm 
Nah, Blade is right. There is a major flaw in the shuttle task system if you build a dome and a building in the dome underground.
I just found it. I'm coding up a workaround I think should fix it and puting it in Career AI.
I sent the flaw writeup and code issues to the devs already.
This one will not be fixed in any hotfix anytime soon. Career AI will be the only fix for a while. Lots of code to touch and test for them.
Stay tuned for a
Soilaq 24 Sep, 2021 @ 11:20am 
I'm having a similar issue as Blade. I was thinking it might be a conflict with https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1606337956&searchtext=career ?
BLÀde 24 Sep, 2021 @ 1:09am 
yeah colonists don't use shuttles at all. you can use my save to test it try moving colonist from the main dome to the jumbo dome. they never used them for me they always used that very long passage i built instead.
SkiRich  [author] 24 Sep, 2021 @ 1:07am 
I dont have a save to test that yet. But I will. I just started working on underground things. If thats a bug I can probably code that out. I'll try the one you gave me.
Whats suppose to happen? Move them to another dome I suppose underground.
BLÀde 24 Sep, 2021 @ 1:03am 
does it fix shuttles not picking up colonists underground?
SkiRich  [author] 23 Sep, 2021 @ 5:34pm 
Mod is back in business
SkiRich  [author] 9 Sep, 2021 @ 1:50am 
Follow my progress updating mods here and subscribe to get notices ...
https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/1418440299/3038229380337246070/
Tamren 8 Sep, 2021 @ 11:47pm 
Will there be an update for the Below and Beyond patch? It seems that the devs broke all sorts of things.
SkiRich  [author] 24 Jul, 2021 @ 2:39pm 
Open a post in the bug reports. Add a picture of the infopanel open on a shuttle hub, and add a link to your log file, once you post it to a fireshare somewhere.
If I had to take a wild guess, you have a mod conflict since the mod does work.
The Government 24 Jul, 2021 @ 2:32pm 
I really love this mod for this flawed vanilla mechanic, but while it works for me on the resource organization, I am unable to change the reservation since the start and I feel its been slowing the transport of colonists. Are you able to look into that?
Lexi 9 Jul, 2021 @ 10:19pm 
Gotcha, thank you!
SkiRich  [author] 9 Jul, 2021 @ 9:11pm 
Thats a vanilla mechanic. Shuttles only deliver resources when something demands them and its far away. If the mine is just pumping out metals you will need to store them locally near the mine.
If say the stockpile starts to get low on the mech then shuttles will move them to the mech.
You can either overlap a drone hub with the mech and the mine if possible, or setup an automated transfer route using an RC transport to pickup locally and deliver to the mech.
Lastly, you could temporarily add a high desire on the mech which would create artifical demand, just remember to put it back to zero otherwise the new AI wont qualify it.
Lexi 9 Jul, 2021 @ 8:58pm 
Great mod, but I have an issue I'd hope a user/creator could help fix. I have a mech-storage hub near my factories, and a rich metal mine far away. The shuttles don't ever seem to deliver rich metal to the mech depot by the factory. Do I need to use a universal for the factories or some such? Or change a setting somewhere? I tried using the guide, but it didn't help with this one issue.
BGR 6 Jul, 2021 @ 8:34pm 
@Simaris Perhaps this is not the place to mention this but since you pointed it out here I will chime in. That back and forth you are seeing is the way the game balances out stock piles with equal demand settings so it is not without reason.
Solstice 5 Jul, 2021 @ 3:08am 
What is the purpose of the Mod then ? I read the comments and i read the User manual but im not any smarter. For me i went with vanilla again too, since my production completely stopped after a while using the new AI. Seems there are a lot of misunderstandings.

Only thing Vanilla does very bad atm is that is flies resources forth and back with no reason and i hoped this AI fixes it.
EimisM 3 Jul, 2021 @ 3:40pm 
I might be understand the purpose of the mod actually :D

However, I found out how to use vanilla system in the meantime
SkiRich  [author] 24 Jun, 2021 @ 1:54pm 
I suggest re-reading the user manual I wrote for this mod.
It works as designed.
EimisM 24 Jun, 2021 @ 1:51pm 
This mod doesn't seem to be working right. When I enable resource delivery AI it delivers few resources and then the shuttles completely stops. I find vanilla AI doing a better job at the moment. Also, if I switch reservation mode to colonists shuttle hub stops sending shuttles completely, even if I have colonists that needs to be carried to other dome.
Pawmee 15 May, 2021 @ 7:36am 
This doesnt work for me sadly because i cant click and cycle the reservation stuff
SkiRich  [author] 8 Apr, 2021 @ 11:41pm 
SRS now has a new feature. In addition to the supply side of the A.I. it works on the demand side of the A.I as well. Read about the new Delivery A.I features. Read about the changes in the Resource Delivery A.I. section of the Guide. Link in the description above.
mazrados 4 Feb, 2021 @ 3:20pm 
Thank you. I must have missed it in manual.
SkiRich  [author] 4 Feb, 2021 @ 12:20pm 
No, most likely its the minimal resource amounts that havent been met. Check out the section in the manual about delivery, demands and desires. If you can grasp that concept it will go a long way to properly setup your depots and have the most efficient use for shuttles. If you want to start a thread in bug reports for Q+A feel free. Better than in the comments section.
mazrados 4 Feb, 2021 @ 12:06pm 
Something is wrong. Probably I'm doing something wrong.

In new gameplay, I've built shutlle hub, later another one.
At first shuttles were flying for some time and went back to hub. Untill then they're all idle.
In the second hub they are idle all the time.

When I disable this feature, they work again but as soon when I enable that, they go back to hubs.

I'ts not that they don't have anything to do. I've double checked that. There are depots full of cargo (food for example) and plenty of depots that require cargo. It's both universal depots and for specific cargo.

Is it distance issue? I guess it's maybe because this mod makes shuttles only go long range and ignore everything that is close to them?
mazrados 26 Jan, 2021 @ 8:13pm 
I hope so ;)

Read it through already.
SkiRich  [author] 26 Jan, 2021 @ 1:53pm 
Just make sure you read the user manual on the AI. Its quite different then the built in one.
mazrados 26 Jan, 2021 @ 11:49am 
Thanks a lot for this mod. I hope it works.

Default AI is so stupid. People are dying of hunger, inspite of that there is plenty of food in colony, because this stupid shuttles carry rocks or something like that. I also noticed issue described in the guide, that they carry things forward and back.
SkiRich  [author] 22 Jan, 2021 @ 3:27pm 
I’m assuming you are referring to a section in the user manual. What page?
Kleppo 22 Jan, 2021 @ 1:15pm 
Im a bit confused. How does the idea of centralised mechdepots work? Are the shuttles supposed to bring stuff to them. Say that I have a dome producing parts. Next to it I have an regular depot for parts, set to 0. In the centralised area I have a mechdepot of parts set to 0. Are the shuttles going to bring parts to the mechdepot? Or do I have to set a desired limit for mechdepot for them to bring them? Doesnt that then mean that shuttles wont pick from mechdepot, only bring to them? Dont see the idea of that then, why not just have regular depots next to domes, whats the idea of mechdepots.
Mardoin69 10 Jan, 2021 @ 10:37am 
So, it was just getting disabled but, an easy workaround. Even though mods are installed from Steam instead of Paradox, they still get listed as installed in the Paradox mod's tab of game's main menu. Just click on top to show "Installed" mods and then all the ones installed from steam are there and you can re-enable the one's that are getting turned off by Paradox / Steam when loading into the game. Guess they just like messing with us. I actually had a lot of them that got turned off for whatever reason. All's good now. Have to note this in another comment's section for some others also.
SkiRich  [author] 9 Jan, 2021 @ 1:59pm 
Well you can try to unsub complete from both steam and pdox.
Then go fnid the Mods folder (those are local mod)
Its in the AppData\Roaming\Surviving Mars folder
Once its all clear, do a verify files on the game and resub on steam. Just wait for it to download.
Steam mods are n the steamapps folder in common, but are all coded.
Mardoin69 9 Jan, 2021 @ 1:48pm 
I am using Steam workshop for all my mod installs due to past issues with Paradox's system. I'll have to double check everything though. Thanks for heads up.
SkiRich  [author] 9 Jan, 2021 @ 1:41pm 
Get the mod from Steam instead of Pdox. Not sure whats going on over at that repository. Probably the dumb ratings system they use. One downvote and a mod gets taken offline. Make sure to unsub from the pdox site and then sub the steam edition.
Mardoin69 9 Jan, 2021 @ 1:35pm 
Getting message that this mod is disabled due to content restrictions. Not sure what that's about. Do I need to avoid logging into Paradox when loading up game maybe?
SkiRich  [author] 28 Aug, 2020 @ 10:56pm 
I cant help you if you dont provide details and a log. Post in the Bug Reports section above.
令人愉♂悦的能♂量 28 Aug, 2020 @ 7:22pm 
i cant move colonist with this mod.
BlackDragon 30 Jun, 2019 @ 11:45am 
This thing's quite helpful! Along with your Colonist AI mod, as you recommended, the game's become far more playable. I just don't get why the supposed professionals didn't program a proper AI in the first place - contrary to what some seem to believe, it apparently does NOT require 'Deep Blue' level hardware. :P

Oh, and any plans to do further enhancement-mods, maybe fixing up the drones too?
SkiRich  [author] 14 Jun, 2019 @ 1:11pm 
I dont see anything wrong in those saves. The demand in the udepots wasnt there so the AI didnt trigger a request. If you set the desire on the udepots higher then the demand is there and they work. Also keep in mind the memch depots have a minimum stock they need to maintain when the AI is turned on otherwise the shuttles will not take from them. That is so you do not get the effect of deliver and takeback. The AI will also not consider any depot a source to take from if it has a desire turned higher than zero.
jojobe 14 Jun, 2019 @ 8:44am 
for me problem solved. my shuttles were under the condition idle. if that happens its a slider storage issue. they were refusing to leave the bays could not figure out why. there was no work for them to do due to the sliders on storages being set to zero.