GBX.NET.ZLib 1.1.1-nightly.20250803.c6817f0a

GBX.NET.ZLib

NuGet Discord

A zlib compression plugin for GBX.NET to allow de/serialization of compressed Gbx parts like ghost/entity data or lightmap cache. This official implementation uses managed Iconic.Zlib.Netstandard.

The compression logic is split up from the read/write logic to separate dependencies better.

Compression has not been tested.

Usage

Additional package GBX.NET.LZO is required in this example.

At the beginning of your program execution, you add the Gbx.ZLib = new ZLib(); to prepare the ZLib compression. It should be run only once.

using GBX.NET;
using GBX.NET.Engines.Game;
using GBX.NET.LZO;
using GBX.NET.ZLib; // Add this

Gbx.LZO = new Lzo();
Gbx.ZLib = new ZLib(); // Add this ONLY ONCE and before you start using Parse methods

var ghost = Gbx.ParseNode<CGameCtnGhost>("Path/To/My.Ghost.Gbx");

// SampleData will (likely) use ZLib decompression
foreach (var sample in ghost.SampleData.Samples)
{
    Console.WriteLine(sample.Position);
}

You should not get the ZLib exception anymore when you attempt to get SampleData.

License

GBX.NET.ZLib library is MIT Licensed.

If you use the LZO compression library, you must license your project under the GNU GPL v3.

No packages depend on GBX.NET.ZLib.

.NET 6.0

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
1.1.1-nightly.20250831.cba11d3c 2 08/31/2025
1.1.1-nightly.20250830.cba11d3c 3 08/30/2025
1.1.1-nightly.20250829.cba11d3c 5 08/29/2025
1.1.1-nightly.20250828.cde940d2 5 08/28/2025
1.1.1-nightly.20250827.c8257ead 8 08/27/2025
1.1.1-nightly.20250826.c1aa6590 7 08/26/2025
1.1.1-nightly.20250825.c3a861aa 8 08/25/2025
1.1.1-nightly.20250824.c3a861aa 9 08/24/2025
1.1.1-nightly.20250823.c3a861aa 7 08/23/2025
1.1.1-nightly.20250822.c3a861aa 10 08/22/2025
1.1.1-nightly.20250821.c3a861aa 9 08/21/2025
1.1.1-nightly.20250820.c3a861aa 13 08/20/2025
1.1.1-nightly.20250819.c3a861aa 11 08/19/2025
1.1.1-nightly.20250818.c5bbab68 11 08/18/2025
1.1.1-nightly.20250817.ce814990 10 08/17/2025
1.1.1-nightly.20250817.c6817f0a 9 08/17/2025
1.1.1-nightly.20250816.c6817f0a 12 08/16/2025
1.1.1-nightly.20250815.c6817f0a 13 08/15/2025
1.1.1-nightly.20250814.c6817f0a 12 08/14/2025
1.1.1-nightly.20250813.c6817f0a 12 08/13/2025
1.1.1-nightly.20250812.c6817f0a 15 08/12/2025
1.1.1-nightly.20250811.c6817f0a 10 08/11/2025
1.1.1-nightly.20250810.c6817f0a 14 08/10/2025
1.1.1-nightly.20250809.c6817f0a 9 08/09/2025
1.1.1-nightly.20250808.c6817f0a 12 08/08/2025
1.1.1-nightly.20250807.c6817f0a 12 08/07/2025
1.1.1-nightly.20250806.c6817f0a 15 08/06/2025
1.1.1-nightly.20250805.c6817f0a 16 08/05/2025
1.1.1-nightly.20250804.c6817f0a 12 08/04/2025
1.1.1-nightly.20250803.c6817f0a 16 08/03/2025
1.1.1-nightly.20250802.c6817f0a 18 08/02/2025
1.1.1-nightly.20250801.c6817f0a 17 08/01/2025
1.1.1-nightly.20250731.c6817f0a 19 07/31/2025
1.1.1-nightly.20250730.c6817f0a 27 07/30/2025
1.1.1-nightly.20250729.c6817f0a 22 07/29/2025
1.1.1-nightly.20250728.ca7f9be8 23 07/28/2025
1.1.1-nightly.20250727.cd7b47aa 19 07/27/2025
1.1.1-nightly.20250726.cd7b47aa 33 07/26/2025
1.1.1-nightly.20250725.cd7b47aa 21 07/25/2025
1.1.1-nightly.20250724.cd7b47aa 23 07/24/2025
1.1.1-nightly.20250723.cd7b47aa 25 07/23/2025
1.1.1-nightly.20250722.cd7b47aa 24 07/22/2025
1.1.1-nightly.20250721.cd7b47aa 30 07/21/2025