cobblemonfullrestore-neoforge-1.2.0-beta.2.jar
Curse Maven Snippet
What's new
## 1.2.0-beta.2
- Added NeoForge support alongside Fabric for Minecraft 1.21.1, Java 21, and Cobblemon 1.7.x/1.8.x.
- Hardened restores with save-queue synchronization, reconnect protection, source checksums, atomic replacement, and crash recovery.
- Added strict NBT/gzip integrity checks, safer snapshot retention, and `/cfr reload`.
- Added explicit offline automatic-snapshot restoration with `/cfr restore offline <uuid> pc snapshot <index>` and the equivalent `party` command.
- Snapshot indices follow descending filename order (index 0 first); only regular `.dat.auto.*` files matching the target UUID and supported timestamp naming pattern are eligible. `.dat.crash.*` safety backups are excluded.
- Snapshot restores require the identical command twice within 30 seconds; confirmation shows the selected filename and SHA-256. Invalid indices or corrupted selected snapshots are rejected without falling back to another source.
- PC-only restoration replaces PC contents without merging newly created contents or restoring the Party. Existing staging, digest verification, save-queue coordination, cache eviction, stale-save protection, and login safeguards are retained.
- **Changed:** backups/restores require OP level 2; external restores use `pokemon/cfr-imports`; empty or invalid recovery sources are rejected.
- Existing worlds and backup filenames remain compatible. Back up your world before updating; cross-version Cobblemon data downgrades are not supported.
- **Testing:** reported automated results: 27 Java tests passed, 1 skipped, and 5 Python tests passed; Gradle common tests, Fabric/NeoForge builds, and packaging checks passed. Regression tests cover snapshot ordering/selection, invalid indices, corrupted-source rejection, confirmation, and PC-only replacement with Party preservation.
- **Build verification:** a subsequent local `./gradlew clean :fabric:build --stacktrace` was reported successful. The installed and built Fabric JARs were independently confirmed to have matching SHA-256 hashes.
- **Manual testing (reported PASS):** Minecraft 1.21.1, Fabric Loader 0.20.1, Cobblemon 1.7.3, CFR 1.2.0-beta.2. Offline PC recovery from healthy `.dat.old` succeeded with a `.dat.crash.*` safety backup; login recovery with healthy `.dat.old` separately confirmed Cobblemon's built-in fallback.
- **Disaster recovery (reported PASS):** after both PC `.dat` and `.dat.old` were corrupted and Cobblemon created an empty PC, `pc snapshot 0` displayed the source filename/hash, required confirmation, and completed with PC=1, Party=0. All three original Abras returned on rejoin. The restored PC (1,089 bytes) and unchanged Party (837 bytes) matched their original SHA-256 baselines after disconnect and clean shutdown; the three Abras remained present after restart and rejoin.
- Tested on a **dedicated server** not yet on singleplayer and is still a beta. Contact me on discord for any feedbacks.
**Discord**: zmoonmaru
This mod has no additional files

