docs(mods): add standalone mod-dev-docs handbook and launcher quick-open button

This commit is contained in:
N0VAN0M4LY committed 2026-12-03 02:51:54 +08:00
1 parent 5983e3f3e2
commit aa952e7cca
26 files changed
+1619 -145

No files matched your search

@@ -0,0 +1,21 @@
# 07 · Troubleshooting & Best Practices
## 1. Where to Check Logs
Open **Settings › Diagnostics › Open logs folder** or **About › Export diagnostics**:
- **`launcher.log`**: filter `[build]` for pack/GUI/exe patch reports, `[mods]` for Junction mount and native-file conflict warnings, and `[mod:<id>]` for server script logs and stack traces.
- **`<copy>/.game_logs/*.clog`**: client Quirrel runtime errors and `[PACK]` / `pkg_user` asset loading logs.
## 2. Common Issues
- **Discovery error in Mods page**: check `mod.jsonc` JSON syntax, unknown keys, `id` format, and `server.entry` path.
- **Blocking errors on Launch**: enable missing `requires` dependencies or disable one of two mutually conflicting mods.
- **Node TS syntax error**: avoid `enum`/`namespace`/parameter properties in raw `.ts`, or bundle to `.mjs`.
- **`overlaps protected core patch`**: mod `exe` patch collided with a locked core isolation patch; choose a non-overlapping site.
- **Client hangs at "Loading"**: run full `sq.exe` `compilestring` bytecode checks on all modified/added `.nut` files.
## 3. Cross-Drive & Non-NTFS Behavior
- NTFS drives mount `client/addon/` and exclusive `UserSkins/`/`UserSights/`/`UserMissions/` folders via cross-drive **NTFS Directory Junctions** (no admin required, 0 extra space).
- Flat shared files (`sound/mod/*.bank`) try file symlink → same-drive hardlink → size/mtime cached copy.
- exFAT drives automatically fall back to incremental cached copies.