bridge: REQ + RES — config reset fix (v1.0.2, SERVER→COMMON)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
60740386ac
commit
fe6445c023
@@ -0,0 +1,7 @@
|
||||
# Bug Fix + Feature Request: Rules Mod Config Reset + Versioning
|
||||
|
||||
**Date:** 2026-04-13
|
||||
**Topic:** Fix Forge config reset on startup, introduce version control
|
||||
**Priority:** HIGH — rules mod broken on Otherworld
|
||||
**Filed by:** Chronicler #86
|
||||
**Status:** RESOLVED in v1.0.2
|
||||
@@ -0,0 +1,33 @@
|
||||
# Architectural Response
|
||||
|
||||
**Re:** REQ-2026-04-13-rules-mod-config-fix-versioning
|
||||
**Date:** 2026-04-13
|
||||
|
||||
## 1. Verdict
|
||||
Fixed in v1.0.2. Root cause was `ModConfig.Type.SERVER` — switched to `COMMON`.
|
||||
|
||||
## 2. What Changed
|
||||
- SERVER configs in `world/serverconfig/` are tied to world load/unload lifecycle — Forge overwrites them every restart
|
||||
- COMMON configs in `config/` load once at startup and persist reliably
|
||||
- Config path: `config/firefrostrules-common.toml` (was `world/serverconfig/firefrostrules-server.toml`)
|
||||
- Loading handler + version bump to 1.0.2 applied to all 6 builds
|
||||
- 1.16.5 uses `ModConfig.Loading` (inner class), 1.20.1+ uses `ModConfigEvent.Loading`
|
||||
|
||||
## 3. Deliverables (all committed + pushed)
|
||||
- firefrostrules-1.0.2-1.21.1-neoforge.jar
|
||||
- firefrostrules-1.0.2-1.20.1-forge.jar
|
||||
- firefrostrules-1.0.2-1.16.5-forge.jar
|
||||
- discord-rules-1.0.2-1.21.1-neoforge.jar
|
||||
- discord-rules-1.0.2-1.20.1-forge.jar
|
||||
- discord-rules-1.0.2-1.16.5-forge.jar
|
||||
- CHANGELOG.md, INSTALL.md, CLAUDE.md updated
|
||||
|
||||
## 4. Otherworld Deploy Steps
|
||||
1. Stop Otherworld
|
||||
2. Replace jar with firefrostrules-1.0.2-1.20.1-forge.jar
|
||||
3. Delete old world/serverconfig/firefrostrules-server.toml
|
||||
4. Start server — generates config/firefrostrules-common.toml
|
||||
5. Stop — edit config with real values
|
||||
6. Start — values persist
|
||||
7. Restart again — confirm persistence
|
||||
8. Player runs /rules — real Discord rules show
|
||||
Reference in New Issue
Block a user