.sql files in pre-load

sosueme

Muckraker
Joined
Nov 7, 2003
Messages
57
Location
Pennsylvania
Beg pardon if this has been covered somewhere, but I couldn't find the answer I was looking for when searching.

I was poking around the Steam pre-load and noticed a lot of .sql files. Does anyone know what database engine Civ V is running on the back end?
 
Thats probably the encrypted files to prevent piracy, etc.
 
Everything is saved in what looks like an encrypted format from my pre-load (.xml files, etc). I'm just curious because .sql files are typically saved SQL queries and I'm a bit of a database nerd IRL.
 
Oh you got me, I am a hardware geek mainly. The programming side of things isn't my strong suit.
 
I'd say they are sql scripts given the extension. Given that civ games have a lot of information to track, a database being involved sounds like a reasonable idea to me. Perhaps the save game files are databases?
 
How big are those files? If they are database queries the biggest should be no more than a few kilobytes, most of them far less.
 
How big are those files? If they are database queries the biggest should be no more than a few kilobytes, most of them far less.

Correctamundo, biggest is about 5K, most are less than 1K.

zwyfs9.gif
 
Beg pardon if this has been covered somewhere, but I couldn't find the answer I was looking for when searching.

I was poking around the Steam pre-load and noticed a lot of .sql files. Does anyone know what database engine Civ V is running on the back end?

I'll tell you Tuesday. :)
 
Yes, your Tuesday. :p
 
The game loads all the XML data and processes it into an SQLite database. These are stored in the cache folder (from memory).

Mods will create a separate SQL database so that the vanilla database is not corrupted. All mods will store info in one database.

If there is a data loading issue in Civ5, first step to take is delete all SQL files from the cache folder (they're recreated on load).

Oh, and to pre-empt the question, you CAN write a program to SQL query the database (that's actually how Firetuner works).
 
Back
Top Bottom