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

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
Other than the save game is in the Save Games subdirectory (to where the scenarios are), how can one tell it's a save game or a scenario programically?

I need to know so that I can restrict the list when one is using the Game & Scenario Editor? Currently I just restrict it to .eug files but it would be nice [upon reading the file] to determine if it's a saved game or scenario. I have options that reply upon knowing if it's a saved game or a scenario.
 

Radu

Banned
82 Badges
Dec 18, 2007
957
4.722
  • Europa Universalis IV: Mare Nostrum
  • Rome: Vae Victis
  • Victoria 2: Heart of Darkness
  • Hearts of Iron IV: Cadet
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Pillars of Eternity
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Colonel
  • Hearts of Iron IV: Field Marshal
  • Crusader Kings II: Reapers Due
  • Europa Universalis IV: Rights of Man
  • Tyranny: Archon Edition
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: By Blood Alone
  • Hearts of Iron IV: No Step Back
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Victoria 2
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Lithoids
  • Hearts of Iron IV: La Resistance
  • Stellaris: Federations
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Crusader Kings III: Royal Edition
  • Europa Universalis IV: Cradle of Civilization
  • Battle for Bosporus
  • Europa Universalis IV: Golden Century
  • Stellaris: Megacorp
  • Europa Universalis IV
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Shadowrun Returns
  • Tyranny - Bastards Wound
  • Europa Universalis 4: Emperor
  • Stellaris: Necroids
  • Stellaris: Nemesis
  • Tyranny - Tales from the Tiers
What you need to look for is "saved = yes" in the *.eug file, like this :

name = "The Road to War (1936)" saved = SOV header = {
name = "Grand Campaign"
which = "Arsenal of Democracy 1.05 (CNRO)"
tutorial = no
startdate = {
year = 1939
month = may
day = 3
hour = 14
}
saved = yes
combat = no
free = yes


You can see that there are two more 'flags' that can help you define filters for whatever list you have in mind :
- combat = yes/no means if it's a battlescenario or full campaign
- free = yes/no means if the player is free to select the countries or if they are locked in place ( for obvious reasons free = yes and combat = yes usually go hand in hand )
 

Czarina Julie

Czarina
9 Badges
Apr 11, 2008
964
675
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Hearts of Iron III
  • Darkest Hour
  • 500k Club
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
Radu thanks. I did find it on my own while parsing the .eug file. Already new about the combat = yes means it's a battle scenario (it was the first file I tested with).

Guess I was just getting lazy :-D asking for help. Again, thanks.