Skip to content

Instantly share code, notes, and snippets.

View glx22's full-sized avatar

Loïc Guilloux glx22

  • Drancy (93), France
  • X @glx22
View GitHub Profile
@glx22
glx22 / scriptsaveblob.md
Last active July 10, 2021 13:33
Script savegame blob format

There are 6 data types saved for scripts. When saving, each data starts with the type marker saved as SLE_UINT8 followed by the actual data.

  • SQLS_INT:
    • an SLE_INT64 with the actual value
  • SQLS_STRING:
    • an SLE_UINT8 with the string length
    • string len SLE_CHAR
  • SQLS_ARRAY:
    • each element saved as a separate data (ie type then value)
  • an SQLS_ARRAY_TABLE_END marker (SLE_UINT8)