Snapshot for release 2026.10.13.1 (internal d2b5fb3)

This commit is contained in:
Tom Bohar 2026-10-13 14:25:49 -04:00
commit 319740ff5d
291 changed files with 58505 additions and 2107 deletions

View file

@ -7,6 +7,7 @@ using RynthCore.Plugin.RynthAi;
using RynthCore.Plugin.RynthAi.CreatureData;
using RynthCore.Plugin.RynthAi.LegacyUi;
using RynthCore.PluginSdk;
using RynthCore.Install;
namespace RynthCore.Plugin.RynthAi.Meta;
@ -129,7 +130,7 @@ internal sealed class MetaManager
// §3.3: surface schema/enum drift once per session instead of letting a
// mid-enum insert silently corrupt every saved meta + the JSON bridge.
if (MetaSchema.DriftError != null)
_host.Log($"[Meta] SCHEMA DRIFT — fix MetaSchema/enum alignment: {MetaSchema.DriftError}");
RynthLog.Write(LogCat.Meta, $"[Meta] SCHEMA DRIFT — fix MetaSchema/enum alignment: {MetaSchema.DriftError}");
}
public void SetMtCommandHandler(Func<string, bool> handler) => _mtCommandHandler = handler;
@ -211,17 +212,12 @@ internal sealed class MetaManager
/// <summary>
/// Follow and Once routes must run from the first point so opening
/// Recall/Portal/Chat actions fire. Circular and Linear routes jump
/// in at the nearest traversable Point.
/// in at the nearest traversable Point (at [0] with NavResumeNearest off).
/// </summary>
private int StartIndexForRoute(NavRouteParser route)
{
return route.RouteType switch
{
NavRouteType.Follow => 0,
NavRouteType.Once => 0,
_ => FindNearestWaypoint(route)
};
}
=> NavRouteParser.StartsAtFirstPoint(route.RouteType, _settings.NavResumeNearest)
? 0
: FindNearestWaypoint(route);
public ExpressionEngine Expressions => _expressions ??= CreateExpressionEngine();
@ -430,7 +426,7 @@ internal sealed class MetaManager
// A condition/action threw. Localise it to this tick instead of
// letting partial state (half-applied SetState, pushed call stack)
// persist. ForceStateReset recomputes HasFired cleanly next tick.
_host.Log($"[Meta] Think crashed in '{_settings.CurrentState}': {ex.GetType().Name}: {ex.Message}");
RynthLog.Write(LogCat.Meta, $"[Meta] Think crashed in '{_settings.CurrentState}': {ex.GetType().Name}: {ex.Message}");
if (_settings.MetaDebug)
_host.WriteToChat($"[Meta] Think exception: {ex.Message}", 1);
_lastExprError = $"Think: {ex.GetType().Name}: {Truncate(ex.Message, 100)}";
@ -901,7 +897,7 @@ internal sealed class MetaManager
{
if (string.IsNullOrWhiteSpace(rule.ActionData))
{
_host.Log("[Meta] EmbedNav: empty ActionData, ignored");
RynthLog.Write(LogCat.Meta, "[Meta] EmbedNav: empty ActionData, ignored");
break;
}
string routeName = rule.ActionData.Split(';')[0];
@ -949,7 +945,7 @@ internal sealed class MetaManager
_settings.CurrentRoute = newRoute;
_settings.ActiveNavIndex = StartIndexForRoute(newRoute);
_settings.EnableNavigation = true;
_host.Log($"[Meta] EmbedNav: loaded '{routeName}' ({newRoute.Points.Count} pts, was {priorPoints})");
RynthLog.Write(LogCat.Meta, $"[Meta] EmbedNav: loaded '{routeName}' ({newRoute.Points.Count} pts, was {priorPoints})");
_host.WriteToChat($"[RynthAi Meta] Route \u2192 {routeName} ({newRoute.Points.Count} pts)", 1);
break;
}
@ -964,19 +960,19 @@ internal sealed class MetaManager
_settings.CurrentRoute = newRoute;
_settings.ActiveNavIndex = StartIndexForRoute(newRoute);
_settings.EnableNavigation = true;
_host.Log($"[Meta] EmbedNav: loaded file '{routeName}' ({newRoute.Points.Count} pts, was {priorPoints})");
RynthLog.Write(LogCat.Meta, $"[Meta] EmbedNav: loaded file '{routeName}' ({newRoute.Points.Count} pts, was {priorPoints})");
_host.WriteToChat($"[RynthAi Meta] Route \u2192 {routeName} ({newRoute.Points.Count} pts)", 1);
}
else
{
string keys = string.Join(", ", _settings.EmbeddedNavs.Keys);
_host.Log($"[Meta] EmbedNav: route '{routeName}' not found. Embedded keys: [{keys}]");
RynthLog.Write(LogCat.Meta, $"[Meta] EmbedNav: route '{routeName}' not found. Embedded keys: [{keys}]");
_host.WriteToChat($"[RynthAi Meta] Route missing: {routeName}", 1);
}
}
catch (Exception ex)
{
_host.Log($"[Meta] EmbedNav error: {ex.Message}");
RynthLog.Write(LogCat.Meta, $"[Meta] EmbedNav error: {ex.Message}");
_host.WriteToChat($"[RynthAi Meta] Load Error: {ex.Message}", 1);
}
break;
@ -1086,7 +1082,7 @@ internal sealed class MetaManager
_lastExprError = $"{rule.Action} ignored — VTank Views are not supported in RynthAi";
_lastExprErrorAt = Clock();
_host.WriteToChat("[RynthAi] Meta uses VTank Views (CreateView/DestroyView) — not supported; those actions are ignored.", 1);
_host.Log($"[Meta] {rule.Action} ignored — VTank Views unsupported");
RynthLog.Write(LogCat.Meta, $"[Meta] {rule.Action} ignored — VTank Views unsupported");
}
break;
}
@ -1251,7 +1247,7 @@ internal sealed class MetaManager
// /vt <verb> aliases → existing /ra handlers (Phase 1.3 VTank-meta migration).
// Re-dispatch through the /ra path (_raCommandHandler → HandleRaCommand).
if (sub is "forcebuff" or "cancelforcebuff" or "addnavpt" or "mexec" or "clearbusy")
if (sub is "forcebuff" or "cancelforcebuff" or "addnavpt" or "mexec" or "clearbusy" or "testitem" or "propertydump")
{
_raCommandHandler?.Invoke("/ra " + string.Join(" ", parts, 1, parts.Length - 1));
return true;