korCaptain-FindTomb icon

FindTomb

Tracks your recent deaths and shows tiered-colored, numbered grave pins on the map plus a compass VFX pointing to your oldest unrecovered grave.

CHANGELOG

Changelog / 변경 로그

[1.0.1] - 2026-08-06

Files Modified / 수정 파일

Plugin.cs · GraveDirectionVFX.cs · MinimapPinReconciler.cs · TombRecord.cs · TombTrackerManager.cs · GraveTrackingState.cs · DebugCommands.cs · Patches/PlayerPatches.cs

  • ✅fix1 : [PlayerPatches.cs, GraveDirectionVFX.cs, MinimapPinReconciler.cs] Fixed the direction VFX and minimap pin tier colors breaking after reconnecting (disconnect + rejoin) — reconnecting fully reloads the Unity scene, destroying and recreating ZNetScene/Minimap, but the mod's cached prefab/pin references were static and survived across the reload, pointing at now-destroyed objects. Added ResetPrefabCache()/ResetForNewSession(), called from the Player.SetLocalPlayer postfix (fires exactly once per connect), so every (re)connect re-resolves everything fresh.
  • ✅fix2 : [MinimapPinReconciler.cs] Fixed a stale/ghost grave record permanently stuck in save data (already looted and destroyed in-world, but never removed from tracking, leaving a VFX pointing at nothing forever). The pin-reconcile fallback now checks ZDOMan.GetZDO() after a timeout to distinguish "really destroyed" from "just not loaded nearby yet", and auto-removes tracking for graves confirmed gone.
  • ✅feat1 : [GraveDirectionVFX.cs, GraveTrackingState.cs] Changed the direction VFX target from "most recent grave" to "oldest grave" (the one you'd want to recover first), auto-advancing to the next-oldest once the current target is fully looted. VFX length now scales with distance (stretches when far, shrinks as you approach) instead of a fixed size.
  • ✅feat2 : [MinimapPinReconciler.cs, TombRecord.cs] Added a death-order number badge (1~5, 1 = first death) above each grave's minimap pin, matching the same numbering the direction VFX uses.
  • ✅feat3 : [Plugin.cs, GraveDirectionVFX.cs] Added Ctrl+X (hide the direction indicator until your next death) and Ctrl+. (manually point at the next grave) keybinds, configurable via ConfigEntry<KeyboardShortcut>. Config tooltips are localized to Korean/English based on Valheim's own language setting (PlayerPrefs.GetString("language")), so ConfigurationManager (F1) shows the right language automatically. (An earlier on-screen X/arrow button HUD was tried and removed — Unity always renders Screen Space Overlay canvases like the inventory screen above World Space ones and steals their clicks, so a feet-anchored world-space button could never actually be clicked; keybinds replaced it entirely.)
  • ✅fix1 : [PlayerPatches.cs, GraveDirectionVFX.cs, MinimapPinReconciler.cs] 재접속(디스커넥트 후 재접속) 시 방향 VFX와 미니맵 핀 티어 색상이 깨지던 문제 수정 — 재접속은 유니티 씬을 통째로 다시 로드해서 ZNetScene/Minimap이 파괴·재생성되는데, 모드가 들고 있던 프리팹/핀 참조가 static 캐시라 재로드 후에도 살아남아 이미 파괴된 오브젝트를 계속 가리키고 있던 것이 원인. ResetPrefabCache()/ResetForNewSession()을 추가해 (재)접속마다 정확히 1회 호출되는 Player.SetLocalPlayer postfix에서 모든 캐시를 초기화하도록 함.
  • ✅fix2 : [MinimapPinReconciler.cs] 세이브 데이터에 영구적으로 낀 유령 무덤 레코드(이미 회수·파괴됐지만 추적에서 안 빠져서 VFX가 계속 허공을 가리키던 문제) 수정. 핀 재연결 로직이 타임아웃 후 ZDOMan.GetZDO()로 "진짜 파괴된 것"과 "아직 구역 미로드라 못 찾는 것"을 구분해서, 진짜 없는 무덤은 추적을 자동 해제하도록 함.
  • ✅feat1 : [GraveDirectionVFX.cs, GraveTrackingState.cs] 방향 VFX가 가리키는 대상을 "최신 무덤"에서 "가장 오래된 무덤"(먼저 회수해야 할 무덤)으로 변경, 전량 회수하면 자동으로 다음 오래된 무덤을 가리킴. VFX 길이도 고정 크기 대신 거리에 비례하도록 변경(멀면 늘어나고 가까워지면 줄어듦).
  • ✅feat2 : [MinimapPinReconciler.cs, TombRecord.cs] 미니맵 무덤 핀 위에 사망 순번 숫자(1~5, 1=최초 사망) 배지를 추가, 방향 VFX와 동일한 순번 기준 사용.
  • ✅feat3 : [Plugin.cs, GraveDirectionVFX.cs] Ctrl+X(다음 죽음 전까지 방향 표시 숨기기)/Ctrl+.(다음 무덤 수동 지정) 단축키 추가, ConfigEntry<KeyboardShortcut>으로 config에서 변경 가능. Config 설명(툴팁)은 발헤임 게임 설정 언어(PlayerPrefs.GetString("language"))에 따라 한국어/영어로 자동 전환되어 F1 ConfigurationManager에서 알맞은 언어로 표시됨. (초기에 화면에 X/화살표 버튼 UI를 시도했다가 제거함 — 유니티는 인벤토리 창 같은 Screen Space Overlay 캔버스를 World Space 캔버스보다 항상 위에 그리고 클릭도 먼저 가로채서, 발밑에 붙인 월드스페이스 버튼은 애초에 클릭이 불가능한 구조였음. 단축키로 완전히 대체함.)

[1.0.0] - 2026-08-05

  • Initial Release: Track grave locations for up to 5 recent deaths

  • World map pin tier color display (Red → Pink → Orange → Yellow → White)

  • Automatically clear the corresponding grave slot and promote the remainder when all items are retrieved

  • Character-centric latest grave direction guide VFX

  • 최초 릴리스: 최근 사망 5회까지 무덤 위치 추적

  • 월드맵 핀 티어 색상 표시 (빨강→분홍→주황→노랑→흰색)

  • 아이템 전량 회수 시 해당 무덤 슬롯 자동 정리 및 나머지 승격

  • 캐릭터 중심 최신 무덤 방향 안내 VFX