Skip to content

Releases: JujuAdams/SNAP

4.0.1

05 Sep 17:09
Compare
Choose a tag to compare
  • Adds snap_string(), a function that stringifies struct+array collections without crashing due to circular references
  • Removes redundant 4th argument being used in foreach (thanks @gnysek)
  • Adds BOM check to snap_from_csv() to make working with text editors smoother (thanks @tabularelf)
  • Fixes negative integers being decoded/encoded incorrectly in messagepack

4.0.0

21 Jul 21:22
Compare
Choose a tag to compare

Changes structure of XML output to preserve order. You can learn more about the new ordering here.

3.5.4

19 Jul 19:42
Compare
Choose a tag to compare

Fixes snap_from_yaml() incorrectly deserializing when comments were using with Unix newlines

3.5.3

03 Jun 14:09
Compare
Choose a tag to compare

Fixes edge crash crash for Messagepack decoding when a message terminates with an empty string

3.5.2

14 Feb 16:09
664cda3
Compare
Choose a tag to compare

One contribution from @shdwcat:

  • The member variable __snap_field_order is created in structs built using snap_from_yaml() if the [trackFieldOrder] argument is set to true

Addresses the following issues:
#5 - Methods and functions are now duplicated by snap_deep_copy(). Please note that complex references between structs may cause method duplication to behave strangely
#8 - UTF8 byte order mark is now ignored when loading a string from a file

3.5.1

23 Dec 10:47
Compare
Choose a tag to compare

Improves GML decoder by throwing errors and supporting comments.

3.5.0

23 Dec 00:41
Compare
Choose a tag to compare

Adds GML struct definition encoding/decoding.

3.4.3

09 Dec 14:34
Compare
Choose a tag to compare

Minor update to address incorrect argument[] indices in snap_from_messagepack()

3.4.2

06 Nov 11:50
Compare
Choose a tag to compare

Fixes #7 - Messagepack integers are now packed properly

YAML

01 Nov 11:51
Compare
Choose a tag to compare

Adds YAML parsing.

 

How do I import SNAP into my game?

GameMaker Studio 2 allows you to import assets directly into your project via the "Local Package" system. From the the list of files below, download the .yymps file. In the GMS2 IDE, load up your project and click on "Tools" on the main window toolbar. Select "Import Local Package" from the drop-down menu then import the script from the DoLater package.

N.B. SNAP is only compatible with GMS2.3.0 and above.