Skip to content

Releases: AlternateLife/RageMP.Net

V1.2.0

01 Jun 14:08
Compare
Choose a tag to compare

Changelog

This version is dedicated to a greatly improved usability and stability towards our current goal to create a crash-resistant API.

We tried to create an API that is all async, but we came to the point that this way of implementing it introduced a hig overhead while calling it. So now we offer next to all async-methods their sync versions. This gives the opportunity to group calls into their own MP.Schedule-call and reduce the needed scheduling calls to a minimum. This should not introduce a more compicated way of implementing it, because MP.Utility.Schedule should be awaitable as every API, too.

Example:

// Before
public async Task DoSomethingAsync(IPlayer player) {
    await player.SpawnAsync();
    await player.SetHealthAsync(50);
    await player.SetPositionAsync(new Vector3(50f, 50f, 50f));
    await player.SetRotationAsync(new Vector3(0f, 0f, 12f);
}

// After
public async Task DoSomethingAsync(IPlayer player) {
    await MP.Utility.Schedule(() => {
        player.Spawn();
        player.SetHealth(50);
        player.SetPosition(new Vector3(50f, 50f, 50f));
        player.SetRotation(new Vector3(0f, 0f, 12f);
    });
}

Added

  • Added new CommandHandler that is able to parse parameters and convert them to fit the given signature.
    See documentation

Changed

  • Reworked all asynchronous methods and added synchronized variants.
  • Reduced dockerimage size from ~800MB to ~80 MB.
  • Set all versions in Dockerimage dependencies to a fixed version to avoid unwanted upgrades.
  • Replaced all events with .NET coding convention compliant versions. (object sender, EventArgs args)
  • All parameters that contained ColorRgba now use System.Drawing.Color instead.
  • Moved MP.Joaat and MP.Schedule to MP.Utility class.

Deprecated

  • MP.Joaat
  • MP.Schedule

Changes between V1.1.4 and V1.2.0
Upgrade-Guide from V1.1.4 to V1.2.0

V1.1.4

20 May 17:14
Compare
Choose a tag to compare

Changelog

  • Fix WorldTime and ColorRgba on Linux
  • Updated .NET Core runtime to 2.2.5 (SDK v2.2.204) and all dependencies

Info: Please replace the folders dotnet/plugins, dotnet/runtime and plugin/dotnet-wrapper.dll with the new ones in this release!

V1.1.3

16 Mar 13:10
Compare
Choose a tag to compare

Changelog

  • Changed assembly startup to execute first and then continue as usual.
    • This should fix the PlatformNotSupportedException issue by MySQL

Info: Please replace the folders dotnet/plugins, dotnet/runtime and plugin/dotnet-wrapper.dll with the new ones in this release!

V1.1.2

26 Feb 17:01
Compare
Choose a tag to compare

Changelog

  • Updated .NET Core Runtime to 2.2.2
  • Fixed License reference in NuSpec
  • Internal improvement of EventHandler

Info: Please replace the folders dotnet/plugins and dotnet/runtime with the new ones in this release!

V1.1.1

31 Jan 00:17
66d171e
Compare
Choose a tag to compare

Changelog

  • Updated .NET Core Runtime to 2.2.1
  • Applied latest changes from C-SDK
  • Fixed .csproj copy targets

Info: Please replace the folders dotnet/plugins and dotnet/runtime with the new ones in this release!

V1.1.0

20 Dec 16:57
Compare
Choose a tag to compare

Changelog

  • Fix invalid set SharedData after latest RAGE Multiplayer update
  • Upgraded to .NET Core 2.2
  • Add linux support
  • Add Dockerfile
  • Minor improvements in plugin structure

V1.0.3

12 Dec 18:52
Compare
Choose a tag to compare

Changelog

  • Added latest hashes in WeaponHash and PedHash enums.

V1.0.2

11 Dec 15:00
Compare
Choose a tag to compare

Changelog

  • Added VehicleHash values for new GTA 1.46 vehicles.

V1.0.1

07 Dec 12:19
Compare
Choose a tag to compare

Changed

  • Add string validation for player names, blip names, vehicle numberplate, textlabel text and command names.
  • Various internal improvements.

Fixed

  • ClientEvents and SharedEntityData will now receive a string-value instead of an IntPtr if the value was an unknown object.
  • The example resource now registers all events inside the constructor as suggested in our documentation.

V1.0.0

02 Dec 22:42
Compare
Choose a tag to compare