From 4ead400c2ee23909d974deb36d711ae8147ab2fd Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Thu, 8 Feb 2024 12:54:56 +0100 Subject: [PATCH] Enhance stats --- babele-register.js | 35 +++--------------- fr.json | 2 +- .../{000361.log => 000385.log} | 0 packs/aides-de-jeu-fr/CURRENT | 2 +- packs/aides-de-jeu-fr/LOG | 14 +++---- packs/aides-de-jeu-fr/LOG.old | 14 +++---- .../{MANIFEST-000359 => MANIFEST-000383} | Bin 180 -> 180 bytes .../{000362.log => 000386.log} | 0 packs/antidotes-and-remedes/CURRENT | 2 +- packs/antidotes-and-remedes/LOG | 14 +++---- packs/antidotes-and-remedes/LOG.old | 14 +++---- .../{MANIFEST-000360 => MANIFEST-000384} | Bin 178 -> 178 bytes packs/apothicarium/{000361.log => 000385.log} | 0 packs/apothicarium/CURRENT | 2 +- packs/apothicarium/LOG | 14 +++---- packs/apothicarium/LOG.old | 14 +++---- .../{MANIFEST-000359 => MANIFEST-000383} | Bin 180 -> 180 bytes packs/dons-de-rhya/{000361.log => 000385.log} | 0 packs/dons-de-rhya/CURRENT | 2 +- packs/dons-de-rhya/LOG | 14 +++---- packs/dons-de-rhya/LOG.old | 14 +++---- .../{MANIFEST-000359 => MANIFEST-000383} | Bin 180 -> 180 bytes .../{000361.log => 000385.log} | 0 packs/plats-dauberges/CURRENT | 2 +- packs/plats-dauberges/LOG | 14 +++---- packs/plats-dauberges/LOG.old | 14 +++---- .../{MANIFEST-000359 => MANIFEST-000383} | Bin 229 -> 229 bytes .../{000004.log => 000028.log} | 0 packs/tables-des-traductions/CURRENT | 2 +- packs/tables-des-traductions/LOG | 13 ++++--- packs/tables-des-traductions/LOG.old | 8 ++++ packs/tables-des-traductions/MANIFEST-000002 | Bin 139 -> 0 bytes packs/tables-des-traductions/MANIFEST-000026 | Bin 0 -> 139 bytes 33 files changed, 99 insertions(+), 111 deletions(-) rename packs/aides-de-jeu-fr/{000361.log => 000385.log} (100%) rename packs/aides-de-jeu-fr/{MANIFEST-000359 => MANIFEST-000383} (71%) rename packs/antidotes-and-remedes/{000362.log => 000386.log} (100%) rename packs/antidotes-and-remedes/{MANIFEST-000360 => MANIFEST-000384} (71%) rename packs/apothicarium/{000361.log => 000385.log} (100%) rename packs/apothicarium/{MANIFEST-000359 => MANIFEST-000383} (71%) rename packs/dons-de-rhya/{000361.log => 000385.log} (100%) rename packs/dons-de-rhya/{MANIFEST-000359 => MANIFEST-000383} (71%) rename packs/plats-dauberges/{000361.log => 000385.log} (100%) rename packs/plats-dauberges/{MANIFEST-000359 => MANIFEST-000383} (83%) rename packs/tables-des-traductions/{000004.log => 000028.log} (100%) create mode 100644 packs/tables-des-traductions/LOG.old delete mode 100644 packs/tables-des-traductions/MANIFEST-000002 create mode 100644 packs/tables-des-traductions/MANIFEST-000026 diff --git a/babele-register.js b/babele-register.js index da15cca..c2bcb77 100644 --- a/babele-register.js +++ b/babele-register.js @@ -1,5 +1,6 @@ /************************************************************************************/ import statParserFR from "./modules/import-stat-2.js"; +import { ClassCounter} from "https://www.uberwald.me/fvtt_appcount/count-class-ready.js" /************************************************************************************/ var compmod = "wfrp4e-core"; @@ -245,8 +246,8 @@ Hooks.once('init', () => { let re = /(.*)\((.*)\)/i; for (i = 0; i < len; i++) { for (let compData of validCompendiums) { - //console.log("TALENT - Parsing : ", talents_list) - let translItem = game.babele.translate(compData.metadata.id, { name: talents_list[i], type: "talent" }, true); + let translItem = game.babele.translate(compData.metadata.id, { name: talents_list[i] }, true); + console.log("Search talent name:", compData.metadata.id, talents_list[i], translItem); let transl = translItem?.name || undefined if (!transl) transl = talents_list[i] if (transl == talents_list[i]) { @@ -254,9 +255,9 @@ Hooks.once('init', () => { if (res) { let subword = game.i18n.localize(res[2].trim()); let s1 = res[1].trim(); // No () in talents table - translItem = game.babele.translate(compData.metadata.id, { name: s1, type: "talent" }, true) + translItem = game.babele.translate(compData.metadata.id, { name: s1 }, true) let translw = translItem?.name || undefined - //console.log("Ssearch talent name:", compData.metadata.id, s1, translw); + console.log("Ssearch talent name:", compData.metadata.id, s1, translw); if (translw && translw != s1) { transl = translw + " (" + subword + ")"; } @@ -584,34 +585,10 @@ Hooks.once('init', () => { }); -/* -------------------------------------------- */ -// Register world usage statistics -function registerUsageCount(registerKey) { - if (game.user.isGM) { - game.settings.register(registerKey, "world-key", { - name: "Unique world key", - scope: "world", - config: false, - default: "", - type: String - }); - - let worldKey = game.settings.get(registerKey, "world-key") - if (worldKey == undefined || worldKey == "") { - worldKey = randomID(32) - game.settings.set(registerKey, "world-key", worldKey) - } - // Simple API counter - let regURL = `https://www.uberwald.me/fvtt_appcount/count.php?name="${registerKey}"&worldKey="${worldKey}"&version="${game.release.generation}.${game.release.build}"&system="${game.system.id}"&systemversion="${game.system.version}"` - $.ajax(regURL) - /* -------------------------------------------- */ - } -} /*---------------------------------------------------------------------*/ Hooks.once('ready', () => { - registerUsageCount("wh4-fr-translation") - + ClassCounter.registerUsageCount("wh4-fr-translation") }); \ No newline at end of file diff --git a/fr.json b/fr.json index 161f7b6..a46dc40 100644 --- a/fr.json +++ b/fr.json @@ -495,7 +495,7 @@ "Resolve" : "Détermination", "Resilience" : "Résilience", "Career" : "Carrière", - "Careers" : "Careers", + "Careers" : "Carrières", "Level" : "Niveau", "Biography" : "Biographie", "Personal Ambitions" : "Ambitions personnelles", diff --git a/packs/aides-de-jeu-fr/000361.log b/packs/aides-de-jeu-fr/000385.log similarity index 100% rename from packs/aides-de-jeu-fr/000361.log rename to packs/aides-de-jeu-fr/000385.log diff --git a/packs/aides-de-jeu-fr/CURRENT b/packs/aides-de-jeu-fr/CURRENT index df438c2..25e3b7f 100644 --- a/packs/aides-de-jeu-fr/CURRENT +++ b/packs/aides-de-jeu-fr/CURRENT @@ -1 +1 @@ -MANIFEST-000359 +MANIFEST-000383 diff --git a/packs/aides-de-jeu-fr/LOG b/packs/aides-de-jeu-fr/LOG index e26c677..324769b 100644 --- a/packs/aides-de-jeu-fr/LOG +++ b/packs/aides-de-jeu-fr/LOG @@ -1,7 +1,7 @@ -2023/11/15-17:42:16.143060 7fedf37fe6c0 Recovering log #357 -2023/11/15-17:42:16.175280 7fedf37fe6c0 Delete type=3 #355 -2023/11/15-17:42:16.175329 7fedf37fe6c0 Delete type=0 #357 -2023/11/15-17:42:45.255642 7feb713c96c0 Level-0 table #362: started -2023/11/15-17:42:45.255700 7feb713c96c0 Level-0 table #362: 0 bytes OK -2023/11/15-17:42:45.262284 7feb713c96c0 Delete type=0 #360 -2023/11/15-17:42:45.287250 7feb713c96c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) +2024/02/03-16:06:26.192273 7ff62f4006c0 Recovering log #381 +2024/02/03-16:06:26.202127 7ff62f4006c0 Delete type=3 #379 +2024/02/03-16:06:26.202208 7ff62f4006c0 Delete type=0 #381 +2024/02/03-16:07:06.807791 7ff62e6006c0 Level-0 table #386: started +2024/02/03-16:07:06.807822 7ff62e6006c0 Level-0 table #386: 0 bytes OK +2024/02/03-16:07:06.814017 7ff62e6006c0 Delete type=0 #384 +2024/02/03-16:07:06.828385 7ff62e6006c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) diff --git a/packs/aides-de-jeu-fr/LOG.old b/packs/aides-de-jeu-fr/LOG.old index 468ca4f..da61e1f 100644 --- a/packs/aides-de-jeu-fr/LOG.old +++ b/packs/aides-de-jeu-fr/LOG.old @@ -1,7 +1,7 @@ -2023/11/15-17:41:29.489267 7fee08df96c0 Recovering log #353 -2023/11/15-17:41:29.499370 7fee08df96c0 Delete type=3 #351 -2023/11/15-17:41:29.499459 7fee08df96c0 Delete type=0 #353 -2023/11/15-17:41:59.426003 7feb713c96c0 Level-0 table #358: started -2023/11/15-17:41:59.426035 7feb713c96c0 Level-0 table #358: 0 bytes OK -2023/11/15-17:41:59.432389 7feb713c96c0 Delete type=0 #356 -2023/11/15-17:41:59.446866 7feb713c96c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) +2024/01/28-22:44:44.739420 7ff6ccbfa6c0 Recovering log #377 +2024/01/28-22:44:44.749472 7ff6ccbfa6c0 Delete type=3 #375 +2024/01/28-22:44:44.749596 7ff6ccbfa6c0 Delete type=0 #377 +2024/01/28-22:44:46.649248 7ff4363ff6c0 Level-0 table #382: started +2024/01/28-22:44:46.649449 7ff4363ff6c0 Level-0 table #382: 0 bytes OK +2024/01/28-22:44:46.655711 7ff4363ff6c0 Delete type=0 #380 +2024/01/28-22:44:46.655806 7ff4363ff6c0 Manual compaction at level-0 from '!journal!3IgmiprzLB6Lwenc' @ 72057594037927935 : 1 .. '!journal!suuYN87Al1ZZWtQQ' @ 0 : 0; will stop at (end) diff --git a/packs/aides-de-jeu-fr/MANIFEST-000359 b/packs/aides-de-jeu-fr/MANIFEST-000383 similarity index 71% rename from packs/aides-de-jeu-fr/MANIFEST-000359 rename to packs/aides-de-jeu-fr/MANIFEST-000383 index 89bab7f29b8d6c6dcb064b0f1481c56fff55409c..ad240deb8f89e028fdf4ba546b679c159e975d0c 100644 GIT binary patch delta 41 rcmdnOxP@`TB&FGgR=r#dj7$y8oD9s3%q*-PyH_j*2{eKPnt=iU;57*4 delta 41 scmdnOxP@`TB&Eycx8t}N7@1x$aWXK!WMW}eVDpGsdjdki-NBU2+YCj)a6Gs`(fUG_HyAdx1JNDD{=0O_d-Pyhe` delta 43 tcmdnQxQTH>pUQ?!i<-C@7@1x&aWXK!Vq!VRDC|^P1rm7$5_tm>0RSnS3;qBA diff --git a/packs/apothicarium/000361.log b/packs/apothicarium/000385.log similarity index 100% rename from packs/apothicarium/000361.log rename to packs/apothicarium/000385.log diff --git a/packs/apothicarium/CURRENT b/packs/apothicarium/CURRENT index df438c2..25e3b7f 100644 --- a/packs/apothicarium/CURRENT +++ b/packs/apothicarium/CURRENT @@ -1 +1 @@ -MANIFEST-000359 +MANIFEST-000383 diff --git a/packs/apothicarium/LOG b/packs/apothicarium/LOG index bbbaf76..36a1c43 100644 --- a/packs/apothicarium/LOG +++ b/packs/apothicarium/LOG @@ -1,7 +1,7 @@ -2023/11/15-17:42:16.308041 7fedf37fe6c0 Recovering log #357 -2023/11/15-17:42:16.334001 7fedf37fe6c0 Delete type=3 #355 -2023/11/15-17:42:16.334121 7fedf37fe6c0 Delete type=0 #357 -2023/11/15-17:42:45.287466 7feb713c96c0 Level-0 table #362: started -2023/11/15-17:42:45.287530 7feb713c96c0 Level-0 table #362: 0 bytes OK -2023/11/15-17:42:45.293998 7feb713c96c0 Delete type=0 #360 -2023/11/15-17:42:45.294197 7feb713c96c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal!cZtNgayIw2QFhC9u' @ 0 : 0; will stop at (end) +2024/02/03-16:06:26.237972 7ff62fe006c0 Recovering log #381 +2024/02/03-16:06:26.248073 7ff62fe006c0 Delete type=3 #379 +2024/02/03-16:06:26.248319 7ff62fe006c0 Delete type=0 #381 +2024/02/03-16:07:06.821655 7ff62e6006c0 Level-0 table #386: started +2024/02/03-16:07:06.821686 7ff62e6006c0 Level-0 table #386: 0 bytes OK +2024/02/03-16:07:06.828202 7ff62e6006c0 Delete type=0 #384 +2024/02/03-16:07:06.828412 7ff62e6006c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal!cZtNgayIw2QFhC9u' @ 0 : 0; will stop at (end) diff --git a/packs/apothicarium/LOG.old b/packs/apothicarium/LOG.old index ad1098d..8c10d40 100644 --- a/packs/apothicarium/LOG.old +++ b/packs/apothicarium/LOG.old @@ -1,7 +1,7 @@ -2023/11/15-17:41:29.527190 7fedf3fff6c0 Recovering log #353 -2023/11/15-17:41:29.536787 7fedf3fff6c0 Delete type=3 #351 -2023/11/15-17:41:29.536837 7fedf3fff6c0 Delete type=0 #353 -2023/11/15-17:41:59.440723 7feb713c96c0 Level-0 table #358: started -2023/11/15-17:41:59.440745 7feb713c96c0 Level-0 table #358: 0 bytes OK -2023/11/15-17:41:59.446765 7feb713c96c0 Delete type=0 #356 -2023/11/15-17:41:59.446886 7feb713c96c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal!cZtNgayIw2QFhC9u' @ 0 : 0; will stop at (end) +2024/01/28-22:44:44.775955 7ff6b6ffd6c0 Recovering log #377 +2024/01/28-22:44:44.786000 7ff6b6ffd6c0 Delete type=3 #375 +2024/01/28-22:44:44.786162 7ff6b6ffd6c0 Delete type=0 #377 +2024/01/28-22:44:46.642394 7ff4363ff6c0 Level-0 table #382: started +2024/01/28-22:44:46.642417 7ff4363ff6c0 Level-0 table #382: 0 bytes OK +2024/01/28-22:44:46.649097 7ff4363ff6c0 Delete type=0 #380 +2024/01/28-22:44:46.655797 7ff4363ff6c0 Manual compaction at level-0 from '!journal!cZtNgayIw2QFhC9u' @ 72057594037927935 : 1 .. '!journal!cZtNgayIw2QFhC9u' @ 0 : 0; will stop at (end) diff --git a/packs/apothicarium/MANIFEST-000359 b/packs/apothicarium/MANIFEST-000383 similarity index 71% rename from packs/apothicarium/MANIFEST-000359 rename to packs/apothicarium/MANIFEST-000383 index accade3ced2818eb25abc0066b195889f3c453f4..84cefb5f958b1cd700c1120d73fd1e638732fc27 100644 GIT binary patch delta 41 rcmdnOxP@`TB&Bm(xYM~97?~QFIT@H6nOPWRz2;s72{eKPnt=iUH>F$*j7%?>I2o8t9Kd!qC5_ky`cnuT)00S8d9RL6T diff --git a/packs/plats-dauberges/000361.log b/packs/plats-dauberges/000385.log similarity index 100% rename from packs/plats-dauberges/000361.log rename to packs/plats-dauberges/000385.log diff --git a/packs/plats-dauberges/CURRENT b/packs/plats-dauberges/CURRENT index df438c2..25e3b7f 100644 --- a/packs/plats-dauberges/CURRENT +++ b/packs/plats-dauberges/CURRENT @@ -1 +1 @@ -MANIFEST-000359 +MANIFEST-000383 diff --git a/packs/plats-dauberges/LOG b/packs/plats-dauberges/LOG index 0fa53b7..5827033 100644 --- a/packs/plats-dauberges/LOG +++ b/packs/plats-dauberges/LOG @@ -1,7 +1,7 @@ -2023/11/15-17:42:16.080813 7fee08df96c0 Recovering log #357 -2023/11/15-17:42:16.108691 7fee08df96c0 Delete type=3 #355 -2023/11/15-17:42:16.108769 7fee08df96c0 Delete type=0 #357 -2023/11/15-17:42:45.247895 7feb713c96c0 Level-0 table #362: started -2023/11/15-17:42:45.247927 7feb713c96c0 Level-0 table #362: 0 bytes OK -2023/11/15-17:42:45.255226 7feb713c96c0 Delete type=0 #360 -2023/11/15-17:42:45.255421 7feb713c96c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end) +2024/02/03-16:06:26.159276 7ff634c006c0 Recovering log #381 +2024/02/03-16:06:26.170468 7ff634c006c0 Delete type=3 #379 +2024/02/03-16:06:26.170617 7ff634c006c0 Delete type=0 #381 +2024/02/03-16:07:06.779371 7ff62e6006c0 Level-0 table #386: started +2024/02/03-16:07:06.779422 7ff62e6006c0 Level-0 table #386: 0 bytes OK +2024/02/03-16:07:06.786762 7ff62e6006c0 Delete type=0 #384 +2024/02/03-16:07:06.800541 7ff62e6006c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end) diff --git a/packs/plats-dauberges/LOG.old b/packs/plats-dauberges/LOG.old index 23547dc..e9d3ba0 100644 --- a/packs/plats-dauberges/LOG.old +++ b/packs/plats-dauberges/LOG.old @@ -1,7 +1,7 @@ -2023/11/15-17:41:29.460484 7fedf37fe6c0 Recovering log #353 -2023/11/15-17:41:29.471536 7fedf37fe6c0 Delete type=3 #351 -2023/11/15-17:41:29.471666 7fedf37fe6c0 Delete type=0 #353 -2023/11/15-17:41:59.417645 7feb713c96c0 Level-0 table #358: started -2023/11/15-17:41:59.417700 7feb713c96c0 Level-0 table #358: 0 bytes OK -2023/11/15-17:41:59.425759 7feb713c96c0 Delete type=0 #356 -2023/11/15-17:41:59.425889 7feb713c96c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end) +2024/01/28-22:44:44.713843 7ff6b77fe6c0 Recovering log #377 +2024/01/28-22:44:44.723962 7ff6b77fe6c0 Delete type=3 #375 +2024/01/28-22:44:44.724064 7ff6b77fe6c0 Delete type=0 #377 +2024/01/28-22:44:46.615135 7ff4363ff6c0 Level-0 table #382: started +2024/01/28-22:44:46.615153 7ff4363ff6c0 Level-0 table #382: 0 bytes OK +2024/01/28-22:44:46.621749 7ff4363ff6c0 Delete type=0 #380 +2024/01/28-22:44:46.642174 7ff4363ff6c0 Manual compaction at level-0 from '!tables!4l60Lxv8cpsyy2Cg' @ 72057594037927935 : 1 .. '!tables.results!tfaYKDZqu7kgZvRG.yvbwKursaixh2dby' @ 0 : 0; will stop at (end) diff --git a/packs/plats-dauberges/MANIFEST-000359 b/packs/plats-dauberges/MANIFEST-000383 similarity index 83% rename from packs/plats-dauberges/MANIFEST-000359 rename to packs/plats-dauberges/MANIFEST-000383 index 2d084eea00bff49c464726804473ab728c4e0102..ebc08cda48da831008f0917ee85e5547fce62c44 100644 GIT binary patch delta 43 scmaFL_>^(NL6xw}a%Z_27?~QFIT@H6nOR;j=66131&K6*M4CY&03@&rSpWb4 delta 43 tcmaFL_>^(NL6sN1&7#~4j7%?>I2o8(4LDii%nJrA2v(If@3RW}ZHNenmc+0folynZ}Ha3}Apz ZQJEH1kz?X%9^qIT>Sk7C%*X>#0RUbQC29Zw diff --git a/packs/tables-des-traductions/MANIFEST-000026 b/packs/tables-des-traductions/MANIFEST-000026 new file mode 100644 index 0000000000000000000000000000000000000000..0a18df69fb12e6842e4938e328170d058631aee6 GIT binary patch literal 139 zcmWGJz2r<910$nUPHI_dPD+xVQ)NkNd1i5{bAE0?Vo_pAei1tp>(4LDii%nJrA2v( zIf@3RW}ZHNenmc+0folynZ}Ha3}ApzQJEH1kz?X%9^qIT>Sk7C%*X>#A<3DrmV<$j YNt%;^S%!s2XIVrMh${o+%CYbO0P?CM^Z)<= literal 0 HcmV?d00001