Skip to content

Releases: JujuAdams/db

2.0.1

29 Jan 18:40
Compare
Choose a tag to compare
2.0.1 Pre-release
Pre-release

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() and db_buffer_write() will now use GameMaker's native json_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 for db_save() and db_buffer_write() to true 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 to false, using a custom system in db to duplicate structs and arrays. If you'd like to use the newer GameMaker native function variable_clone() which is faster but may handle method duplication differently, please set [fastMode] to true

2.0.0

28 Jan 18:01
Compare
Choose a tag to compare
2.0.0 Pre-release
Pre-release

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() and db_buffer_write() will now use GameMaker's native json_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 for db_save() and db_buffer_write() to true 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 to false, using a custom system in db to duplicate structs and arrays. If you'd like to use the newer GameMaker native function variable_clone() which is faster but may handle method duplication differently, please set [fastMode] to true

1.0.0

17 Apr 17:17
323a7fc
Compare
Choose a tag to compare

Initial release