Enhance stats

This commit is contained in:
LeRatierBretonnien 2024-02-08 12:54:56 +01:00
parent 3602fdc5f9
commit 4ead400c2e
33 changed files with 99 additions and 111 deletions

View File

@ -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")
});

View File

@ -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",

View File

@ -1 +1 @@
MANIFEST-000359
MANIFEST-000383

View File

@ -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)

View File

@ -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)

View File

@ -1 +1 @@
MANIFEST-000360
MANIFEST-000384

View File

@ -1,7 +1,7 @@
2023/11/15-17:42:16.177674 7fee095fa6c0 Recovering log #358
2023/11/15-17:42:16.210044 7fee095fa6c0 Delete type=3 #356
2023/11/15-17:42:16.210161 7fee095fa6c0 Delete type=0 #358
2023/11/15-17:42:45.262422 7feb713c96c0 Level-0 table #363: started
2023/11/15-17:42:45.262451 7feb713c96c0 Level-0 table #363: 0 bytes OK
2023/11/15-17:42:45.268977 7feb713c96c0 Delete type=0 #361
2023/11/15-17:42:45.287278 7feb713c96c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)
2024/02/03-16:06:26.206667 7ff6356006c0 Recovering log #382
2024/02/03-16:06:26.216682 7ff6356006c0 Delete type=3 #380
2024/02/03-16:06:26.216980 7ff6356006c0 Delete type=0 #382
2024/02/03-16:07:06.800766 7ff62e6006c0 Level-0 table #387: started
2024/02/03-16:07:06.800837 7ff62e6006c0 Level-0 table #387: 0 bytes OK
2024/02/03-16:07:06.807671 7ff62e6006c0 Delete type=0 #385
2024/02/03-16:07:06.828364 7ff62e6006c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)

View File

@ -1,7 +1,7 @@
2023/11/15-17:41:29.501814 7fee095fa6c0 Recovering log #354
2023/11/15-17:41:29.511651 7fee095fa6c0 Delete type=3 #352
2023/11/15-17:41:29.511705 7fee095fa6c0 Delete type=0 #354
2023/11/15-17:41:59.410822 7feb713c96c0 Level-0 table #359: started
2023/11/15-17:41:59.410872 7feb713c96c0 Level-0 table #359: 0 bytes OK
2023/11/15-17:41:59.417451 7feb713c96c0 Delete type=0 #357
2023/11/15-17:41:59.425867 7feb713c96c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)
2024/01/28-22:44:44.751723 7ff6b7fff6c0 Recovering log #378
2024/01/28-22:44:44.761238 7ff6b7fff6c0 Delete type=3 #376
2024/01/28-22:44:44.761415 7ff6b7fff6c0 Delete type=0 #378
2024/01/28-22:44:46.621828 7ff4363ff6c0 Level-0 table #383: started
2024/01/28-22:44:46.621856 7ff4363ff6c0 Level-0 table #383: 0 bytes OK
2024/01/28-22:44:46.628296 7ff4363ff6c0 Delete type=0 #381
2024/01/28-22:44:46.642188 7ff4363ff6c0 Manual compaction at level-0 from '!folders!3uquYH73ttCdoH0I' @ 72057594037927935 : 1 .. '!items!ylFhk7mGZOnAJTUT' @ 0 : 0; will stop at (end)

View File

@ -1 +1 @@
MANIFEST-000359
MANIFEST-000383

View File

@ -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)

View File

@ -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)

View File

@ -1 +1 @@
MANIFEST-000359
MANIFEST-000383

View File

@ -1,7 +1,7 @@
2023/11/15-17:42:16.111319 7fedf3fff6c0 Recovering log #357
2023/11/15-17:42:16.141307 7fedf3fff6c0 Delete type=3 #355
2023/11/15-17:42:16.141358 7fedf3fff6c0 Delete type=0 #357
2023/11/15-17:42:45.269172 7feb713c96c0 Level-0 table #362: started
2023/11/15-17:42:45.269251 7feb713c96c0 Level-0 table #362: 0 bytes OK
2023/11/15-17:42:45.275774 7feb713c96c0 Delete type=0 #360
2023/11/15-17:42:45.287295 7feb713c96c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal!yzw9I0r3hCK7PJnz' @ 0 : 0; will stop at (end)
2024/02/03-16:06:26.176917 7ff62fe006c0 Recovering log #381
2024/02/03-16:06:26.188154 7ff62fe006c0 Delete type=3 #379
2024/02/03-16:06:26.188247 7ff62fe006c0 Delete type=0 #381
2024/02/03-16:07:06.786927 7ff62e6006c0 Level-0 table #386: started
2024/02/03-16:07:06.786955 7ff62e6006c0 Level-0 table #386: 0 bytes OK
2024/02/03-16:07:06.793691 7ff62e6006c0 Delete type=0 #384
2024/02/03-16:07:06.800562 7ff62e6006c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal!yzw9I0r3hCK7PJnz' @ 0 : 0; will stop at (end)

