From 09a0fe1ce10e7c1b9afa38b8f9287f2247e16814 Mon Sep 17 00:00:00 2001 From: Lacustat Date: Tue, 27 Oct 2026 02:00:21 +0100 Subject: [PATCH] Freewood-OctoWoW-Codex 0.1.137 Einmalige Bereinigung fremder Wegzellen entfernt. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9 --- CodexPath.lua | 27 --------------------------- Freewood-OctoWoW-Codex.toc | 2 +- Locales.lua | 2 -- 3 files changed, 1 insertion(+), 30 deletions(-) diff --git a/CodexPath.lua b/CodexPath.lua index 1bc43de..5829b2e 100644 --- a/CodexPath.lua +++ b/CodexPath.lua @@ -1089,33 +1089,6 @@ if frame then end) end ------------------------------------------------------------------------- --- Einmalige Bereinigung: fremde Wege aus frueheren Startdaten (Original-Freewood) stammen nicht von Octo-Spielern --- und blieben im gespeicherten Datenbestand liegen. Empfangene Wege kommen beim naechsten Sync wieder. ------------------------------------------------------------------------- - -function Path.CleanOld() - local db = Codex.db - if not db or db.pathCleanV1 then return end - db.pathCleanV1 = true - local n = db.pathrCount or 0 - if n > 0 and Codex.Share and Codex.Share.ClearRemote then - Codex.Share.ClearRemote() - FW:Print(string.format(FW.L.CODEX_PATH_CLEANED, n)) - FW:Fire("CODEX_CHANGED", "import") - FW:Fire("CODEX_SYNC_CHANGED") - end -end - -local cleaner = _G.CreateFrame and _G.CreateFrame("Frame") -if cleaner then - cleaner:RegisterEvent("PLAYER_ENTERING_WORLD") - cleaner:SetScript("OnEvent", function(self) - self:UnregisterEvent("PLAYER_ENTERING_WORLD") - if _G.C_Timer and _G.C_Timer.After then _G.C_Timer.After(20, function() pcall(Path.CleanOld) end) end - end) -end - ------------------------------------------------------------------------ -- /fwpos: Diagnose (Position, Hoehe, Zustand, Auren) und Ein/Aus ------------------------------------------------------------------------ diff --git a/Freewood-OctoWoW-Codex.toc b/Freewood-OctoWoW-Codex.toc index 5e1226a..652f2cc 100644 --- a/Freewood-OctoWoW-Codex.toc +++ b/Freewood-OctoWoW-Codex.toc @@ -3,7 +3,7 @@ ## Notes: Learns quests, creatures and drops while you play: who gives and takes a quest, rewards, objectives, drop chances. ## Notes-deDE: Lernt beim Spielen Quests, Kreaturen und Beute: wer eine Quest vergibt und annimmt, Belohnungen, Ziele, Drop-Chancen. ## Author: Lacustat -## Version: 0.1.136 +## Version: 0.1.137 ## Dependencies: Freewood-OctoWoW-Core ## OptionalDeps: Freewood-OctoWoW-CodexData, Freewood-OctoWoW-ForeverData diff --git a/Locales.lua b/Locales.lua index 9b0cf9b..9d31679 100644 --- a/Locales.lua +++ b/Locales.lua @@ -382,7 +382,6 @@ FW:AddLocale("enUS", { CODEX_PATH_HEADER = "Path network", CODEX_PATH_NOTE = "Records where you walked on foot (not mounted, flying, falling or gliding, not in instances) as a grid of cells. Only a position and direction per cell are stored, no names and no times. The level plan will use it later to find walkable routes.", CODEX_PATH_SWITCH = "Record walked paths", - CODEX_PATH_CLEANED = "Codex: %d old foreign path cells (from earlier start data) removed. Received paths will arrive again through sync.", CODEX_TAXI_HEADER = "Flights", CODEX_TAXI_NOTE = "Shows a small window with the remaining flight time while you travel by flight master.", CODEX_TAXI_SWITCH = "Show flight window", @@ -926,7 +925,6 @@ FW:AddLocale("deDE", { CODEX_PATH_HEADER = "Wegenetz", CODEX_PATH_NOTE = "Zeichnet auf, wo du zu Fuß gegangen bist (nicht auf Reittier, im Flug, beim Fallen oder Gleiten, nicht in Instanzen), als Raster aus Zellen. Gespeichert werden nur Position und Richtung je Zelle, keine Namen und keine Zeiten. Der Levelplan nutzt das später, um begehbare Wege zu finden.", CODEX_PATH_SWITCH = "Gegangene Wege aufzeichnen", - CODEX_PATH_CLEANED = "Codex: %d alte fremde Wegzellen (aus früheren Startdaten) entfernt. Empfangene Wege kommen per Sync wieder.", CODEX_TAXI_HEADER = "Flüge", CODEX_TAXI_NOTE = "Zeigt beim Flug mit dem Flugmeister ein kleines Fenster mit der verbleibenden Flugzeit.", CODEX_TAXI_SWITCH = "Flugfenster anzeigen",