• 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
1.073
795
  • 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.
 
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 )
 
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.