View File

@ -1,7 +1,7 @@
2023/11/15-17:41:29.475001 7fedf3fff6c0 Recovering log #353
2023/11/15-17:41:29.485837 7fedf3fff6c0 Delete type=3 #351
2023/11/15-17:41:29.485890 7fedf3fff6c0 Delete type=0 #353
2023/11/15-17:41:59.403681 7feb713c96c0 Level-0 table #358: started
2023/11/15-17:41:59.403727 7feb713c96c0 Level-0 table #358: 0 bytes OK
2023/11/15-17:41:59.410630 7feb713c96c0 Delete type=0 #356
2023/11/15-17:41:59.425858 7feb713c96c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal!yzw9I0r3hCK7PJnz' @ 0 : 0; will stop at (end)
2024/01/28-22:44:44.726678 7ff6b6ffd6c0 Recovering log #377
2024/01/28-22:44:44.737307 7ff6b6ffd6c0 Delete type=3 #375
2024/01/28-22:44:44.737352 7ff6b6ffd6c0 Delete type=0 #377
2024/01/28-22:44:46.635876 7ff4363ff6c0 Level-0 table #382: started
2024/01/28-22:44:46.635918 7ff4363ff6c0 Level-0 table #382: 0 bytes OK
2024/01/28-22:44:46.642067 7ff4363ff6c0 Delete type=0 #380
2024/01/28-22:44:46.642208 7ff4363ff6c0 Manual compaction at level-0 from '!journal!50u8VAjdmovyr0hx' @ 72057594037927935 : 1 .. '!journal!yzw9I0r3hCK7PJnz' @ 0 : 0; will stop at (end)

View File

@ -1 +1 @@
MANIFEST-000359
MANIFEST-000383

View File

@ -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)

View File

@ -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)

View File

@ -1 +1 @@
MANIFEST-000002
MANIFEST-000026

View File

@ -1,5 +1,8 @@
2023/11/15-17:42:16.246765 7fee08df96c0 Delete type=3 #1
2023/11/15-17:42:45.275880 7feb713c96c0 Level-0 table #5: started
2023/11/15-17:42:45.279591 7feb713c96c0 Level-0 table #5: 64121 bytes OK
2023/11/15-17:42:45.286793 7feb713c96c0 Delete type=0 #3
2023/11/15-17:42:45.287310 7feb713c96c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end)
2024/02/03-16:06:26.222775 7ff634c006c0 Recovering log #24
2024/02/03-16:06:26.234065 7ff634c006c0 Delete type=3 #22
2024/02/03-16:06:26.234152 7ff634c006c0 Delete type=0 #24
2024/02/03-16:07:06.814168 7ff62e6006c0 Level-0 table #29: started
2024/02/03-16:07:06.814205 7ff62e6006c0 Level-0 table #29: 0 bytes OK
2024/02/03-16:07:06.821510 7ff62e6006c0 Delete type=0 #27
2024/02/03-16:07:06.828399 7ff62e6006c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end)
2024/02/03-16:07:06.828427 7ff62e6006c0 Manual compaction at level-1 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,8 @@
2024/01/28-22:44:44.763295 7ff6b77fe6c0 Recovering log #20
2024/01/28-22:44:44.773861 7ff6b77fe6c0 Delete type=3 #18
2024/01/28-22:44:44.773944 7ff6b77fe6c0 Delete type=0 #20
2024/01/28-22:44:46.628526 7ff4363ff6c0 Level-0 table #25: started
2024/01/28-22:44:46.628587 7ff4363ff6c0 Level-0 table #25: 0 bytes OK
2024/01/28-22:44:46.635682 7ff4363ff6c0 Delete type=0 #23
2024/01/28-22:44:46.642199 7ff4363ff6c0 Manual compaction at level-0 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end)
2024/01/28-22:44:46.642253 7ff4363ff6c0 Manual compaction at level-1 from '!journal!056ILNNrLiPq3Gi3' @ 72057594037927935 : 1 .. '!journal!yfZxl4I7XAuUF6r3' @ 0 : 0; will stop at (end)

Binary file not shown.