Stellaris

Stellaris

Sort Those Buildings
[Suggestion] action for trigger sorting
Hello :)

referring to
Originally posted by JU12000:
This will only start working on buildings built after the mod is installed. Additionally, any mod that overwrites a vanilla building and gets loaded after this one will break sorting. If it's not too much work I can be persuaded to make a patch for you :)
is it possible to add a planet decision or similar to trigger the sorting in case the mod was installed in an existing savegame? :)
< >
Showing 1-6 of 6 comments
JU12000  [developer] 28 Feb, 2023 @ 6:31pm 
I can look into it.
LST Theunknown 1 Mar, 2023 @ 12:29am 
Wonderful! And if it's not possible , that's fine too. :)
JU12000  [developer] 13 Mar, 2023 @ 11:53am 
Unfortunately it seems like this isn't possible currently as I have no way of dynamically removing and re-adding buildings, I can only do it for each building that exists in the game which causes the planetary decision to become massive and occasionally crash the game when run on large worlds in the late-game. My best suggestion if you'd like to do this would be to just open the console and force remove and re-add buildings.
LST Theunknown 14 Mar, 2023 @ 3:14am 
Originally posted by JU12000:
Unfortunately it seems like this isn't possible currently as I have no way of dynamically removing and re-adding buildings, I can only do it for each building that exists in the game which causes the planetary decision to become massive and occasionally crash the game when run on large worlds in the late-game. My best suggestion if you'd like to do this would be to just open the console and force remove and re-add buildings.

That's reasonable! I am so happy that you have tried. Initially I though through a planetary decision would better because it's locally impacting on the game rather than with an edict or alternatively with an entry in a mod menu like https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2458024521 but I have a gasp how interconnected it is. I mean the planetary screen hasn't been designed having sorting building in mind.

So it's doesn't bother me not being able to sort the buildings on existing colonies and at least it works on new planets.

Nevertheless I really appreciate your effort. Have a nice week. :)
JU12000  [developer] 25 Aug @ 11:10pm 
For posterity, I just added a triggered event which fires each time a single player save is loaded which automatically sorts all buildings included in this mod and all patches according to the designated sorting order. Now all buildings should be sorted on your planets after the first save load.

There are some limitations which are of note:

1. It does not sort buildings on planets you don't own, however any new planets you "acquire" will be sorted the next time the save is loaded.
2. It does not sort holdings or branch office buildings, this is something I might look into in future, but was a little more than I wanted to tackle right now.
3. If you don't have a patch (e.g. You have ACOT, but not the STB - ACOT patch) your ACOT buildings will be sorted on save load, but any new buildings will not be sorted. The patch fixes this of course.
Last edited by JU12000; 25 Aug @ 11:11pm
Thank you, JU12000 :):Khappy:
< >
Showing 1-6 of 6 comments
Per page: 1530 50