Releases: JujuAdams/db
Releases · JujuAdams/db
2.0.1
This version increases the native db save version to 2.
Savefiles are backwards compatible. This means older versions of db will not be able to load save files created in this version. However, older savefiles (built using version 1) will load in this version of db.
Other changes:
- Updates supported GameMaker version to 2024.8
- Adds support for asset references when saving data e.g. an object index will be appropriately converted to a handle. Handles are automatically unparsed when loading
- By default,
db_save()
anddb_buffer_write()
will now use GameMaker's nativejson_stringify()
function (because it supports "pretty" output whereas it didn't before). This is faster and likely more forwards compatible with newer versions of GameMaker - Set the optional
[legacy_mode]
argument fordb_save()
anddb_buffer_write()
totrue
to use the old serialization system - Accurate floats are not available using the new save mode, you will need to turn legacy mode on
db_duplicate()
now has an optional[fastMode]
argument. This defaults tofalse
, using a custom system in db to duplicate structs and arrays. If you'd like to use the newer GameMaker native functionvariable_clone()
which is faster but may handle method duplication differently, please set[fastMode]
totrue
2.0.0
This version increases the native db save version to 2.
Savefiles are backwards compatible. This means older versions of db will not be able to load save files created in this version. However, older savefiles (built using version 1) will load in this version of db.
Other changes:
- Updates supported GameMaker version to 2024.8
- Adds support for asset references when saving data e.g. an object index will be appropriately converted to a handle. Handles are automatically unparsed when loading
- By default,
db_save()
anddb_buffer_write()
will now use GameMaker's nativejson_stringify()
function (because it supports "pretty" output whereas it didn't before). This is faster and likely more forwards compatible with newer versions of GameMaker - Set the optional
[legacy_mode]
argument fordb_save()
anddb_buffer_write()
totrue
to use the old serialization system - Accurate floats are not available using the new save mode, you will need to turn legacy mode on
db_duplicate()
now has an optional[fastMode]
argument. This defaults tofalse
, using a custom system in db to duplicate structs and arrays. If you'd like to use the newer GameMaker native functionvariable_clone()
which is faster but may handle method duplication differently, please set[fastMode]
totrue