Snapshot for release 2026.10.30.1 (internal 50ae062)

This commit is contained in:
Tom Bohar 2026-10-31 06:01:30 -04:00
commit 76aca938b6
52 changed files with 6242 additions and 60 deletions

View file

@ -48,9 +48,7 @@ public static unsafe class PluginExports
public static void OnChatWindowText(IntPtr textUtf16, int chatType, IntPtr eatFlag)
=> Runtime.OnChatWindowText(textUtf16, chatType, eatFlag);
[UnmanagedCallersOnly(EntryPoint = "RynthPluginOnUpdateHealth", CallConvs = new[] { typeof(CallConvCdecl) })]
public static void OnUpdateHealth(uint targetId, float healthRatio, uint currentHealth, uint maxHealth)
=> Runtime.OnUpdateHealth(targetId, healthRatio, currentHealth, maxHealth);
// No RynthPluginOnUpdateHealth (0.4.2): deaths come from the vitals the session reads each tick.
// Corpses (0.3.0): a kill a ring, wall or chain spell made without a kill notice is found by its corpse.
[UnmanagedCallersOnly(EntryPoint = "RynthPluginOnCreateObject", CallConvs = new[] { typeof(CallConvCdecl) })]

View file

@ -16,10 +16,14 @@ namespace RynthCore.Plugin.RynthTracker;
// RynthOracle and RynthILT count the same session from the same start, and Reset starts that one
// over. Without RynthAi (or before its login) the Tracker's own session, kept running all along,
// is shown instead.
//
// Deaths (0.4.2, 2026-10-30): counted from the player's vitals and the server's death counter,
// read each tick (SessionStatsTracker). They used to wait for the player's health in
// OnUpdateHealth, which the engine never sends for the player, so the count stayed 0.
public sealed class RynthTrackerPlugin : RynthPluginBase
{
internal static readonly IntPtr NamePointer = Marshal.StringToHGlobalAnsi("RynthTracker");
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi("0.4.1"); // previous release: 0.4.0
internal static readonly IntPtr VersionPointer = Marshal.StringToHGlobalAnsi("0.4.2"); // previous release: 0.4.1
private SessionStatsTracker? _session;
private readonly RynthAiSessionClient _ai = new();
@ -63,9 +67,6 @@ public sealed class RynthTrackerPlugin : RynthPluginBase
public override void OnDeleteObject(uint objectId) => _session?.OnDeleteObject(objectId);
public override void OnUpdateHealth(uint targetId, float healthRatio, uint currentHealth, uint maxHealth)
=> _session?.OnUpdateHealth(targetId, currentHealth, maxHealth);
public override void OnTick()
{
var session = _session;