Freewood-OctoWoW-Codex 0.1.137

Einmalige Bereinigung fremder Wegzellen entfernt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
Lacustat
2026-10-27 02:00:21 +01:00
co-authored by Claude Sonnet 5.5
parent d3c46dc9cb
commit 09a0fe1ce1
3 changed files with 1 additions and 30 deletions
-27
View File
@@ -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
------------------------------------------------------------------------
+1 -1
View File
@@ -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
-2
View File
@@ -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",