• 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.

misterderp

Dark Lord of the Derp
63 Badges
Jan 19, 2014
650
2.038
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Cossacks
  • Cities: Skylines - After Dark
  • Europa Universalis IV: Common Sense
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines Deluxe Edition
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Ship Simulator Extremes
  • Sengoku
  • Europa Universalis IV: Res Publica
  • Magicka
  • Knights of Pen and Paper +1 Edition
  • Hearts of Iron III
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II
  • 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
  • Impire
  • Hearts of Iron IV: Death or Dishonor
  • Surviving Mars
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Cadet
  • Stellaris Sign-up
  • Hearts of Iron IV Sign-up
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Humble Paradox Bundle
  • Crusader Kings II: Way of Life
  • Mount & Blade: Warband
  • Europa Universalis IV: El Dorado
  • Cities: Skylines
  • War of the Roses
  • Victoria 2
I am currently working on a save game analyser for stalaris. So you can get those stats that are interesting/funny: total galaxy population (so you don't need to calculate it manually from the species tab), most common ethos, but also more interesting information how does the ai spend their money on their planets.

in order to pull this of I need some information about the species_index variable in the gamestat file. for pops the species they belong to is specified by the species_index = some interger. with this integer defining to what species a pop belongs.

I would like to know if this integer corresponds to the position of the species in the species part of the gamestate file. species index 0 being the first species in this part of the file species index 1 being the e=second etc.
 
Yeah, it's a zero-indexed offset into that list of species names. It's weird that it doesn't have same id={ format as everything else, but I guess this representation is more compact.
 
  • 1
Reactions:
Yeah, it's a zero-indexed offset into that list of species names. It's weird that it doesn't have same id={ format as everything else, but I guess this representation is more compact.

Thank you!
I would have tested it myself, but I had trouble with zipping the save file back together again. So I could not.
 
Thank you!
I would have tested it myself, but I had trouble with zipping the save file back together again. So I could not.

No problem.

The zip file needs to NOT have file timestamps in order to work, which not everything handles properly.
On Windows, if you set .zip (or .sav) to open with the Windows Explorer zipfile handler, it actually does the right thing. You can copy the gamestate out, edit it, and then paste it back in.

I haven't figured out how to get WinRAR to not mess it up, but in 7-Zip you can set the "tc=off" parameter in its zip settings, to make it not try to add timestamps.