GbxRemote.Net 3.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package GbxRemote.Net --version 3.0.1                
NuGet\Install-Package GbxRemote.Net -Version 3.0.1                
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="GbxRemote.Net" Version="3.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GbxRemote.Net --version 3.0.1                
#r "nuget: GbxRemote.Net, 3.0.1"                
#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 GbxRemote.Net as a Cake Addin
#addin nuget:?package=GbxRemote.Net&version=3.0.1

// Install GbxRemote.Net as a Cake Tool
#tool nuget:?package=GbxRemote.Net&version=3.0.1                

GbxRemote.NET <div align="center">

Nuget GitHub Discord

</div>

Version 2 Released! It includes some breaking changes, you can find the changelist here.

A library for interacting with the XML-RPC protocol of TrackMania servers and similar titles built with .NET 5. It is built using the task async pattern (TAP). It comes with pre-made methods for all the documented XML-RPC methods provided by the trackmania server and allows you to easily hook into and react on callbacks. Interacting with ModeScript is also simplified through special features.

Quickstart

Install the library from Nuget: dotnet add package GbxRemote.Net

Make sure you have an updated version of the Trackmania Server installed and running.

The following basic program connects to the server host 127.0.0.1 and the port 5000 (default XMLRPC port). It retrieves a list of players currently on the server and prints them out to the console.

using System;
using GbxRemoteNet;

// create client instance
GbxRemoteClient client = new("127.0.0.1", 5000);

// connect and login
if (!await client.LoginAsync("SuperAdmin", "SuperAdmin"))
{
    Console.WriteLine("Failed to login.");
    return;
}

Console.WriteLine("Connected and authenticated!");

// get player list
var players = await client.GetPlayerListAsync();

// print player logins and nicknames to the console
foreach (var player in players)
{
    var info = await client.GetDetailedPlayerInfoAsync(player.Login);
    Console.WriteLine($"Login: {player.Login}, NickName: {player.NickName}");
}

// disconnect and clean up
await client.DisconnectAsync();

To learn more about the usage of this library, head over to the main documentation.

Documentation

The full documentation with API reference can be found here.

Support

We give limited support for this library via our Discord server - if you have any questions on how to use this, please check out the User Guide below and the source code documentation first and foremost. If you're still stuck afterwards, feel free to ask in the #support channel on our Discord server. Please do not message any of the maintainers privately about getting support for this library.

Contributing

If you have any questions, issues, bugs or suggestions, don't hesitate create open an Issue! You can also join our Discord for questions.

You may also help with development by creating a pull request, but please create a new branch first.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on GbxRemote.Net:

Package Downloads
GbxRemoteNet.Addons.Hosting

Hosting extensions for GbxRemote.NET

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
5.0.2 144 5/16/2024
5.0.1 91 5/3/2024
5.0.0 804 12/12/2023
4.1.0 552 7/12/2023
4.0.1 255 5/29/2023
4.0.0 263 3/30/2023
3.0.3 316 12/19/2022
3.0.2 613 12/6/2022
3.0.1 346 12/3/2022
3.0.0 385 11/9/2022
2.0.1 431 10/10/2022
2.0.0 506 10/3/2022
1.1.10 470 7/30/2022
1.1.9 578 7/12/2022
1.1.8 431 7/12/2022
1.1.7 571 7/9/2022
1.1.6 720 5/5/2022
1.1.4 444 4/10/2022
1.1.3 377 8/9/2021
1.1.2 411 8/6/2021
1.1.1 344 8/4/2021
1.1.1-beta 270 4/10/2021
1.1.0-beta 260 4/10/2021
1.0.1-beta 214 4/5/2021

This is the second BETA version of the client.