Add door/vendor/motion hooks, auto-ID service, and int property caching
Adds engine-side support for door interaction (DoMotion, SmartBoxSetState, physics state, bitfield reading), vendor open/close events, automatic object identification service, int property appraisal caching, container item counts, and property update hooks. Cleans up verbose inventory logging. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
610c9feaec
commit
ccb08ecb4a
19 changed files with 1292 additions and 7 deletions
|
|
@ -272,6 +272,8 @@ public static class EntryPoint
|
|||
RunInitStep("combat-mode hooks", CombatModeHooks.Initialize);
|
||||
RunInitStep("teleport-state hooks", TeleportStateHooks.Initialize);
|
||||
RunInitStep("salvage hooks", SalvageHooks.Initialize);
|
||||
RunInitStep("do-motion hooks", DoMotionHooks.Initialize);
|
||||
RunInitStep("smartbox-setstate hooks", SmartBoxSetStateHooks.Initialize);
|
||||
RunInitStep("appraisal hooks", AppraisalHooks.Initialize);
|
||||
RunInitStep("account hooks", AccountHooks.Initialize);
|
||||
RunInitStep("client combat hooks", () => ClientCombatHooks.Probe());
|
||||
|
|
@ -286,8 +288,11 @@ public static class EntryPoint
|
|||
RunInitStep("vector-update hooks", VectorUpdateServerDispatchHooks.Initialize);
|
||||
RunInitStep("update-object-inventory hooks", UpdateObjectInventoryHooks.Initialize);
|
||||
RunInitStep("view-object-contents hooks", ViewObjectContentsHooks.Initialize);
|
||||
RunInitStep("vendor hooks", VendorHooks.Initialize);
|
||||
RunInitStep("chat callback hooks", ChatCallbackHooks.Initialize);
|
||||
RunInitStep("raw packet hooks", RawPacketHooks.Initialize);
|
||||
RunInitStep("property-update hooks", PropertyUpdateHooks.Initialize);
|
||||
RunInitStep("auto-id service", AutoIdService.Start);
|
||||
PluginManager.LoadPlugins(engineDir);
|
||||
|
||||
// Defer D3D9 hooking until after character login. By that point
|
||||
|
|
@ -340,6 +345,11 @@ public static class EntryPoint
|
|||
RecentLogLines.Enqueue(line);
|
||||
while (RecentLogLines.Count > MaxRecentLogLines)
|
||||
RecentLogLines.Dequeue();
|
||||
|
||||
string logPath = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
|
||||
"RynthCore.log");
|
||||
File.AppendAllText(logPath, line + "\n");
|
||||
}
|
||||
}
|
||||
catch
|
||||
|
|
|
|||
Loading…
Reference in a new issue