GBX.NET.Hashing 1.0.0

GBX.NET.Hashing

NuGet Discord

Hashing features (currently only CRC32) for GBX.NET 2. This hashing function is used in maps when changing the MapUid or HashedPassword.

Usage

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

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

using GBX.NET;
using GBX.NET.Engines.Game;
using GBX.NET.LZO;
using GBX.NET.Hashing;

Gbx.LZO = new Lzo();
Gbx.CRC32 = new CRC32(); // You need to add this

var map = Gbx.ParseNode<CGameCtnChallenge>("Path/To/My.Map.Gbx");

map.RemovePassword();

map.Save("MapWithNoPassword.Map.Gbx");

This example could be broken in older Trackmania games, as these games use older class IDs, to fix this problem, save the map like this:

map.Save("MapWithNoPassword.Challenge.Gbx", new()
{
    ClassIdRemapMode = ClassIdRemapMode.Id2006
});

License

GBX.NET.Hashing library is MIT Licensed.

However, if you would use GBX.NET.LZO package with it (which is usually required), you'd need to follow the GNU GPL v3 License. See License section on the main README for more details.

Showing the top 20 packages that depend on GBX.NET.Hashing.

Packages Downloads
GBX.NET.Crypto
Cryptographic features for GBX.NET 2.
23

.NET 6.0

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
1.0.0 31 09/29/2024