GBX.NET 0.10.2

Suggested Alternatives

GBX.NET 0.11.0

There is a newer version of this package available.
See the version list below for details.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package GBX.NET --version 0.10.2
NuGet\Install-Package GBX.NET -Version 0.10.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GBX.NET" Version="0.10.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GBX.NET --version 0.10.2
#r "nuget: GBX.NET, 0.10.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GBX.NET as a Cake Addin
#addin nuget:?package=GBX.NET&version=0.10.2

// Install GBX.NET as a Cake Tool
#tool nuget:?package=GBX.NET&version=0.10.2

To parse a GBX with a known type:

var gbx = GameBox.Parse<CGameCtnChallenge>("MyMap.Map.Gbx");
// Node data is available in gbx.MainNode

To parse a GBX with an unknown type (method 1):

var gbx = GameBox.Parse("MyMap.Map.Gbx");

if (gbx is GameBox<CGameCtnChallenge> gbxMap)
{
    var map = gbxMap.MainNode;
    
    // Node data is available in map
}
else if (gbx is GameBox<CGameCtnReplayRecord> gbxReplay)
{
    var replay = gbxReplay.MainNode;
    
    // Node data is available in replay
}

To parse a GBX with an unknown type (method 2):

var gbx = GameBox.Parse("MyMap.Map.Gbx");

if (gbx.TryNode(out CGameCtnChallenge map))
{
    // Node data is available in map
}
else if (gbx.TryNode(out CGameCtnReplayRecord replay))
{
    // Node data is available in replay
}

To save changes of the parsed GBX file:

var gbx = GameBox.Parse("MyMap.Map.Gbx");

if (gbx is GameBox<CGameCtnChallenge> gbxMap)
{
    // Do changes with CGameCtnChallenge

    gbxMap.Save("MyMap.Map.Gbx"); // Can be also a new file
}
else if (gbx is GameBox<CGameCtnGhost> gbxGhost)
{
    // Do changes with CGameCtnGhost

    gbxGhost.Save("MyGhost.Ghost.Gbx"); // Can be also a new file
}

gbx.Save(); // will throw an error
// GameBox with unspecified/unknown type can't be currently written back

To save any supported Node to a GBX file:

var gbxReplay = GameBox.Parse<CGameCtnReplayRecord>("MyReplay.Replay.Gbx");
CGameCtnReplayRecord replay = gbxReplay.MainNode;

foreach (CGameCtnGhost ghost in replay.Ghosts)
{
    var gbxGhost = new GameBox<CGameCtnGhost>(ghost); // Create a GameBox<T> with the Node object
    gbxGhost.Save("MyExtractedGhost.Ghost.Gbx"); // Save the new GameBox object to a GBX file
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on GBX.NET:

Package Downloads
GBX.NET.LZO

An LZO compression plugin for GBX.NET to allow de/serialization of compressed Gbx bodies. This official implementation uses minilzo 2.06.

GBX.NET.Json

A wrapper for better JSON serialization of GBX.NET nodes, useful for comparing data.

GBX.NET.Imaging

Provides extensions for image handling in GBX.NET (GDI+, Windows only).

GBX.NET.PAK

A PAK file parser using the GBX.NET features.

ManiaAPI.NadeoAPI.Extensions.Gbx

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.0-alpha2 67 4/14/2024
2.0.0-alpha1 42 4/12/2024
1.2.6 270 2/19/2024
1.2.5 396 12/31/2023
1.2.4 367 11/26/2023
1.2.3 231 11/24/2023
1.2.2 542 7/8/2023
1.2.1 631 6/7/2023
1.2.0 804 5/4/2023
1.2.0-beta2 101 4/30/2023
1.2.0-beta1 94 4/25/2023
1.1.3 503 2/1/2023
1.1.2 298 1/21/2023
1.1.1 478 12/30/2022
1.1.0 1,259 12/11/2022
1.1.0-alpha2 185 11/11/2022
1.1.0-alpha1 107 10/25/2022
1.0.1 740 9/10/2022
1.0.0 419 9/9/2022
0.16.6 451 8/24/2022
0.16.5 462 8/21/2022
0.16.4 457 8/19/2022
0.16.3 465 8/18/2022
0.16.2 730 8/11/2022
0.16.1 477 7/21/2022
0.16.0 1,248 7/16/2022
0.15.1 543 4/4/2022
0.15.0 959 2/23/2022
0.15.0-rc2 130 2/19/2022
0.15.0-rc 165 2/1/2022
0.14.3 350 12/19/2021
0.11.0 571 6/25/2021
0.8.0 428 1/29/2021

Fixed exceptions