12/30/2023 0 Comments Assigning automatrons to supply lines![]() Since the only thing being done differently in my mod compared to vanilla is that all provisioners are stored in a script property, I assume that this is the thing preventing them from resetting.Ī standalone script to do this would look something like this I'm not entirely sure why this works, but after writing a mod that automates supply line creation, I noticed that all of my Automatron provisioners have stopped resetting even after, like, 50 hours of playtime, and additionally none of the users of my mod have mentioned that their automatron provisioners have reset on them either. I haven't figured out why this happens to automatrons and not to normal provisioners, though.Īnyway, a speculative fix for this issue is to force automatron provisioners into a script property, which puts them into a higher level of persistence than if they're just in a ref collection alias. My best guess as to what exactly is happening here is that an engine-level issue resets these actors the next time they're loaded after they've spent enough time unloaded in a respawning cell. As a result, the supply line becomes "stuck", and there are no vanilla mechanisms for cleaning the supply lines back up (which are, of course, just linked locations set via (workshopDestination.myLocation, WorkshopCaravanKeyword) in WorkshopParentScript) The code that runs when a provisioner gets reassigned, and even the WorkshopParentScript.ClearCaravansFromWorkshopPUBLIC() function both fail because they rely on the AV information still being present on the provisioner. Obviously this means that any mods and names and so on applied to the automaton go missing, but this also means that the next time the supply line they actor used to belong to gets cleaned back up, the call toĪssignedActor.GetCaravanDestinationID() fails, because there isn't a WorkshopParent.WorkshopCaravanDestination AV stored on the actor anymore. ![]() DLC01LvlCompWorkbenchBot, and all of the data stored on the actor itself by e.g.ĪssignedActor.SetValue(WorkshopCaravanDestination, destinationID) The result of this bug is that Automatron robots who have been assigned to supply lines occasionally get reset to back to their base form state, i.e. This is a fairly well-known issue, but surprisingly I can't find anything on the tracker here about it, so here it is.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |