Skip to content

Releases: JujuAdams/SNAP

Function/Method Safety

13 Sep 09:02
Compare
Choose a tag to compare

This release adds extra safety checks when attempting to serialise functions/methods.

 

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.

3.3.1

16 Aug 11:25
Compare
Choose a tag to compare
Merge branch 'master' of https://github.com/JujuAdams/snap

CSV

28 Jun 13:10
Compare
Choose a tag to compare
CSV

Adds CSV parsing to/from a 2D array.

 

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.

Adds INI + Messagepack

24 Jun 20:21
Compare
Choose a tag to compare

By request, version 3.2.0 adds support for messagepack. This is a binary format that seeks to reduce the number of bytes required to pack data. It's not quite as fast as my home-made binary packing functions, but it does generally create smaller buffers.

A major bug has been fixed in snap_deep_copy(). Thanks to Morphonet for pointing it out!

This release also adds INI file reading. But not saving, I wouldn't want to accidentally condone using INI now, would I? ; )

 

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.

XML

16 Jun 18:29
Compare
Choose a tag to compare
XML

Added XML functions to decode/encode XML. The struct/array format is a bit fiddly so make sure you read the documentation.

(Also, the diff functions have been removed. They're interesting and potentially useful, but SNAP isn't the right library for these functions.)

 

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.

More Functions

02 May 20:10
Compare
Choose a tag to compare

Adds some more fuctions:

  1. snap_deep_copy() returns a copy of a struct/array, and a copy of any nested structs and arrays.

  2. snap_difference() returns a data structure that describes the difference between two struct/arrays, including any nested struct/arrays.

  3. snap_difference_delta() applies a difference data structure (made by snap_difference()) to a struct/array. This will set values "in place" in the targeted struct/array.

N.B. Due to missing functionality in GMS2.3.0, array element and struct variable deletion is not fully functional. Instead, when an array element or struct variable is deleted, the value will be set to undefined.

 

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.

SNAP

02 May 10:31
748df38
Compare
Choose a tag to compare

Renames to project to something catchier, and renames the functions so they're easier to remember.

 

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.

Binary Encodings

01 May 23:35
7c2be3c
Compare
Choose a tag to compare

Adds binary encoding/decoding functions for performance-sensitive use cases.