• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

andriy.gerasika

Major
40 Badges
Jul 14, 2011
757
205
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Surviving Mars: First Colony Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Distant Stars
  • Surviving Mars: First Colony Edition
  • Stellaris: Megacorp
  • Imperator: Rome
  • Europa Universalis IV: Rights of Man
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Stellaris: Digital Anniversary Edition
  • Stellaris
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Europa Universalis III: Chronicles
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Res Publica
  • Europa Universalis IV: Pre-order
  • Stellaris: Synthetic Dawn
  • Europa Universalis III
Hi,
I have created a simple tool that rearranges player planets in savegame file:

The reason is that if you have a lot of specialized planets and are constantly resettling pops, it is hard to locate the planet by name and/or designation.

By default, Planets view in Outliner displays planets in colonization order, grouped by system; Sectors view displays planets by colonization order.

This tool opens savegame as zip, reads gamestate file, locates "country={" string, then locates "owned_planets={" string and rearranges list of owned planets, so instead of colonization order, planet IDs are listed by type, then by designation, then by name

Screenshot before:
unsorted.gif

Screenshot after:
sorted.gif

(sorry for large images -- for some reason new version of Stellaris does not switch to non-standard resolutions on Ubuntu)

Source code is available at https://github.com/andriy-gerasika/stellaris-sorter

To run the tool, you will need Java and command line:
Code:
java -cp stellaris-sorter-0.1.jar com.gerixsoft.StellarisSorter ironman.sav

P.S.
Make a backup copy of the save before running the tool :)

P.P.S.
Stellaris may display a message about broken savegame, but that's because of different compression methods Stellaris and Java are using -- the file will load OK

Diff of the changes made to savegame file:
diff.gif