fix: rebuild packs with compacted .ldb files, bump to 1.3.2

This commit is contained in:
2026-06-02 15:41:04 +01:00
parent 89a4314ea7
commit 523b1e50c8
26 changed files with 24 additions and 5 deletions
+3
View File
@@ -63,6 +63,9 @@ async function buildPack(packDir, items) {
await db.put(`!items!${id}`, JSON.stringify(doc));
}
// Force compaction: flushes WAL (.log) into proper SST (.ldb) files
// Foundry requires .ldb format — without this the packs appear empty
await db.compactRange('\x00', '\xff');
await db.close();
console.log(` ✓ ${items.length} items → ${packDir.replace(__dir, '.')}`);
}
Binary file not shown.
View File
Binary file not shown.
+5 -1
View File
@@ -1 +1,5 @@
2026/06/02-14:23:08.429103 faef85fbefa0 Delete type=3 #1
2026/06/02-15:40:51.381050 17272f000 Delete type=3 #1
2026/06/02-15:40:51.382127 1737d3000 Level-0 table #5: started
2026/06/02-15:40:51.382280 1737d3000 Level-0 table #5: 1620 bytes OK
2026/06/02-15:40:51.382338 1737d3000 Delete type=0 #3
2026/06/02-15:40:51.382374 1737d3000 Manual compaction at level-0 from '\x00' @ 72057594037927935 : 1 .. '\xc3\xbf' @ 0 : 0; will stop at (end)
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
Binary file not shown.
+5 -1
View File
@@ -1 +1,5 @@
2026/06/02-14:23:08.439934 faef77ffefa0 Delete type=3 #1
2026/06/02-15:40:51.383831 173747000 Delete type=3 #1
2026/06/02-15:40:51.384243 1737d3000 Level-0 table #5: started
2026/06/02-15:40:51.384417 1737d3000 Level-0 table #5: 4578 bytes OK
2026/06/02-15:40:51.384472 1737d3000 Delete type=0 #3
2026/06/02-15:40:51.384516 1737d3000 Manual compaction at level-0 from '\x00' @ 72057594037927935 : 1 .. '\xc3\xbf' @ 0 : 0; will stop at (end)
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
Binary file not shown.
+5 -1
View File
@@ -1 +1,5 @@
2026/06/02-14:23:08.447905 faef857aefa0 Delete type=3 #1
2026/06/02-15:40:51.389120 172f3b000 Delete type=3 #1
2026/06/02-15:40:51.390450 1737d3000 Level-0 table #5: started
2026/06/02-15:40:51.390888 1737d3000 Level-0 table #5: 15376 bytes OK
2026/06/02-15:40:51.391010 1737d3000 Delete type=0 #3
2026/06/02-15:40:51.391095 1737d3000 Manual compaction at level-0 from '\x00' @ 72057594037927935 : 1 .. '\xc3\xbf' @ 0 : 0; will stop at (end)
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
Binary file not shown.
+5 -1
View File
@@ -1 +1,5 @@
2026/06/02-14:23:08.461753 faef85fbefa0 Delete type=3 #1
2026/06/02-15:40:51.393131 171f23000 Delete type=3 #1
2026/06/02-15:40:51.393701 1737d3000 Level-0 table #5: started
2026/06/02-15:40:51.393847 1737d3000 Level-0 table #5: 6422 bytes OK
2026/06/02-15:40:51.393897 1737d3000 Delete type=0 #3
2026/06/02-15:40:51.393935 1737d3000 Manual compaction at level-0 from '\x00' @ 72057594037927935 : 1 .. '\xc3\xbf' @ 0 : 0; will stop at (end)
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -2,7 +2,7 @@
"id": "zero-engine",
"title": "Zero Engine (SLA Industries)",
"description": "A basic game system for SLA Industries using the Zero Engine rules.",
"version": "1.3.1",
"version": "1.3.2",
"compatibility": {
"minimum": 13,
"verified": "14.359"