Skip to content

0.10.0

Compare
Choose a tag to compare
@ikkentim ikkentim released this 29 Mar 19:45
· 55 commits to master since this release

SampSharp plugin

  • Added automatic coreclr and gamemode detection
  • Added support for "fastnative" calls (#365)
  • Added callback name to "Callback parameters count mismatch" error (#342)
  • Added coreclr detection based on SAMPSHARP_RUNTIME environment variable
  • Changed hosted mode to be the default, multi-process mode can be enabled with the use_multi_process_mode=1 server setting
  • Fixed a possible server crash when a callback is handled with an unexpected parameter count
  • Fixed a possible server crash when calling the CallRemoveFunction native (#363)
  • Codepage files are no longer provided in the plugin release package. Codepages are available as embedded resources in SampSharp.Core via the GameModeBuilder.UseEncodingCodePage method. The codepage files are available in the codepages repository if you still need these files for some reason.

SampSharp.Core

  • Added support for "fastnative" calls, this improves time consumed by calls to native functions by 95% (#365)
  • Added support for varargs in "fastnative" calls (#260)
  • Added IGameModeClient.NativeObjectProxyFactory
  • Added option NativeMethodAttribute.ReferenceIndices which provides the option to invoke a native with input parameters which should be passed by reference.
  • Added embedded codepages into the library which are available through GameModeBuilder.UseEncodingCodePage(string pageName)
  • Updated to .NET Standard 2.1
  • Removed setter from IGameModeClient.NativeLoader
  • Fixed HostedGameModeClient.ServerPath not returning correct path
  • Deprecated multi-process mode and native-handle related types and methods

SampSharp.Entities

  • Added support for player names as command arguments (#354)
  • Added timers (#326)
  • Updated to .NET Standard 2.1
  • Updated documentation links from SA-MP wiki to open.mp docs
  • Fixed OnDestroyComponent not being called when the component is destroyed, but the entities remains alive (#358)
  • Fixed an error which could occur when event's occur with IDs of entities which don't exist, but aren't 0 (#355, #353, #352, #350)
  • Fixed exception thrown when a dialog is shown with no null button2 text (#376)
  • Fixed components not being removed from global component registry when destroying an entity

SampSharp.GameMode

  • Added BasePlayer.CancelEdit (#362)
  • Added BasePlayer.SetMapIcon and BasePlayer.RemoveMapIcon (#364)
  • Added ListDialog<T> (#383, #395)
  • Updated to .NET Standard 2.1
  • Updated documentation links from SA-MP wiki to open.mp docs
  • Fixed PlayerTextLabel.Text, PlayerTextLabel.AttachedPlayer and PlayerTextLabel.AttachedVehicle not being set
  • Fixed command group help commands not being invoked in some cases (#361)
  • Fixed command overloading not working in some cases (#344)
  • Fixed BasePlayer.IsNPC not returning true when the NPC has not yet connected (#346)
  • Fixed typo in Server.GetWeaponName result for Weapon.ThermalGoggles (#380)
  • Fixed a problem which caused successive calls to ShowAsync not to show the dialog (#384, #389)