ConquestDuels Regeneration System Update – April 2025
A rock-solid overhaul of our regeneration engine – optimized, future-proofed, and ready for massive arenas.
✅ What's New:
➤ Int-to-Long Upgrade Across the Board
- All block-level operations (snapshot capture, regeneration, volume checks) now use
long for X/Y/Z coordinates.
- Prevents silent overflows on large regions (over 2.1 billion blocks).
- Snapshot keys now safely store and load long-based coordinates without truncation.
➤ Volume Check Fixes for Large Arenas
-
/arena setregion and
/arena enableregen now use
long volume math to safely support arenas larger than 32-bit limits.
- Configurable limits now pulled via
getLong() to match.
➤ Smart Snapshot Loading & Saving
- Snapshot saving no longer skips tiny arenas due to false "empty" detection.
- Chunk loading now handles large file names with long-safe parsing (
chunk_-187442_442.dat.gz fully supported).
- Async batch writing tuned for low TPS impact and reliability.
➤ Locking & Queued Task Safety
- All async snapshot and regen operations now respect
safe locking via
SnapshotTaskController and queue states.
- Prevents double-snapshot issues or regen from launching twice mid-restore.
Behind the Scenes:
- Optimized
ChunkCoordModel and
ChunkSnapshotModel for scalable memory usage.
- TPS-aware snapshot batching with Spark still in place — no changes needed.
- Regen manager now gracefully recovers from invalid snapshots or missing chunk data.
Ready for deployment — and fully backward-compatible with existing saves.
Got questions, bugs, or want to showcase your arena builds? Drop them below!