Edit of asset "GUS - Godot Universal Serializer" Accepted

Old/Current New/Edit
Title GUS - Godot Universal Serializer GUS - Godot Universal Serializer
Description A Godot's universal serializer for size optimization

Feature:
1. Without losing type information. Need not type detection and
forced typce conversion in Cross end transfer,just like local parameter transfer.

2. Integer and float are variable length serialization.

3. The serialized data size is smaller than JSON text to utf8 and the native serialization method (var2bytes ()).GUS is especially suitable for the serialization of structured small dat transfer in multiplayer games.You can call GUS._test() to view the data size comparison after serialization in these three way.

How to use:
1. Modify the configuration definition constants at the beginning of the script as required.
2. Pass variable which without Object and Eid into GUS.to_bytes() and gets the serialized data for sending through any network peer.

3. After the remote network peer obtains the serialized data, passe it into GUS.to_var () to get the same variable as before serialization.



Additional: The obtained serialized data can be passed into GUS.get_ pretty_ json_text(), a beautified JSON text will be return, which is for printing and display when debugging.

Be careful:
1. The configuration definitions of cross end applications should keep the same.
2. Array and Dictionary should not contain Object or RID.
3. Because of implementing by GDScript, although the serialized data size is better, it will cost lot of time when serialization and deserialization large array(both Array and PoolArray), you should avoid to use GUS in time sensitive case.

Currently is stable and simple to use. I will not update this script unless someone report a fatal error to me.
A Godot's universal serializer for size optimization

Feature:
1. Without losing type information. Need not type detection and
forced typce conversion in Cross end transfer,just like local parameter transfer.

2. Integer and float are variable length serialization.

3. The serialized data size is smaller than JSON text to utf8 and the native serialization method (var2bytes ()).GUS is especially suitable for the serialization of structured small dat transfer in multiplayer games.You can call GUS._test() to view the data size comparison after serialization in these three way.

How to use:
1. Modify the configuration definition constants at the beginning of the script as required.
2. Pass variable which without Object and Eid into GUS.to_bytes() and gets the serialized data for sending through any network peer.

3. After the remote network peer obtains the serialized data, passe it into GUS.to_var () to get the same variable as before serialization.



Additional: The obtained serialized data can be passed into GUS.get_ pretty_ json_text(), a beautified JSON text will be return, which is for printing and display when debugging.

Be careful:
1. The configuration definitions of cross end applications should keep the same.
2. Array and Dictionary should not contain Object or RID.
3. Because of implementing by GDScript, although the serialized data size is better, it will cost lot of time when serialization and deserialization large array(both Array and PoolArray), you should avoid to use GUS in time sensitive case.

Currently is stable and simple to use. I will not update this script unless someone report a fatal error to me.
Category Scripts Scripts
License MIT MIT
Repository Provider GitHub GitHub
Repository Url https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer
Issues Url https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/issues https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/issues
Godot version Godot 3.4 Godot 3.4
Version String 1.04 1.04
Download Commit c5b2e3301fa662c478b362ff53e03afadaeb0a39 c5b2e3301fa662c478b362ff53e03afadaeb0a39
Download Url (Computed) https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/archive/c5b2e3301fa662c478b362ff53e03afadaeb0a39.zip https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/archive/c5b2e3301fa662c478b362ff53e03afadaeb0a39.zip
Icon Url https://raw.githubusercontent.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/main/icon.png
https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/blob/main/icon.png
Preview Insert
Type image
Image/Video URL https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/blob/main/Test%20result/1.jpg
Thumbnail
Preview Insert
Type image
Image/Video URL https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/blob/main/Test%20result/2.jpg
Thumbnail
Preview Insert
Type image
Image/Video URL https://github.com/Daylily-Zeleen/GUS-Godot-Universal-Serializer/blob/main/Test%20result/3.jpg
Thumbnail