Releases: JujuAdams/SNAP
Function/Method Safety
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
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
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
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
Adds some more fuctions:
-
snap_deep_copy()
returns a copy of a struct/array, and a copy of any nested structs and arrays. -
snap_difference()
returns a data structure that describes the difference between two struct/arrays, including any nested struct/arrays. -
snap_difference_delta()
applies a difference data structure (made bysnap_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
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
Adds binary encoding/decoding functions for performance-sensitive use cases.