scraps

Abandon all hope, ye who enter here.
git clone https://git.neptards.moe/neptards/scraps.git
Log | Files | Refs | Submodules | README | LICENSE

formats.md (1175B)


      1 # SQL format
      2 * Used by newer Rags games.
      3 * They use a wonderful technology called "SQL Server Compact 3.5", which is like
      4   SQLite, but by Microsoft, and it is a proprietary piece of crap that only
      5   works on Windows. Fortunately by now, even MS realized that it's a crap and no
      6   longer supports it.
      7 * They're encrypted with a password: `ǰ¥àòÅÅÇÉàññø` (in UTF-8), or
      8   `L"\u00C7\u00B0\u00A5\u00E0\u00F2\u00C5\u00C5\u00C7\u00C9\u00E0\u00F1\u00F1\u00F8"`
      9   as a wchar_t string literal on Windows.
     10 * The game uses it like a (crap) file system, zero indexes or joins or anything,
     11   it just loads the whole shit into the memory except the actual files.
     12 * The schema used to create the DB is in [schema.sql](schema.sql).
     13 
     14 # Encrypted .Net serialized format
     15 * Used by older Rags games, savegames and exported variables.
     16 * It's normal .Net binary serialized data (see [MS-NRBF][]) but encrypted with
     17   AES-256 CBC.
     18 * Key: `B4BDC259B1104A6531F8109C851BCF9AD09BDD208851C9CBAB782AEC356CC1E3`
     19 * IV: `31F8109C851BCF9A203D6C71A7BD1487`
     20 
     21 [MS-NRBF]: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-nrbf/75b9fe09-be15-475f-85b8-ae7b7558cfe5?redirectedfrom=MSDN