Skip to content

Releases: JujuAdams/SNAP

8.1.1

20 Oct 19:49

Choose a tag to compare

  • FIxes JSON import field order breaking in some situations

8.1.0

10 Oct 10:19

Choose a tag to compare

  • SnapFromJSON() and SnapBufferReadJSON() now contain the optional parameter trackFieldOrder which defaults to false. When set to true, structs will be created with a special variable called .__snapFieldOrder which contains an array that describes the order that struct variables were found in the source JSON. Please note that empty structs will not contain a .__snapFieldOrder
  • SnapToJSON() and SnapBufferWriteJSON() now contain the optional parameter useFieldOrder which defaults to true. This will cause the parser to look for the special .__snapFieldOrder variable described above. If a field order is found, variables will be exported in the same order as found in the array. If any variables are found in the field order array that don't exist in the struct itself then a warning message will be outputted in the debug log (but no error so make sure to keep an eye on the debug log). If the struct contains variables that do not appear in the field order then those variables will be exported after variables found in the field order array. Field order takes precedence over alphabetisation.
  • Changes the default scope for the GML read function from global to a newly allocated struct

7.0.3

17 Aug 17:49

Choose a tag to compare

  • Fixes XML comments causing the end of XML documents to get cut off
  • Adds circular reference support to SnapVisualize()

7.0.2

11 Sep 10:52

Choose a tag to compare

  • Fixes incorrect method scoping in SnapDeepCopy() and SnapDeepCopyLegacy() (thank you @Hmmmpf!)
  • Fixes escape character handling in XML

7.0.1

18 Aug 14:01

Choose a tag to compare

  • Expands GML parser to handle operations, constants, function calls, and constructor calls
  • Adds SnapEnvGMLSetToken(),SnapEnvGMLSetTokenFunction(), and SnapEnvGMLSetNativeTokens()

7.0.0

16 Aug 18:20

Choose a tag to compare

7.0.0 Pre-release
Pre-release
  • Expands GML parser to handle operations, constants, function calls, and constructor calls
  • Adds SnapEnvGMLSetVariable() and SnapEnvGMLSetVariableFunction()

6.1.2

12 May 12:02

Choose a tag to compare

  • Fixes unnecessary dependency on Dynamo in GML parser

6.1.1

22 Jan 10:23

Choose a tag to compare

  • Fixes custom binary format floats being encoded incorrectly as booleans in newer versions of GameMaker
  • Fixes XML parser breaking when an attribute value is exactly "62"

6.1.0

03 Nov 21:12

Choose a tag to compare

6.0.1

27 Oct 11:27

Choose a tag to compare

  • Improves performance of SnapBufferWriteBinary() in versions of GameMaker that support struct_foreach()