mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-31 03:46:56 +00:00
0.1.141: Diagnose fuer empfangene Datensaetze (/fwcodex share)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
55c0415450
commit
1e804ad876
@@ -1202,6 +1202,21 @@ function Sync:Debug()
|
||||
FW:Print("Gesendet nach Art: " .. Types(st.txType))
|
||||
FW:Print("Empfangen nach Art: " .. Types(st.rxType))
|
||||
FW:Print(string.format("Bekannte Spieler (letzte Stunde): %d", self:HeardCount()))
|
||||
local function Letters(by)
|
||||
local o = {}
|
||||
for _, l in ipairs({ "u", "o", "q", "i", "x", "t", "p", "z", "g", "h", "f" }) do
|
||||
if by[l] then o[#o + 1] = l .. "=" .. by[l] end
|
||||
end
|
||||
return #o > 0 and table.concat(o, " ") or "-"
|
||||
end
|
||||
FW:Print("Eigene Datensaetze nach Art: " .. Letters(Share.OwnInfo()))
|
||||
for _, r in ipairs(Share.RemoteInfo()) do
|
||||
FW:Print(string.format("Von %s: Dev %s, normal %d, Wege/Punkte %d | %s", tostring(r.name), r.dev and "ja" or "NEIN", r.n, r.np, Letters(r.by)))
|
||||
end
|
||||
if Codex.Spots then
|
||||
FW:Print(string.format("Ortspunkte sichtbar: %d (davon empfangen: %d), Verbindungen empfangen: %d",
|
||||
Codex.Spots.Count(), #Share.RemoteRecords("h"), #Share.RemoteRecords("g")))
|
||||
end
|
||||
end
|
||||
|
||||
function Sync:Stats()
|
||||
|
||||
Reference in New Issue
Block a user