diff --git a/module.json b/module.json index a3ec1bd..317ccbc 100644 --- a/module.json +++ b/module.json @@ -9,6 +9,7 @@ }, "description": "Module de compendium et d'outils Mongoose Traveller 2e pour FoundryVTT écrit par JdR.Ninja.\nInclut les commandes /commerce, /pnj, /rencontre et /mission pour automatiser le commerce, les PNJ rapides, les rencontres et les contrats aléatoires. La fenêtre /pnj inclut un onglet 'PNJ Détaillé' pour la génération de PNJ Traveller selon les règles du générateur officiel, en s'appuyant sur les compétences natives des fiches.", "esmodules": [ + "scripts/batchNpcCreator.js", "scripts/commerce.js", "scripts/npc.js", "scripts/sector.js", diff --git a/packs/armes/000134.log b/packs/armes/000137.log similarity index 100% rename from packs/armes/000134.log rename to packs/armes/000137.log diff --git a/packs/armes/CURRENT b/packs/armes/CURRENT index c39c670..0eb07d3 100644 --- a/packs/armes/CURRENT +++ b/packs/armes/CURRENT @@ -1 +1 @@ -MANIFEST-000132 +MANIFEST-000136 diff --git a/packs/armes/LOG b/packs/armes/LOG index 1048abd..8df3dff 100644 --- a/packs/armes/LOG +++ b/packs/armes/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:58.023135 7fc410ffe6c0 Recovering log #130 -2026/06/12-20:52:58.033792 7fc410ffe6c0 Delete type=3 #128 -2026/06/12-20:52:58.033845 7fc410ffe6c0 Delete type=0 #130 -2026/06/12-20:53:22.703483 7fc3c11be6c0 Level-0 table #135: started -2026/06/12-20:53:22.703533 7fc3c11be6c0 Level-0 table #135: 0 bytes OK -2026/06/12-20:53:22.710309 7fc3c11be6c0 Delete type=0 #133 -2026/06/12-20:53:22.717089 7fc3c11be6c0 Manual compaction at level-0 from '!folders!673DRfEBYUliGnKJ' @ 72057594037927935 : 1 .. '!items!yoIqL0RQEnzNVJB6' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.724385 7fc3c11be6c0 Manual compaction at level-1 from '!folders!673DRfEBYUliGnKJ' @ 72057594037927935 : 1 .. '!items!yoIqL0RQEnzNVJB6' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.874833 7f050bfff6c0 Recovering log #134 +2026/07/07-18:58:28.885341 7f050bfff6c0 Delete type=3 #132 +2026/07/07-18:58:28.885401 7f050bfff6c0 Delete type=0 #134 diff --git a/packs/armes/LOG.old b/packs/armes/LOG.old index 3658466..1048abd 100644 --- a/packs/armes/LOG.old +++ b/packs/armes/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.594732 7fc3c3fff6c0 Recovering log #126 -2026/06/12-20:51:44.605104 7fc3c3fff6c0 Delete type=3 #124 -2026/06/12-20:51:44.605163 7fc3c3fff6c0 Delete type=0 #126 -2026/06/12-20:52:05.597166 7fc3c11be6c0 Level-0 table #131: started -2026/06/12-20:52:05.597184 7fc3c11be6c0 Level-0 table #131: 0 bytes OK -2026/06/12-20:52:05.604422 7fc3c11be6c0 Delete type=0 #129 -2026/06/12-20:52:05.618860 7fc3c11be6c0 Manual compaction at level-0 from '!folders!673DRfEBYUliGnKJ' @ 72057594037927935 : 1 .. '!items!yoIqL0RQEnzNVJB6' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.619120 7fc3c11be6c0 Manual compaction at level-1 from '!folders!673DRfEBYUliGnKJ' @ 72057594037927935 : 1 .. '!items!yoIqL0RQEnzNVJB6' @ 0 : 0; will stop at (end) +2026/06/12-20:52:58.023135 7fc410ffe6c0 Recovering log #130 +2026/06/12-20:52:58.033792 7fc410ffe6c0 Delete type=3 #128 +2026/06/12-20:52:58.033845 7fc410ffe6c0 Delete type=0 #130 +2026/06/12-20:53:22.703483 7fc3c11be6c0 Level-0 table #135: started +2026/06/12-20:53:22.703533 7fc3c11be6c0 Level-0 table #135: 0 bytes OK +2026/06/12-20:53:22.710309 7fc3c11be6c0 Delete type=0 #133 +2026/06/12-20:53:22.717089 7fc3c11be6c0 Manual compaction at level-0 from '!folders!673DRfEBYUliGnKJ' @ 72057594037927935 : 1 .. '!items!yoIqL0RQEnzNVJB6' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.724385 7fc3c11be6c0 Manual compaction at level-1 from '!folders!673DRfEBYUliGnKJ' @ 72057594037927935 : 1 .. '!items!yoIqL0RQEnzNVJB6' @ 0 : 0; will stop at (end) diff --git a/packs/armes/MANIFEST-000132 b/packs/armes/MANIFEST-000136 similarity index 60% rename from packs/armes/MANIFEST-000132 rename to packs/armes/MANIFEST-000136 index 455af58..03fe0d2 100644 Binary files a/packs/armes/MANIFEST-000132 and b/packs/armes/MANIFEST-000136 differ diff --git a/packs/competences/000236.log b/packs/armures/000236.log similarity index 100% rename from packs/competences/000236.log rename to packs/armures/000236.log diff --git a/packs/armures/CURRENT b/packs/armures/CURRENT index 61135ee..32af177 100644 --- a/packs/armures/CURRENT +++ b/packs/armures/CURRENT @@ -1 +1 @@ -MANIFEST-000231 +MANIFEST-000235 diff --git a/packs/armures/LOG b/packs/armures/LOG index f6c3398..3513843 100644 --- a/packs/armures/LOG +++ b/packs/armures/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:57.899810 7fc3c37fe6c0 Recovering log #229 -2026/06/12-20:52:57.911135 7fc3c37fe6c0 Delete type=3 #227 -2026/06/12-20:52:57.911180 7fc3c37fe6c0 Delete type=0 #229 -2026/06/12-20:53:22.642554 7fc3c11be6c0 Level-0 table #234: started -2026/06/12-20:53:22.642590 7fc3c11be6c0 Level-0 table #234: 0 bytes OK -2026/06/12-20:53:22.648801 7fc3c11be6c0 Delete type=0 #232 -2026/06/12-20:53:22.649072 7fc3c11be6c0 Manual compaction at level-0 from '!items!8xqChkoKK7i0c9M1' @ 72057594037927935 : 1 .. '!items!wpBopoosZiWXjlKD' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.649091 7fc3c11be6c0 Manual compaction at level-1 from '!items!8xqChkoKK7i0c9M1' @ 72057594037927935 : 1 .. '!items!wpBopoosZiWXjlKD' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.760870 7f050bfff6c0 Recovering log #233 +2026/07/07-18:58:28.773090 7f050bfff6c0 Delete type=3 #231 +2026/07/07-18:58:28.773145 7f050bfff6c0 Delete type=0 #233 diff --git a/packs/armures/LOG.old b/packs/armures/LOG.old index 4110f8e..f6c3398 100644 --- a/packs/armures/LOG.old +++ b/packs/armures/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.470883 7fc3c37fe6c0 Recovering log #225 -2026/06/12-20:51:44.481326 7fc3c37fe6c0 Delete type=3 #223 -2026/06/12-20:51:44.481382 7fc3c37fe6c0 Delete type=0 #225 -2026/06/12-20:52:05.534179 7fc3c11be6c0 Level-0 table #230: started -2026/06/12-20:52:05.534214 7fc3c11be6c0 Level-0 table #230: 0 bytes OK -2026/06/12-20:52:05.540979 7fc3c11be6c0 Delete type=0 #228 -2026/06/12-20:52:05.541333 7fc3c11be6c0 Manual compaction at level-0 from '!items!8xqChkoKK7i0c9M1' @ 72057594037927935 : 1 .. '!items!wpBopoosZiWXjlKD' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.562210 7fc3c11be6c0 Manual compaction at level-1 from '!items!8xqChkoKK7i0c9M1' @ 72057594037927935 : 1 .. '!items!wpBopoosZiWXjlKD' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.899810 7fc3c37fe6c0 Recovering log #229 +2026/06/12-20:52:57.911135 7fc3c37fe6c0 Delete type=3 #227 +2026/06/12-20:52:57.911180 7fc3c37fe6c0 Delete type=0 #229 +2026/06/12-20:53:22.642554 7fc3c11be6c0 Level-0 table #234: started +2026/06/12-20:53:22.642590 7fc3c11be6c0 Level-0 table #234: 0 bytes OK +2026/06/12-20:53:22.648801 7fc3c11be6c0 Delete type=0 #232 +2026/06/12-20:53:22.649072 7fc3c11be6c0 Manual compaction at level-0 from '!items!8xqChkoKK7i0c9M1' @ 72057594037927935 : 1 .. '!items!wpBopoosZiWXjlKD' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.649091 7fc3c11be6c0 Manual compaction at level-1 from '!items!8xqChkoKK7i0c9M1' @ 72057594037927935 : 1 .. '!items!wpBopoosZiWXjlKD' @ 0 : 0; will stop at (end) diff --git a/packs/armures/MANIFEST-000231 b/packs/armures/MANIFEST-000235 similarity index 61% rename from packs/armures/MANIFEST-000231 rename to packs/armures/MANIFEST-000235 index 4682bb3..5aa3440 100644 Binary files a/packs/armures/MANIFEST-000231 and b/packs/armures/MANIFEST-000235 differ diff --git a/packs/armures/000233.log b/packs/carrieres/000120.log similarity index 100% rename from packs/armures/000233.log rename to packs/carrieres/000120.log diff --git a/packs/carrieres/CURRENT b/packs/carrieres/CURRENT index 4843639..8880a30 100644 --- a/packs/carrieres/CURRENT +++ b/packs/carrieres/CURRENT @@ -1 +1 @@ -MANIFEST-000115 +MANIFEST-000119 diff --git a/packs/carrieres/LOG b/packs/carrieres/LOG index c749046..3290f5a 100644 --- a/packs/carrieres/LOG +++ b/packs/carrieres/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:58.051634 7fc410ffe6c0 Recovering log #113 -2026/06/12-20:52:58.062421 7fc410ffe6c0 Delete type=3 #111 -2026/06/12-20:52:58.062480 7fc410ffe6c0 Delete type=0 #113 -2026/06/12-20:53:22.717098 7fc3c11be6c0 Level-0 table #118: started -2026/06/12-20:53:22.717122 7fc3c11be6c0 Level-0 table #118: 0 bytes OK -2026/06/12-20:53:22.724248 7fc3c11be6c0 Delete type=0 #116 -2026/06/12-20:53:22.822698 7fc3c11be6c0 Manual compaction at level-0 from '!items!57vgsVVCy9MRKM2M' @ 72057594037927935 : 1 .. '!items!vJInnoigCTJzuY2S' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.829756 7fc3c11be6c0 Manual compaction at level-1 from '!items!57vgsVVCy9MRKM2M' @ 72057594037927935 : 1 .. '!items!vJInnoigCTJzuY2S' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.899845 7f050b7fe6c0 Recovering log #117 +2026/07/07-18:58:28.909275 7f050b7fe6c0 Delete type=3 #115 +2026/07/07-18:58:28.909325 7f050b7fe6c0 Delete type=0 #117 diff --git a/packs/carrieres/LOG.old b/packs/carrieres/LOG.old index 61c9c41..c749046 100644 --- a/packs/carrieres/LOG.old +++ b/packs/carrieres/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.625465 7fc3c37fe6c0 Recovering log #109 -2026/06/12-20:51:44.635539 7fc3c37fe6c0 Delete type=3 #107 -2026/06/12-20:51:44.635595 7fc3c37fe6c0 Delete type=0 #109 -2026/06/12-20:52:05.611307 7fc3c11be6c0 Level-0 table #114: started -2026/06/12-20:52:05.611325 7fc3c11be6c0 Level-0 table #114: 0 bytes OK -2026/06/12-20:52:05.618732 7fc3c11be6c0 Delete type=0 #112 -2026/06/12-20:52:05.619090 7fc3c11be6c0 Manual compaction at level-0 from '!items!57vgsVVCy9MRKM2M' @ 72057594037927935 : 1 .. '!items!vJInnoigCTJzuY2S' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.619279 7fc3c11be6c0 Manual compaction at level-1 from '!items!57vgsVVCy9MRKM2M' @ 72057594037927935 : 1 .. '!items!vJInnoigCTJzuY2S' @ 0 : 0; will stop at (end) +2026/06/12-20:52:58.051634 7fc410ffe6c0 Recovering log #113 +2026/06/12-20:52:58.062421 7fc410ffe6c0 Delete type=3 #111 +2026/06/12-20:52:58.062480 7fc410ffe6c0 Delete type=0 #113 +2026/06/12-20:53:22.717098 7fc3c11be6c0 Level-0 table #118: started +2026/06/12-20:53:22.717122 7fc3c11be6c0 Level-0 table #118: 0 bytes OK +2026/06/12-20:53:22.724248 7fc3c11be6c0 Delete type=0 #116 +2026/06/12-20:53:22.822698 7fc3c11be6c0 Manual compaction at level-0 from '!items!57vgsVVCy9MRKM2M' @ 72057594037927935 : 1 .. '!items!vJInnoigCTJzuY2S' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.829756 7fc3c11be6c0 Manual compaction at level-1 from '!items!57vgsVVCy9MRKM2M' @ 72057594037927935 : 1 .. '!items!vJInnoigCTJzuY2S' @ 0 : 0; will stop at (end) diff --git a/packs/carrieres/MANIFEST-000115 b/packs/carrieres/MANIFEST-000119 similarity index 63% rename from packs/carrieres/MANIFEST-000115 rename to packs/carrieres/MANIFEST-000119 index 50ad31a..80906aa 100644 Binary files a/packs/carrieres/MANIFEST-000115 and b/packs/carrieres/MANIFEST-000119 differ diff --git a/packs/carrieres/000117.log b/packs/competences/000239.log similarity index 100% rename from packs/carrieres/000117.log rename to packs/competences/000239.log diff --git a/packs/competences/CURRENT b/packs/competences/CURRENT index b4e971f..4846f49 100644 --- a/packs/competences/CURRENT +++ b/packs/competences/CURRENT @@ -1 +1 @@ -MANIFEST-000234 +MANIFEST-000238 diff --git a/packs/competences/LOG b/packs/competences/LOG index 142da6e..5583adb 100644 --- a/packs/competences/LOG +++ b/packs/competences/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:57.913632 7fc410ffe6c0 Recovering log #232 -2026/06/12-20:52:57.923055 7fc410ffe6c0 Delete type=3 #230 -2026/06/12-20:52:57.923103 7fc410ffe6c0 Delete type=0 #232 -2026/06/12-20:53:22.662427 7fc3c11be6c0 Level-0 table #237: started -2026/06/12-20:53:22.662456 7fc3c11be6c0 Level-0 table #237: 0 bytes OK -2026/06/12-20:53:22.669591 7fc3c11be6c0 Delete type=0 #235 -2026/06/12-20:53:22.676441 7fc3c11be6c0 Manual compaction at level-0 from '!items!04MdBSzwkYWUMJBC' @ 72057594037927935 : 1 .. '!items!yqjKyTCgpclCuHyK' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.676637 7fc3c11be6c0 Manual compaction at level-1 from '!items!04MdBSzwkYWUMJBC' @ 72057594037927935 : 1 .. '!items!yqjKyTCgpclCuHyK' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.774668 7f050affd6c0 Recovering log #236 +2026/07/07-18:58:28.787757 7f050affd6c0 Delete type=3 #234 +2026/07/07-18:58:28.787839 7f050affd6c0 Delete type=0 #236 diff --git a/packs/competences/LOG.old b/packs/competences/LOG.old index e221c4d..142da6e 100644 --- a/packs/competences/LOG.old +++ b/packs/competences/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.484787 7fc410ffe6c0 Recovering log #228 -2026/06/12-20:51:44.494717 7fc410ffe6c0 Delete type=3 #226 -2026/06/12-20:51:44.494769 7fc410ffe6c0 Delete type=0 #228 -2026/06/12-20:52:05.541367 7fc3c11be6c0 Level-0 table #233: started -2026/06/12-20:52:05.541402 7fc3c11be6c0 Level-0 table #233: 0 bytes OK -2026/06/12-20:52:05.548343 7fc3c11be6c0 Delete type=0 #231 -2026/06/12-20:52:05.562225 7fc3c11be6c0 Manual compaction at level-0 from '!items!04MdBSzwkYWUMJBC' @ 72057594037927935 : 1 .. '!items!yqjKyTCgpclCuHyK' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.562411 7fc3c11be6c0 Manual compaction at level-1 from '!items!04MdBSzwkYWUMJBC' @ 72057594037927935 : 1 .. '!items!yqjKyTCgpclCuHyK' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.913632 7fc410ffe6c0 Recovering log #232 +2026/06/12-20:52:57.923055 7fc410ffe6c0 Delete type=3 #230 +2026/06/12-20:52:57.923103 7fc410ffe6c0 Delete type=0 #232 +2026/06/12-20:53:22.662427 7fc3c11be6c0 Level-0 table #237: started +2026/06/12-20:53:22.662456 7fc3c11be6c0 Level-0 table #237: 0 bytes OK +2026/06/12-20:53:22.669591 7fc3c11be6c0 Delete type=0 #235 +2026/06/12-20:53:22.676441 7fc3c11be6c0 Manual compaction at level-0 from '!items!04MdBSzwkYWUMJBC' @ 72057594037927935 : 1 .. '!items!yqjKyTCgpclCuHyK' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.676637 7fc3c11be6c0 Manual compaction at level-1 from '!items!04MdBSzwkYWUMJBC' @ 72057594037927935 : 1 .. '!items!yqjKyTCgpclCuHyK' @ 0 : 0; will stop at (end) diff --git a/packs/competences/MANIFEST-000234 b/packs/competences/MANIFEST-000238 similarity index 60% rename from packs/competences/MANIFEST-000234 rename to packs/competences/MANIFEST-000238 index 5427fce..368f930 100644 Binary files a/packs/competences/MANIFEST-000234 and b/packs/competences/MANIFEST-000238 differ diff --git a/packs/contenant-sac-coffre/000170.log b/packs/contenant-sac-coffre/000173.log similarity index 100% rename from packs/contenant-sac-coffre/000170.log rename to packs/contenant-sac-coffre/000173.log diff --git a/packs/contenant-sac-coffre/CURRENT b/packs/contenant-sac-coffre/CURRENT index 57112f5..647a5d6 100644 --- a/packs/contenant-sac-coffre/CURRENT +++ b/packs/contenant-sac-coffre/CURRENT @@ -1 +1 @@ -MANIFEST-000168 +MANIFEST-000172 diff --git a/packs/contenant-sac-coffre/LOG b/packs/contenant-sac-coffre/LOG index 44594d8..ba909b8 100644 --- a/packs/contenant-sac-coffre/LOG +++ b/packs/contenant-sac-coffre/LOG @@ -1,7 +1,3 @@ -2026/06/12-20:52:57.981469 7fc410ffe6c0 Recovering log #166 -2026/06/12-20:52:57.992240 7fc410ffe6c0 Delete type=3 #164 -2026/06/12-20:52:57.992286 7fc410ffe6c0 Delete type=0 #166 -2026/06/12-20:53:22.676645 7fc3c11be6c0 Level-0 table #171: started -2026/06/12-20:53:22.676670 7fc3c11be6c0 Level-0 table #171: 0 bytes OK -2026/06/12-20:53:22.683046 7fc3c11be6c0 Delete type=0 #169 -2026/06/12-20:53:22.703339 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.838436 7f050a7fc6c0 Recovering log #170 +2026/07/07-18:58:28.849308 7f050a7fc6c0 Delete type=3 #168 +2026/07/07-18:58:28.849364 7f050a7fc6c0 Delete type=0 #170 diff --git a/packs/contenant-sac-coffre/LOG.old b/packs/contenant-sac-coffre/LOG.old index 588f0b4..44594d8 100644 --- a/packs/contenant-sac-coffre/LOG.old +++ b/packs/contenant-sac-coffre/LOG.old @@ -1,7 +1,7 @@ -2026/06/12-20:51:44.553830 7fc3c37fe6c0 Recovering log #162 -2026/06/12-20:51:44.563465 7fc3c37fe6c0 Delete type=3 #160 -2026/06/12-20:51:44.563519 7fc3c37fe6c0 Delete type=0 #162 -2026/06/12-20:52:05.576474 7fc3c11be6c0 Level-0 table #167: started -2026/06/12-20:52:05.576496 7fc3c11be6c0 Level-0 table #167: 0 bytes OK -2026/06/12-20:52:05.583147 7fc3c11be6c0 Delete type=0 #165 -2026/06/12-20:52:05.590265 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.981469 7fc410ffe6c0 Recovering log #166 +2026/06/12-20:52:57.992240 7fc410ffe6c0 Delete type=3 #164 +2026/06/12-20:52:57.992286 7fc410ffe6c0 Delete type=0 #166 +2026/06/12-20:53:22.676645 7fc3c11be6c0 Level-0 table #171: started +2026/06/12-20:53:22.676670 7fc3c11be6c0 Level-0 table #171: 0 bytes OK +2026/06/12-20:53:22.683046 7fc3c11be6c0 Delete type=0 #169 +2026/06/12-20:53:22.703339 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/contenant-sac-coffre/MANIFEST-000168 b/packs/contenant-sac-coffre/MANIFEST-000168 deleted file mode 100644 index 4c76f3e..0000000 Binary files a/packs/contenant-sac-coffre/MANIFEST-000168 and /dev/null differ diff --git a/packs/contenant-sac-coffre/MANIFEST-000172 b/packs/contenant-sac-coffre/MANIFEST-000172 new file mode 100644 index 0000000..eba689e Binary files /dev/null and b/packs/contenant-sac-coffre/MANIFEST-000172 differ diff --git a/packs/equipement/000178.log b/packs/equipement/000181.log similarity index 100% rename from packs/equipement/000178.log rename to packs/equipement/000181.log diff --git a/packs/equipement/CURRENT b/packs/equipement/CURRENT index 4802dbe..a6beb43 100644 --- a/packs/equipement/CURRENT +++ b/packs/equipement/CURRENT @@ -1 +1 @@ -MANIFEST-000176 +MANIFEST-000180 diff --git a/packs/equipement/LOG b/packs/equipement/LOG index 77645de..83bd78d 100644 --- a/packs/equipement/LOG +++ b/packs/equipement/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:57.954396 7fc410ffe6c0 Recovering log #174 -2026/06/12-20:52:57.964106 7fc410ffe6c0 Delete type=3 #172 -2026/06/12-20:52:57.964146 7fc410ffe6c0 Delete type=0 #174 -2026/06/12-20:53:22.669694 7fc3c11be6c0 Level-0 table #179: started -2026/06/12-20:53:22.669720 7fc3c11be6c0 Level-0 table #179: 0 bytes OK -2026/06/12-20:53:22.676299 7fc3c11be6c0 Delete type=0 #177 -2026/06/12-20:53:22.676452 7fc3c11be6c0 Manual compaction at level-0 from '!folders!8swFcTr6RH7BnGiu' @ 72057594037927935 : 1 .. '!items!zRJfxioYBRq4iSBR' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.676473 7fc3c11be6c0 Manual compaction at level-1 from '!folders!8swFcTr6RH7BnGiu' @ 72057594037927935 : 1 .. '!items!zRJfxioYBRq4iSBR' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.814917 7f050a7fc6c0 Recovering log #178 +2026/07/07-18:58:28.824468 7f050a7fc6c0 Delete type=3 #176 +2026/07/07-18:58:28.824528 7f050a7fc6c0 Delete type=0 #178 diff --git a/packs/equipement/LOG.old b/packs/equipement/LOG.old index cb9bf3c..77645de 100644 --- a/packs/equipement/LOG.old +++ b/packs/equipement/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.524826 7fc3c37fe6c0 Recovering log #170 -2026/06/12-20:51:44.535451 7fc3c37fe6c0 Delete type=3 #168 -2026/06/12-20:51:44.535506 7fc3c37fe6c0 Delete type=0 #170 -2026/06/12-20:52:05.562430 7fc3c11be6c0 Level-0 table #175: started -2026/06/12-20:52:05.562454 7fc3c11be6c0 Level-0 table #175: 0 bytes OK -2026/06/12-20:52:05.569802 7fc3c11be6c0 Delete type=0 #173 -2026/06/12-20:52:05.590244 7fc3c11be6c0 Manual compaction at level-0 from '!folders!8swFcTr6RH7BnGiu' @ 72057594037927935 : 1 .. '!items!zRJfxioYBRq4iSBR' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.590432 7fc3c11be6c0 Manual compaction at level-1 from '!folders!8swFcTr6RH7BnGiu' @ 72057594037927935 : 1 .. '!items!zRJfxioYBRq4iSBR' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.954396 7fc410ffe6c0 Recovering log #174 +2026/06/12-20:52:57.964106 7fc410ffe6c0 Delete type=3 #172 +2026/06/12-20:52:57.964146 7fc410ffe6c0 Delete type=0 #174 +2026/06/12-20:53:22.669694 7fc3c11be6c0 Level-0 table #179: started +2026/06/12-20:53:22.669720 7fc3c11be6c0 Level-0 table #179: 0 bytes OK +2026/06/12-20:53:22.676299 7fc3c11be6c0 Delete type=0 #177 +2026/06/12-20:53:22.676452 7fc3c11be6c0 Manual compaction at level-0 from '!folders!8swFcTr6RH7BnGiu' @ 72057594037927935 : 1 .. '!items!zRJfxioYBRq4iSBR' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.676473 7fc3c11be6c0 Manual compaction at level-1 from '!folders!8swFcTr6RH7BnGiu' @ 72057594037927935 : 1 .. '!items!zRJfxioYBRq4iSBR' @ 0 : 0; will stop at (end) diff --git a/packs/equipement/MANIFEST-000176 b/packs/equipement/MANIFEST-000180 similarity index 60% rename from packs/equipement/MANIFEST-000176 rename to packs/equipement/MANIFEST-000180 index e6f0987..eae092c 100644 Binary files a/packs/equipement/MANIFEST-000176 and b/packs/equipement/MANIFEST-000180 differ diff --git a/packs/espece/000170.log b/packs/espece/000173.log similarity index 100% rename from packs/espece/000170.log rename to packs/espece/000173.log diff --git a/packs/espece/CURRENT b/packs/espece/CURRENT index 57112f5..647a5d6 100644 --- a/packs/espece/CURRENT +++ b/packs/espece/CURRENT @@ -1 +1 @@ -MANIFEST-000168 +MANIFEST-000172 diff --git a/packs/espece/LOG b/packs/espece/LOG index e880084..c6dd482 100644 --- a/packs/espece/LOG +++ b/packs/espece/LOG @@ -1,7 +1,3 @@ -2026/06/12-20:52:57.995403 7fc3c37fe6c0 Recovering log #166 -2026/06/12-20:52:58.005793 7fc3c37fe6c0 Delete type=3 #164 -2026/06/12-20:52:58.005851 7fc3c37fe6c0 Delete type=0 #166 -2026/06/12-20:53:22.683153 7fc3c11be6c0 Level-0 table #171: started -2026/06/12-20:53:22.683178 7fc3c11be6c0 Level-0 table #171: 0 bytes OK -2026/06/12-20:53:22.690078 7fc3c11be6c0 Delete type=0 #169 -2026/06/12-20:53:22.703354 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.850671 7f050bfff6c0 Recovering log #170 +2026/07/07-18:58:28.860557 7f050bfff6c0 Delete type=3 #168 +2026/07/07-18:58:28.860610 7f050bfff6c0 Delete type=0 #170 diff --git a/packs/espece/LOG.old b/packs/espece/LOG.old index 781fb27..e880084 100644 --- a/packs/espece/LOG.old +++ b/packs/espece/LOG.old @@ -1,7 +1,7 @@ -2026/06/12-20:51:44.566595 7fc410ffe6c0 Recovering log #162 -2026/06/12-20:51:44.577675 7fc410ffe6c0 Delete type=3 #160 -2026/06/12-20:51:44.577730 7fc410ffe6c0 Delete type=0 #162 -2026/06/12-20:52:05.583251 7fc3c11be6c0 Level-0 table #167: started -2026/06/12-20:52:05.583269 7fc3c11be6c0 Level-0 table #167: 0 bytes OK -2026/06/12-20:52:05.590142 7fc3c11be6c0 Delete type=0 #165 -2026/06/12-20:52:05.590369 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.995403 7fc3c37fe6c0 Recovering log #166 +2026/06/12-20:52:58.005793 7fc3c37fe6c0 Delete type=3 #164 +2026/06/12-20:52:58.005851 7fc3c37fe6c0 Delete type=0 #166 +2026/06/12-20:53:22.683153 7fc3c11be6c0 Level-0 table #171: started +2026/06/12-20:53:22.683178 7fc3c11be6c0 Level-0 table #171: 0 bytes OK +2026/06/12-20:53:22.690078 7fc3c11be6c0 Delete type=0 #169 +2026/06/12-20:53:22.703354 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/espece/MANIFEST-000168 b/packs/espece/MANIFEST-000168 deleted file mode 100644 index 4c76f3e..0000000 Binary files a/packs/espece/MANIFEST-000168 and /dev/null differ diff --git a/packs/espece/MANIFEST-000172 b/packs/espece/MANIFEST-000172 new file mode 100644 index 0000000..eba689e Binary files /dev/null and b/packs/espece/MANIFEST-000172 differ diff --git a/packs/journal/000151.log b/packs/journal/000154.log similarity index 100% rename from packs/journal/000151.log rename to packs/journal/000154.log diff --git a/packs/journal/CURRENT b/packs/journal/CURRENT index 1dec270..d90d49e 100644 --- a/packs/journal/CURRENT +++ b/packs/journal/CURRENT @@ -1 +1 @@ -MANIFEST-000149 +MANIFEST-000153 diff --git a/packs/journal/LOG b/packs/journal/LOG index cebff72..395b1fb 100644 --- a/packs/journal/LOG +++ b/packs/journal/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:58.008917 7fc3c3fff6c0 Recovering log #147 -2026/06/12-20:52:58.019530 7fc3c3fff6c0 Delete type=3 #145 -2026/06/12-20:52:58.019585 7fc3c3fff6c0 Delete type=0 #147 -2026/06/12-20:53:22.690192 7fc3c11be6c0 Level-0 table #152: started -2026/06/12-20:53:22.690216 7fc3c11be6c0 Level-0 table #152: 0 bytes OK -2026/06/12-20:53:22.696652 7fc3c11be6c0 Delete type=0 #150 -2026/06/12-20:53:22.703367 7fc3c11be6c0 Manual compaction at level-0 from '!journal!26ZqV9BvS47hrLmV' @ 72057594037927935 : 1 .. '!journal.pages!26ZqV9BvS47hrLmV.ZS4936SEQUT9IA8i' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.717074 7fc3c11be6c0 Manual compaction at level-1 from '!journal!26ZqV9BvS47hrLmV' @ 72057594037927935 : 1 .. '!journal.pages!26ZqV9BvS47hrLmV.ZS4936SEQUT9IA8i' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.862209 7f050affd6c0 Recovering log #151 +2026/07/07-18:58:28.872180 7f050affd6c0 Delete type=3 #149 +2026/07/07-18:58:28.872220 7f050affd6c0 Delete type=0 #151 diff --git a/packs/journal/LOG.old b/packs/journal/LOG.old index 33615f4..cebff72 100644 --- a/packs/journal/LOG.old +++ b/packs/journal/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.581216 7fc3c37fe6c0 Recovering log #143 -2026/06/12-20:51:44.591542 7fc3c37fe6c0 Delete type=3 #141 -2026/06/12-20:51:44.591593 7fc3c37fe6c0 Delete type=0 #143 -2026/06/12-20:52:05.590481 7fc3c11be6c0 Level-0 table #148: started -2026/06/12-20:52:05.590505 7fc3c11be6c0 Level-0 table #148: 0 bytes OK -2026/06/12-20:52:05.597069 7fc3c11be6c0 Delete type=0 #146 -2026/06/12-20:52:05.618846 7fc3c11be6c0 Manual compaction at level-0 from '!journal!26ZqV9BvS47hrLmV' @ 72057594037927935 : 1 .. '!journal.pages!26ZqV9BvS47hrLmV.ZS4936SEQUT9IA8i' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.619137 7fc3c11be6c0 Manual compaction at level-1 from '!journal!26ZqV9BvS47hrLmV' @ 72057594037927935 : 1 .. '!journal.pages!26ZqV9BvS47hrLmV.ZS4936SEQUT9IA8i' @ 0 : 0; will stop at (end) +2026/06/12-20:52:58.008917 7fc3c3fff6c0 Recovering log #147 +2026/06/12-20:52:58.019530 7fc3c3fff6c0 Delete type=3 #145 +2026/06/12-20:52:58.019585 7fc3c3fff6c0 Delete type=0 #147 +2026/06/12-20:53:22.690192 7fc3c11be6c0 Level-0 table #152: started +2026/06/12-20:53:22.690216 7fc3c11be6c0 Level-0 table #152: 0 bytes OK +2026/06/12-20:53:22.696652 7fc3c11be6c0 Delete type=0 #150 +2026/06/12-20:53:22.703367 7fc3c11be6c0 Manual compaction at level-0 from '!journal!26ZqV9BvS47hrLmV' @ 72057594037927935 : 1 .. '!journal.pages!26ZqV9BvS47hrLmV.ZS4936SEQUT9IA8i' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.717074 7fc3c11be6c0 Manual compaction at level-1 from '!journal!26ZqV9BvS47hrLmV' @ 72057594037927935 : 1 .. '!journal.pages!26ZqV9BvS47hrLmV.ZS4936SEQUT9IA8i' @ 0 : 0; will stop at (end) diff --git a/packs/journal/MANIFEST-000149 b/packs/journal/MANIFEST-000153 similarity index 67% rename from packs/journal/MANIFEST-000149 rename to packs/journal/MANIFEST-000153 index 4971a1e..c4919fe 100644 Binary files a/packs/journal/MANIFEST-000149 and b/packs/journal/MANIFEST-000153 differ diff --git a/packs/maladie-poison-and-blessure/000178.log b/packs/maladie-poison-and-blessure/000181.log similarity index 100% rename from packs/maladie-poison-and-blessure/000178.log rename to packs/maladie-poison-and-blessure/000181.log diff --git a/packs/maladie-poison-and-blessure/CURRENT b/packs/maladie-poison-and-blessure/CURRENT index 4802dbe..a6beb43 100644 --- a/packs/maladie-poison-and-blessure/CURRENT +++ b/packs/maladie-poison-and-blessure/CURRENT @@ -1 +1 @@ -MANIFEST-000176 +MANIFEST-000180 diff --git a/packs/maladie-poison-and-blessure/LOG b/packs/maladie-poison-and-blessure/LOG index f60a2e4..f8f4c05 100644 --- a/packs/maladie-poison-and-blessure/LOG +++ b/packs/maladie-poison-and-blessure/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:57.926432 7fc3c37fe6c0 Recovering log #174 -2026/06/12-20:52:57.936438 7fc3c37fe6c0 Delete type=3 #172 -2026/06/12-20:52:57.936485 7fc3c37fe6c0 Delete type=0 #174 -2026/06/12-20:53:22.649158 7fc3c11be6c0 Level-0 table #179: started -2026/06/12-20:53:22.649178 7fc3c11be6c0 Level-0 table #179: 0 bytes OK -2026/06/12-20:53:22.655504 7fc3c11be6c0 Delete type=0 #177 -2026/06/12-20:53:22.676414 7fc3c11be6c0 Manual compaction at level-0 from '!items!QHovFMj93BC7bqBu' @ 72057594037927935 : 1 .. '!items!yleVHgRqGoYLvzxT' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.676616 7fc3c11be6c0 Manual compaction at level-1 from '!items!QHovFMj93BC7bqBu' @ 72057594037927935 : 1 .. '!items!yleVHgRqGoYLvzxT' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.790161 7f050a7fc6c0 Recovering log #178 +2026/07/07-18:58:28.799646 7f050a7fc6c0 Delete type=3 #176 +2026/07/07-18:58:28.799712 7f050a7fc6c0 Delete type=0 #178 diff --git a/packs/maladie-poison-and-blessure/LOG.old b/packs/maladie-poison-and-blessure/LOG.old index 78bccbc..f60a2e4 100644 --- a/packs/maladie-poison-and-blessure/LOG.old +++ b/packs/maladie-poison-and-blessure/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.497744 7fc3c3fff6c0 Recovering log #170 -2026/06/12-20:51:44.508610 7fc3c3fff6c0 Delete type=3 #168 -2026/06/12-20:51:44.508662 7fc3c3fff6c0 Delete type=0 #170 -2026/06/12-20:52:05.548467 7fc3c11be6c0 Level-0 table #175: started -2026/06/12-20:52:05.548492 7fc3c11be6c0 Level-0 table #175: 0 bytes OK -2026/06/12-20:52:05.555571 7fc3c11be6c0 Delete type=0 #173 -2026/06/12-20:52:05.562235 7fc3c11be6c0 Manual compaction at level-0 from '!items!QHovFMj93BC7bqBu' @ 72057594037927935 : 1 .. '!items!yleVHgRqGoYLvzxT' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.562402 7fc3c11be6c0 Manual compaction at level-1 from '!items!QHovFMj93BC7bqBu' @ 72057594037927935 : 1 .. '!items!yleVHgRqGoYLvzxT' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.926432 7fc3c37fe6c0 Recovering log #174 +2026/06/12-20:52:57.936438 7fc3c37fe6c0 Delete type=3 #172 +2026/06/12-20:52:57.936485 7fc3c37fe6c0 Delete type=0 #174 +2026/06/12-20:53:22.649158 7fc3c11be6c0 Level-0 table #179: started +2026/06/12-20:53:22.649178 7fc3c11be6c0 Level-0 table #179: 0 bytes OK +2026/06/12-20:53:22.655504 7fc3c11be6c0 Delete type=0 #177 +2026/06/12-20:53:22.676414 7fc3c11be6c0 Manual compaction at level-0 from '!items!QHovFMj93BC7bqBu' @ 72057594037927935 : 1 .. '!items!yleVHgRqGoYLvzxT' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.676616 7fc3c11be6c0 Manual compaction at level-1 from '!items!QHovFMj93BC7bqBu' @ 72057594037927935 : 1 .. '!items!yleVHgRqGoYLvzxT' @ 0 : 0; will stop at (end) diff --git a/packs/maladie-poison-and-blessure/MANIFEST-000176 b/packs/maladie-poison-and-blessure/MANIFEST-000180 similarity index 62% rename from packs/maladie-poison-and-blessure/MANIFEST-000176 rename to packs/maladie-poison-and-blessure/MANIFEST-000180 index 7af93a2..002b993 100644 Binary files a/packs/maladie-poison-and-blessure/MANIFEST-000176 and b/packs/maladie-poison-and-blessure/MANIFEST-000180 differ diff --git a/packs/objet/000170.log b/packs/objet/000173.log similarity index 100% rename from packs/objet/000170.log rename to packs/objet/000173.log diff --git a/packs/objet/CURRENT b/packs/objet/CURRENT index 57112f5..647a5d6 100644 --- a/packs/objet/CURRENT +++ b/packs/objet/CURRENT @@ -1 +1 @@ -MANIFEST-000168 +MANIFEST-000172 diff --git a/packs/objet/LOG b/packs/objet/LOG index 5fb6462..75b5549 100644 --- a/packs/objet/LOG +++ b/packs/objet/LOG @@ -1,7 +1,3 @@ -2026/06/12-20:52:57.939847 7fc4117ff6c0 Recovering log #166 -2026/06/12-20:52:57.951112 7fc4117ff6c0 Delete type=3 #164 -2026/06/12-20:52:57.951166 7fc4117ff6c0 Delete type=0 #166 -2026/06/12-20:53:22.655606 7fc3c11be6c0 Level-0 table #171: started -2026/06/12-20:53:22.655631 7fc3c11be6c0 Level-0 table #171: 0 bytes OK -2026/06/12-20:53:22.662292 7fc3c11be6c0 Delete type=0 #169 -2026/06/12-20:53:22.676430 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.801545 7f050b7fe6c0 Recovering log #170 +2026/07/07-18:58:28.811780 7f050b7fe6c0 Delete type=3 #168 +2026/07/07-18:58:28.811844 7f050b7fe6c0 Delete type=0 #170 diff --git a/packs/objet/LOG.old b/packs/objet/LOG.old index c5bcd98..5fb6462 100644 --- a/packs/objet/LOG.old +++ b/packs/objet/LOG.old @@ -1,7 +1,7 @@ -2026/06/12-20:51:44.511682 7fc410ffe6c0 Recovering log #162 -2026/06/12-20:51:44.521666 7fc410ffe6c0 Delete type=3 #160 -2026/06/12-20:51:44.521720 7fc410ffe6c0 Delete type=0 #162 -2026/06/12-20:52:05.555691 7fc3c11be6c0 Level-0 table #167: started -2026/06/12-20:52:05.555716 7fc3c11be6c0 Level-0 table #167: 0 bytes OK -2026/06/12-20:52:05.562097 7fc3c11be6c0 Delete type=0 #165 -2026/06/12-20:52:05.562305 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.939847 7fc4117ff6c0 Recovering log #166 +2026/06/12-20:52:57.951112 7fc4117ff6c0 Delete type=3 #164 +2026/06/12-20:52:57.951166 7fc4117ff6c0 Delete type=0 #166 +2026/06/12-20:53:22.655606 7fc3c11be6c0 Level-0 table #171: started +2026/06/12-20:53:22.655631 7fc3c11be6c0 Level-0 table #171: 0 bytes OK +2026/06/12-20:53:22.662292 7fc3c11be6c0 Delete type=0 #169 +2026/06/12-20:53:22.676430 7fc3c11be6c0 Manual compaction at level-0 from 'undefined' @ 72057594037927935 : 1 .. 'undefined' @ 0 : 0; will stop at (end) diff --git a/packs/objet/MANIFEST-000168 b/packs/objet/MANIFEST-000168 deleted file mode 100644 index 4c76f3e..0000000 Binary files a/packs/objet/MANIFEST-000168 and /dev/null differ diff --git a/packs/objet/MANIFEST-000172 b/packs/objet/MANIFEST-000172 new file mode 100644 index 0000000..eba689e Binary files /dev/null and b/packs/objet/MANIFEST-000172 differ diff --git a/packs/ordinateur/000178.log b/packs/ordinateur/000181.log similarity index 100% rename from packs/ordinateur/000178.log rename to packs/ordinateur/000181.log diff --git a/packs/ordinateur/CURRENT b/packs/ordinateur/CURRENT index 4802dbe..a6beb43 100644 --- a/packs/ordinateur/CURRENT +++ b/packs/ordinateur/CURRENT @@ -1 +1 @@ -MANIFEST-000176 +MANIFEST-000180 diff --git a/packs/ordinateur/LOG b/packs/ordinateur/LOG index 662f216..fe12e2e 100644 --- a/packs/ordinateur/LOG +++ b/packs/ordinateur/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:57.967451 7fc4117ff6c0 Recovering log #174 -2026/06/12-20:52:57.978196 7fc4117ff6c0 Delete type=3 #172 -2026/06/12-20:52:57.978251 7fc4117ff6c0 Delete type=0 #174 -2026/06/12-20:53:22.696764 7fc3c11be6c0 Level-0 table #179: started -2026/06/12-20:53:22.696789 7fc3c11be6c0 Level-0 table #179: 0 bytes OK -2026/06/12-20:53:22.703214 7fc3c11be6c0 Delete type=0 #177 -2026/06/12-20:53:22.703379 7fc3c11be6c0 Manual compaction at level-0 from '!folders!qrqRBmTP6UuS30DF' @ 72057594037927935 : 1 .. '!items!yFvuDyV00NdojxGt' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.710437 7fc3c11be6c0 Manual compaction at level-1 from '!folders!qrqRBmTP6UuS30DF' @ 72057594037927935 : 1 .. '!items!yFvuDyV00NdojxGt' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.826244 7f050affd6c0 Recovering log #178 +2026/07/07-18:58:28.836117 7f050affd6c0 Delete type=3 #176 +2026/07/07-18:58:28.836199 7f050affd6c0 Delete type=0 #178 diff --git a/packs/ordinateur/LOG.old b/packs/ordinateur/LOG.old index bd51f4f..662f216 100644 --- a/packs/ordinateur/LOG.old +++ b/packs/ordinateur/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.538990 7fc410ffe6c0 Recovering log #170 -2026/06/12-20:51:44.550083 7fc410ffe6c0 Delete type=3 #168 -2026/06/12-20:51:44.550141 7fc410ffe6c0 Delete type=0 #170 -2026/06/12-20:52:05.569908 7fc3c11be6c0 Level-0 table #175: started -2026/06/12-20:52:05.569929 7fc3c11be6c0 Level-0 table #175: 0 bytes OK -2026/06/12-20:52:05.576375 7fc3c11be6c0 Delete type=0 #173 -2026/06/12-20:52:05.590256 7fc3c11be6c0 Manual compaction at level-0 from '!folders!qrqRBmTP6UuS30DF' @ 72057594037927935 : 1 .. '!items!yFvuDyV00NdojxGt' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.590425 7fc3c11be6c0 Manual compaction at level-1 from '!folders!qrqRBmTP6UuS30DF' @ 72057594037927935 : 1 .. '!items!yFvuDyV00NdojxGt' @ 0 : 0; will stop at (end) +2026/06/12-20:52:57.967451 7fc4117ff6c0 Recovering log #174 +2026/06/12-20:52:57.978196 7fc4117ff6c0 Delete type=3 #172 +2026/06/12-20:52:57.978251 7fc4117ff6c0 Delete type=0 #174 +2026/06/12-20:53:22.696764 7fc3c11be6c0 Level-0 table #179: started +2026/06/12-20:53:22.696789 7fc3c11be6c0 Level-0 table #179: 0 bytes OK +2026/06/12-20:53:22.703214 7fc3c11be6c0 Delete type=0 #177 +2026/06/12-20:53:22.703379 7fc3c11be6c0 Manual compaction at level-0 from '!folders!qrqRBmTP6UuS30DF' @ 72057594037927935 : 1 .. '!items!yFvuDyV00NdojxGt' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.710437 7fc3c11be6c0 Manual compaction at level-1 from '!folders!qrqRBmTP6UuS30DF' @ 72057594037927935 : 1 .. '!items!yFvuDyV00NdojxGt' @ 0 : 0; will stop at (end) diff --git a/packs/ordinateur/MANIFEST-000176 b/packs/ordinateur/MANIFEST-000180 similarity index 61% rename from packs/ordinateur/MANIFEST-000176 rename to packs/ordinateur/MANIFEST-000180 index c74e940..117d8ac 100644 Binary files a/packs/ordinateur/MANIFEST-000176 and b/packs/ordinateur/MANIFEST-000180 differ diff --git a/packs/pnj/000016.log b/packs/pnj/000019.log similarity index 100% rename from packs/pnj/000016.log rename to packs/pnj/000019.log diff --git a/packs/pnj/CURRENT b/packs/pnj/CURRENT index 23b73d9..e417a51 100644 --- a/packs/pnj/CURRENT +++ b/packs/pnj/CURRENT @@ -1 +1 @@ -MANIFEST-000014 +MANIFEST-000018 diff --git a/packs/pnj/LOG b/packs/pnj/LOG index a528098..fe71d07 100644 --- a/packs/pnj/LOG +++ b/packs/pnj/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:58.209985 7fc3c3fff6c0 Recovering log #12 -2026/06/12-20:52:58.222276 7fc3c3fff6c0 Delete type=3 #10 -2026/06/12-20:52:58.222315 7fc3c3fff6c0 Delete type=0 #12 -2026/06/12-20:53:22.822733 7fc3c11be6c0 Level-0 table #17: started -2026/06/12-20:53:22.822761 7fc3c11be6c0 Level-0 table #17: 0 bytes OK -2026/06/12-20:53:22.829641 7fc3c11be6c0 Delete type=0 #15 -2026/06/12-20:53:22.836426 7fc3c11be6c0 Manual compaction at level-0 from '!actors!DL3zXfXxWMOQhXJY' @ 72057594037927935 : 1 .. '!actors.items!JAHYXFedTxNlGYX8.nmIgA3CQkOSEpCSP' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.960032 7fc3c11be6c0 Manual compaction at level-1 from '!actors!DL3zXfXxWMOQhXJY' @ 72057594037927935 : 1 .. '!actors.items!JAHYXFedTxNlGYX8.nmIgA3CQkOSEpCSP' @ 0 : 0; will stop at (end) +2026/07/07-18:58:29.004308 7f050b7fe6c0 Recovering log #16 +2026/07/07-18:58:29.029132 7f050b7fe6c0 Delete type=3 #14 +2026/07/07-18:58:29.029171 7f050b7fe6c0 Delete type=0 #16 diff --git a/packs/pnj/LOG.old b/packs/pnj/LOG.old index e519ed8..a528098 100644 --- a/packs/pnj/LOG.old +++ b/packs/pnj/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.772467 7fc3c37fe6c0 Recovering log #8 -2026/06/12-20:51:44.784739 7fc3c37fe6c0 Delete type=3 #6 -2026/06/12-20:51:44.784799 7fc3c37fe6c0 Delete type=0 #8 -2026/06/12-20:52:05.700099 7fc3c11be6c0 Level-0 table #13: started -2026/06/12-20:52:05.700122 7fc3c11be6c0 Level-0 table #13: 0 bytes OK -2026/06/12-20:52:05.707051 7fc3c11be6c0 Delete type=0 #11 -2026/06/12-20:52:05.714022 7fc3c11be6c0 Manual compaction at level-0 from '!actors!DL3zXfXxWMOQhXJY' @ 72057594037927935 : 1 .. '!actors.items!JAHYXFedTxNlGYX8.nmIgA3CQkOSEpCSP' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.714257 7fc3c11be6c0 Manual compaction at level-1 from '!actors!DL3zXfXxWMOQhXJY' @ 72057594037927935 : 1 .. '!actors.items!JAHYXFedTxNlGYX8.nmIgA3CQkOSEpCSP' @ 0 : 0; will stop at (end) +2026/06/12-20:52:58.209985 7fc3c3fff6c0 Recovering log #12 +2026/06/12-20:52:58.222276 7fc3c3fff6c0 Delete type=3 #10 +2026/06/12-20:52:58.222315 7fc3c3fff6c0 Delete type=0 #12 +2026/06/12-20:53:22.822733 7fc3c11be6c0 Level-0 table #17: started +2026/06/12-20:53:22.822761 7fc3c11be6c0 Level-0 table #17: 0 bytes OK +2026/06/12-20:53:22.829641 7fc3c11be6c0 Delete type=0 #15 +2026/06/12-20:53:22.836426 7fc3c11be6c0 Manual compaction at level-0 from '!actors!DL3zXfXxWMOQhXJY' @ 72057594037927935 : 1 .. '!actors.items!JAHYXFedTxNlGYX8.nmIgA3CQkOSEpCSP' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.960032 7fc3c11be6c0 Manual compaction at level-1 from '!actors!DL3zXfXxWMOQhXJY' @ 72057594037927935 : 1 .. '!actors.items!JAHYXFedTxNlGYX8.nmIgA3CQkOSEpCSP' @ 0 : 0; will stop at (end) diff --git a/packs/pnj/MANIFEST-000014 b/packs/pnj/MANIFEST-000018 similarity index 80% rename from packs/pnj/MANIFEST-000014 rename to packs/pnj/MANIFEST-000018 index 98fbd13..8eb54fb 100644 Binary files a/packs/pnj/MANIFEST-000014 and b/packs/pnj/MANIFEST-000018 differ diff --git a/packs/tables-pnj/000299.log b/packs/tables-pnj/000299.log new file mode 100644 index 0000000..1856c41 Binary files /dev/null and b/packs/tables-pnj/000299.log differ diff --git a/packs/tables-pnj/CURRENT b/packs/tables-pnj/CURRENT index 15d9120..7604222 100644 --- a/packs/tables-pnj/CURRENT +++ b/packs/tables-pnj/CURRENT @@ -1 +1 @@ -MANIFEST-000291 +MANIFEST-000298 diff --git a/packs/tables-pnj/LOG b/packs/tables-pnj/LOG index a1041bd..e6bf483 100644 --- a/packs/tables-pnj/LOG +++ b/packs/tables-pnj/LOG @@ -1,19 +1,3 @@ -2026/06/12-20:52:58.065673 7fc3c3fff6c0 Recovering log #286 -2026/06/12-20:52:58.076152 7fc3c3fff6c0 Delete type=3 #284 -2026/06/12-20:52:58.076196 7fc3c3fff6c0 Delete type=0 #286 -2026/06/12-20:53:22.724394 7fc3c11be6c0 Level-0 table #294: started -2026/06/12-20:53:22.813324 7fc3c11be6c0 Level-0 table #294: 5029605 bytes OK -2026/06/12-20:53:22.820890 7fc3c11be6c0 Delete type=0 #292 -2026/06/12-20:53:22.829771 7fc3c11be6c0 Manual compaction at level-0 from '!tables!BbXMbmHKcLJrBCmk' @ 72057594037927935 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.836453 7fc3c11be6c0 Manual compaction at level-1 from '!tables!BbXMbmHKcLJrBCmk' @ 72057594037927935 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 1617840 : 1 -2026/06/12-20:53:22.836460 7fc3c11be6c0 Compacting 1@1 + 3@2 files -2026/06/12-20:53:22.873874 7fc3c11be6c0 Generated table #295@1: 10562 keys, 2142429 bytes -2026/06/12-20:53:22.924542 7fc3c11be6c0 Generated table #296@1: 16816 keys, 2164017 bytes -2026/06/12-20:53:22.944331 7fc3c11be6c0 Generated table #297@1: 5500 keys, 721026 bytes -2026/06/12-20:53:22.944361 7fc3c11be6c0 Compacted 1@1 + 3@2 files => 5027472 bytes -2026/06/12-20:53:22.951445 7fc3c11be6c0 compacted to: files[ 0 0 3 0 0 0 0 ] -2026/06/12-20:53:22.951933 7fc3c11be6c0 Delete type=2 #288 -2026/06/12-20:53:22.952420 7fc3c11be6c0 Delete type=2 #289 -2026/06/12-20:53:22.952708 7fc3c11be6c0 Delete type=2 #290 -2026/06/12-20:53:22.953103 7fc3c11be6c0 Delete type=2 #294 -2026/06/12-20:53:22.960065 7fc3c11be6c0 Manual compaction at level-1 from '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 1617840 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.911495 7f050a7fc6c0 Recovering log #293 +2026/07/07-18:58:28.922220 7f050a7fc6c0 Delete type=3 #291 +2026/07/07-18:58:28.922271 7f050a7fc6c0 Delete type=0 #293 diff --git a/packs/tables-pnj/LOG.old b/packs/tables-pnj/LOG.old index 8d0431b..a1041bd 100644 --- a/packs/tables-pnj/LOG.old +++ b/packs/tables-pnj/LOG.old @@ -1,19 +1,19 @@ -2026/06/12-20:51:44.638713 7fc410ffe6c0 Recovering log #279 -2026/06/12-20:51:44.649235 7fc410ffe6c0 Delete type=3 #277 -2026/06/12-20:51:44.649296 7fc410ffe6c0 Delete type=0 #279 -2026/06/12-20:52:05.627084 7fc3c11be6c0 Level-0 table #287: started -2026/06/12-20:52:05.691136 7fc3c11be6c0 Level-0 table #287: 4971536 bytes OK -2026/06/12-20:52:05.698145 7fc3c11be6c0 Delete type=0 #285 -2026/06/12-20:52:05.714008 7fc3c11be6c0 Manual compaction at level-0 from '!tables!BbXMbmHKcLJrBCmk' @ 72057594037927935 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.714299 7fc3c11be6c0 Manual compaction at level-1 from '!tables!BbXMbmHKcLJrBCmk' @ 72057594037927935 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 1585250 : 1 -2026/06/12-20:52:05.714307 7fc3c11be6c0 Compacting 1@1 + 3@2 files -2026/06/12-20:52:05.744344 7fc3c11be6c0 Generated table #288@1: 10660 keys, 2142130 bytes -2026/06/12-20:52:05.781422 7fc3c11be6c0 Generated table #289@1: 16841 keys, 2165292 bytes -2026/06/12-20:52:05.794598 7fc3c11be6c0 Generated table #290@1: 5045 keys, 662072 bytes -2026/06/12-20:52:05.794618 7fc3c11be6c0 Compacted 1@1 + 3@2 files => 4969494 bytes -2026/06/12-20:52:05.801998 7fc3c11be6c0 compacted to: files[ 0 0 3 0 0 0 0 ] -2026/06/12-20:52:05.802346 7fc3c11be6c0 Delete type=2 #281 -2026/06/12-20:52:05.802678 7fc3c11be6c0 Delete type=2 #282 -2026/06/12-20:52:05.802871 7fc3c11be6c0 Delete type=2 #283 -2026/06/12-20:52:05.803095 7fc3c11be6c0 Delete type=2 #287 -2026/06/12-20:52:05.821244 7fc3c11be6c0 Manual compaction at level-1 from '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 1585250 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at (end) +2026/06/12-20:52:58.065673 7fc3c3fff6c0 Recovering log #286 +2026/06/12-20:52:58.076152 7fc3c3fff6c0 Delete type=3 #284 +2026/06/12-20:52:58.076196 7fc3c3fff6c0 Delete type=0 #286 +2026/06/12-20:53:22.724394 7fc3c11be6c0 Level-0 table #294: started +2026/06/12-20:53:22.813324 7fc3c11be6c0 Level-0 table #294: 5029605 bytes OK +2026/06/12-20:53:22.820890 7fc3c11be6c0 Delete type=0 #292 +2026/06/12-20:53:22.829771 7fc3c11be6c0 Manual compaction at level-0 from '!tables!BbXMbmHKcLJrBCmk' @ 72057594037927935 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.836453 7fc3c11be6c0 Manual compaction at level-1 from '!tables!BbXMbmHKcLJrBCmk' @ 72057594037927935 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 1617840 : 1 +2026/06/12-20:53:22.836460 7fc3c11be6c0 Compacting 1@1 + 3@2 files +2026/06/12-20:53:22.873874 7fc3c11be6c0 Generated table #295@1: 10562 keys, 2142429 bytes +2026/06/12-20:53:22.924542 7fc3c11be6c0 Generated table #296@1: 16816 keys, 2164017 bytes +2026/06/12-20:53:22.944331 7fc3c11be6c0 Generated table #297@1: 5500 keys, 721026 bytes +2026/06/12-20:53:22.944361 7fc3c11be6c0 Compacted 1@1 + 3@2 files => 5027472 bytes +2026/06/12-20:53:22.951445 7fc3c11be6c0 compacted to: files[ 0 0 3 0 0 0 0 ] +2026/06/12-20:53:22.951933 7fc3c11be6c0 Delete type=2 #288 +2026/06/12-20:53:22.952420 7fc3c11be6c0 Delete type=2 #289 +2026/06/12-20:53:22.952708 7fc3c11be6c0 Delete type=2 #290 +2026/06/12-20:53:22.953103 7fc3c11be6c0 Delete type=2 #294 +2026/06/12-20:53:22.960065 7fc3c11be6c0 Manual compaction at level-1 from '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 1617840 : 1 .. '!tables.results!xe7x4qufBpzLaEby.zzqLG98O4eFQZHp0' @ 0 : 0; will stop at (end) diff --git a/packs/tables-pnj/MANIFEST-000291 b/packs/tables-pnj/MANIFEST-000291 deleted file mode 100644 index 4957093..0000000 Binary files a/packs/tables-pnj/MANIFEST-000291 and /dev/null differ diff --git a/packs/tables-pnj/MANIFEST-000298 b/packs/tables-pnj/MANIFEST-000298 new file mode 100644 index 0000000..8c6c26b Binary files /dev/null and b/packs/tables-pnj/MANIFEST-000298 differ diff --git a/packs/talents-psioniques/000124.log b/packs/talents-psioniques/000124.log deleted file mode 100644 index e69de29..0000000 diff --git a/packs/tables-pnj/000293.log b/packs/talents-psioniques/000127.log similarity index 100% rename from packs/tables-pnj/000293.log rename to packs/talents-psioniques/000127.log diff --git a/packs/talents-psioniques/CURRENT b/packs/talents-psioniques/CURRENT index d9766b1..5b36b43 100644 --- a/packs/talents-psioniques/CURRENT +++ b/packs/talents-psioniques/CURRENT @@ -1 +1 @@ -MANIFEST-000122 +MANIFEST-000126 diff --git a/packs/talents-psioniques/LOG b/packs/talents-psioniques/LOG index c78e0b8..aa0b995 100644 --- a/packs/talents-psioniques/LOG +++ b/packs/talents-psioniques/LOG @@ -1,8 +1,3 @@ -2026/06/12-20:52:58.037556 7fc3c3fff6c0 Recovering log #120 -2026/06/12-20:52:58.047938 7fc3c3fff6c0 Delete type=3 #118 -2026/06/12-20:52:58.048005 7fc3c3fff6c0 Delete type=0 #120 -2026/06/12-20:53:22.710451 7fc3c11be6c0 Level-0 table #125: started -2026/06/12-20:53:22.710474 7fc3c11be6c0 Level-0 table #125: 0 bytes OK -2026/06/12-20:53:22.716951 7fc3c11be6c0 Delete type=0 #123 -2026/06/12-20:53:22.724368 7fc3c11be6c0 Manual compaction at level-0 from '!items!0ZfAXacF6oWS120o' @ 72057594037927935 : 1 .. '!items!xFUyR7XECD8QJcIw' @ 0 : 0; will stop at (end) -2026/06/12-20:53:22.822717 7fc3c11be6c0 Manual compaction at level-1 from '!items!0ZfAXacF6oWS120o' @ 72057594037927935 : 1 .. '!items!xFUyR7XECD8QJcIw' @ 0 : 0; will stop at (end) +2026/07/07-18:58:28.886923 7f050a7fc6c0 Recovering log #124 +2026/07/07-18:58:28.896235 7f050a7fc6c0 Delete type=3 #122 +2026/07/07-18:58:28.896303 7f050a7fc6c0 Delete type=0 #124 diff --git a/packs/talents-psioniques/LOG.old b/packs/talents-psioniques/LOG.old index 5a51aca..c78e0b8 100644 --- a/packs/talents-psioniques/LOG.old +++ b/packs/talents-psioniques/LOG.old @@ -1,8 +1,8 @@ -2026/06/12-20:51:44.607543 7fc410ffe6c0 Recovering log #116 -2026/06/12-20:51:44.622157 7fc410ffe6c0 Delete type=3 #114 -2026/06/12-20:51:44.622215 7fc410ffe6c0 Delete type=0 #116 -2026/06/12-20:52:05.604539 7fc3c11be6c0 Level-0 table #121: started -2026/06/12-20:52:05.604563 7fc3c11be6c0 Level-0 table #121: 0 bytes OK -2026/06/12-20:52:05.611212 7fc3c11be6c0 Delete type=0 #119 -2026/06/12-20:52:05.618870 7fc3c11be6c0 Manual compaction at level-0 from '!items!0ZfAXacF6oWS120o' @ 72057594037927935 : 1 .. '!items!xFUyR7XECD8QJcIw' @ 0 : 0; will stop at (end) -2026/06/12-20:52:05.619129 7fc3c11be6c0 Manual compaction at level-1 from '!items!0ZfAXacF6oWS120o' @ 72057594037927935 : 1 .. '!items!xFUyR7XECD8QJcIw' @ 0 : 0; will stop at (end) +2026/06/12-20:52:58.037556 7fc3c3fff6c0 Recovering log #120 +2026/06/12-20:52:58.047938 7fc3c3fff6c0 Delete type=3 #118 +2026/06/12-20:52:58.048005 7fc3c3fff6c0 Delete type=0 #120 +2026/06/12-20:53:22.710451 7fc3c11be6c0 Level-0 table #125: started +2026/06/12-20:53:22.710474 7fc3c11be6c0 Level-0 table #125: 0 bytes OK +2026/06/12-20:53:22.716951 7fc3c11be6c0 Delete type=0 #123 +2026/06/12-20:53:22.724368 7fc3c11be6c0 Manual compaction at level-0 from '!items!0ZfAXacF6oWS120o' @ 72057594037927935 : 1 .. '!items!xFUyR7XECD8QJcIw' @ 0 : 0; will stop at (end) +2026/06/12-20:53:22.822717 7fc3c11be6c0 Manual compaction at level-1 from '!items!0ZfAXacF6oWS120o' @ 72057594037927935 : 1 .. '!items!xFUyR7XECD8QJcIw' @ 0 : 0; will stop at (end) diff --git a/packs/talents-psioniques/MANIFEST-000122 b/packs/talents-psioniques/MANIFEST-000126 similarity index 62% rename from packs/talents-psioniques/MANIFEST-000122 rename to packs/talents-psioniques/MANIFEST-000126 index 2717f5c..160d7fb 100644 Binary files a/packs/talents-psioniques/MANIFEST-000122 and b/packs/talents-psioniques/MANIFEST-000126 differ diff --git a/scripts/batchNpcCreator.js b/scripts/batchNpcCreator.js new file mode 100644 index 0000000..1d6e569 --- /dev/null +++ b/scripts/batchNpcCreator.js @@ -0,0 +1,217 @@ +const MODULE_ID = 'mgt2-compendium-amiral-denisov'; +const { ApplicationV2, HandlebarsApplicationMixin } = foundry.applications.api; + +const IMAGE_EXTENSIONS = new Set(['png', 'webp', 'jpg', 'jpeg', 'gif', 'svg', 'avif', 'bmp', 'tiff', 'tif']); + +class BatchNpcDialog extends HandlebarsApplicationMixin(ApplicationV2) { + static DEFAULT_OPTIONS = { + id: 'mgt2-batch-npc', + classes: ['mgt2-npc-dialog'], + position: { width: 540, height: 'auto' }, + window: { title: 'Création de PNJs par lots', resizable: true }, + form: { submitOnClose: false, closeOnSubmit: false }, + }; + + static PARTS = { + main: { + template: `modules/${MODULE_ID}/templates/batch-npc-dialog.hbs`, + root: true, + }, + }; + + constructor(options = {}) { + super(options); + this._formData = { + batch: { + directory: '', + folderName: 'PNJs importés', + openSheets: false, + }, + }; + } + + async _prepareContext() { + return { ...this._formData }; + } + + async _onRender(context, options) { + await super._onRender(context, options); + const html = $('#' + this.id).find('.window-content'); + + this._applyTheme(html); + + html.find('[data-action="browse-directory"]').on('click', async () => { + const fp = new FilePicker({ + type: 'image', + current: this._formData.batch.directory || '', + callback: (path) => { + const dir = path.split('/').slice(0, -1).join('/'); + this._formData.batch.directory = dir; + html.find('[name="batch.directory"]').val(dir); + }, + }); + fp.render(true); + }); + + html.find('[data-action="batch-create"]').on('click', async () => { + this._readForm(html); + await this._executeBatch(html); + }); + } + + _readForm(html) { + this._formData.batch.directory = (html.find('[name="batch.directory"]').val()?.trim() || '').replace(/\/+$/, ''); + this._formData.batch.folderName = html.find('[name="batch.folderName"]').val()?.trim() || 'PNJs importés'; + this._formData.batch.openSheets = html.find('[name="batch.openSheets"]').is(':checked'); + } + + _applyTheme(html) { + html.find('h3').css({ color: '#5f4300', 'border-bottom-color': '#b78f26', 'text-shadow': 'none' }); + html.find('legend').css({ color: '#7a5c00', 'text-shadow': 'none' }); + } + + async _executeBatch(html) { + const { directory, folderName, openSheets } = this._formData.batch; + + if (!directory) { + ui.notifications.warn('Veuillez spécifier un répertoire source.'); + return; + } + + const $progress = html.find('#batch-progress'); + const $fill = html.find('#batch-progress-fill'); + const $text = html.find('#batch-progress-text'); + $progress.show(); + + try { + $text.text('Analyse du répertoire...'); + + let files; + try { + const result = await FilePicker.browse('data', directory); + files = result.files || []; + } catch (e) { + $progress.hide(); + ui.notifications.error(`Impossible de lire le répertoire « ${directory} » : ${e.message}`); + return; + } + + const imageFiles = files.filter(f => { + const ext = f.split('.').pop()?.toLowerCase(); + return ext && IMAGE_EXTENSIONS.has(ext); + }); + + if (imageFiles.length === 0) { + $progress.hide(); + ui.notifications.warn(`Aucune image trouvée dans « ${directory} ».`); + return; + } + + $text.text(`${imageFiles.length} image(s) trouvée(s). Vérification des doublons...`); + + const normalizePath = (p) => p.replace(/^[\\/]+/, '').replace(/[\\/]+/g, '/').toLowerCase(); + + const existingImages = new Set(); + for (const actor of game.actors) { + if (actor.img && actor.img !== 'icons/svg/mystery-man.svg') { + existingImages.add(normalizePath(actor.img)); + } + } + + const toCreate = imageFiles.filter(f => !existingImages.has(normalizePath(f))); + + if (toCreate.length === 0) { + $progress.hide(); + ui.notifications.info('Tous les PNJs existent déjà (aucune nouvelle image à traiter).'); + return; + } + + let folder = null; + if (folderName) { + folder = game.folders.find(f => f.name === folderName && f.type === 'Actor'); + if (!folder) { + folder = await Folder.create({ name: folderName, type: 'Actor', parent: null }); + } + } + + $text.text(`Création de ${toCreate.length} PNJ(s)...`); + + const chunkSize = 10; + let created = 0; + const allCreated = []; + + for (let i = 0; i < toCreate.length; i += chunkSize) { + const chunk = toCreate.slice(i, i + chunkSize); + const actorsData = chunk.map(path => { + const name = path.split('/').pop().replace(/\.[^/.]+$/, ''); + return { + name, + type: 'npc', + img: path, + folder: folder?.id || null, + token: { + name, + img: path, + actorLink: true, + disposition: 0, + sight: { enabled: false }, + }, + system: { + settings: { hideUntrained: true, lockCharacteristics: true }, + characteristics: {}, + hits: {}, + skills: {}, + }, + flags: { + [MODULE_ID]: { batchImported: true, sourceImage: path }, + }, + }; + }); + + const actors = await Actor.create(actorsData, { renderSheet: false }); + allCreated.push(...actors); + created += actors.length; + + const pct = Math.min(100, Math.round((i + chunkSize) / toCreate.length * 100)); + $fill.css('width', pct + '%'); + $text.text(`${created}/${toCreate.length} PNJ(s) créé(s)...`); + } + + ui.actors?.render(false); + + $fill.css('width', '100%'); + $text.text(`${created} PNJ(s) créé(s) avec succès dans le dossier « ${folderName} » !`); + ui.notifications.info(`${created} PNJ(s) créé(s) à partir des images.`); + + if (openSheets && allCreated.length > 0) { + const lastActor = allCreated[allCreated.length - 1]; + if (lastActor) lastActor.sheet?.render(true); + } + + } catch (error) { + console.error(`${MODULE_ID} | Batch NPC creation error:`, error); + $text.text(`Erreur : ${error.message}`); + ui.notifications.error(`Erreur lors de la création : ${error.message}`); + } + } +} + +Hooks.on('renderActorDirectory', (app, html, data) => { + if (!game.user?.isGM) return; + if (html.find('.mgt2-batch-npc-btn').length) return; + + const btn = $(``); + + const footer = html.find('.directory-footer'); + if (footer.length) { + footer.append(btn); + } else { + html.find('.directory-header').after(btn); + } + + btn.on('click', () => { + new BatchNpcDialog().render({ force: true }); + }); +}); diff --git a/scripts/npc.js b/scripts/npc.js index 7c56ecd..920c8d9 100644 --- a/scripts/npc.js +++ b/scripts/npc.js @@ -38,6 +38,7 @@ Hooks.once('init', () => { `modules/${MODULE_ID}/templates/traveller-npc-dialog.hbs`, `modules/${MODULE_ID}/templates/traveller-npc-result.hbs`, `modules/${MODULE_ID}/templates/ally-enemy-result.hbs`, + `modules/${MODULE_ID}/templates/batch-npc-dialog.hbs`, ]); } diff --git a/styles/npc.css b/styles/npc.css index 49359b1..df515b2 100644 --- a/styles/npc.css +++ b/styles/npc.css @@ -1113,3 +1113,68 @@ a.mgt2-world-link { a.mgt2-world-link:hover { color: #8a4aaa; } + +/* === Batch NPC Creator =================================================== */ + +.mgt2-batch-npc-form { + display: flex; + flex-direction: column; + gap: 12px; + padding: 16px; + background: #f5f0e8; + color: #222; +} + +.mgt2-batch-npc-form h3 { + color: #5f4300; + border-bottom: 2px solid #b78f26; + padding-bottom: 6px; + margin: 0 0 4px 0; + font-size: 1.1em; +} + +.mgt2-batch-npc-form legend { + color: #7a5c00; + font-weight: 600; + font-size: 0.95em; +} + +.mgt2-batch-npc-form .input-group { + display: flex; + gap: 4px; +} + +.mgt2-batch-npc-form .input-group input { + flex: 1; +} + +.mgt2-batch-npc-form .input-group .btn-small { + flex: 0 0 32px; + padding: 4px 6px; + line-height: 1; +} + +.batch-progress { + margin: 8px 0; +} + +.batch-progress-bar { + height: 8px; + background: #ddd; + border-radius: 4px; + overflow: hidden; +} + +.batch-progress-fill { + height: 100%; + width: 0%; + background: linear-gradient(90deg, #b78f26, #d9b24c); + border-radius: 4px; + transition: width 0.3s; +} + +.batch-progress-text { + font-size: 0.85em; + color: #555; + margin-top: 4px; +} diff --git a/templates/batch-npc-dialog.hbs b/templates/batch-npc-dialog.hbs new file mode 100644 index 0000000..0049084 --- /dev/null +++ b/templates/batch-npc-dialog.hbs @@ -0,0 +1,49 @@ +