v11 cleanup and ready

This commit is contained in:
LeRatierBretonnien 2024-02-21 20:40:39 +01:00
parent cd88d6ea92
commit 06bb07f8bb
30 changed files with 135 additions and 55 deletions

42
init.js
View File

@ -1,37 +1,37 @@
Hooks.on("init", () => {
game.settings.register("wfrp4e-night-of-blood", "initialized", {
game.settings.register("wfrp4e-night-of-blood", "initialized", {
name: "Initialization",
scope: "world",
config: false,
default: false,
type: Boolean
});
});
game.settings.registerMenu("wfrp4e-night-of-blood", "init-dialog", {
name: "WFRP4e Night of Blood Initialization",
label : "Initialize",
hint : "This will import content for the WFRP4e adventure Night of Blood Module",
type : WFRP4eNightOfBloodInitialization,
restricted: true
})
game.settings.registerMenu("wfrp4e-night-of-blood", "init-dialog", {
name: "WFRP4e Night of Blood Initialization",
label: "Initialize",
hint: "This will import content for the WFRP4e adventure Night of Blood Module",
type: WFRP4eNightOfBloodInitialization,
restricted: true
})
})
Hooks.on("ready", () => {
if (!game.settings.get("wfrp4e-night-of-blood", "initialized") && game.user.isGM)
{
new WFRP4eNightOfBloodInitialization().render(true)
}
if (!game.settings.get("wfrp4e-night-of-blood", "initialized") && game.user.isGM) {
new WFRP4eNightOfBloodInitialization().render(true)
}
})
class WFRP4eNightOfBloodInitialization extends FormApplication {
async render() {
let html = "";
try { html = await (await fetch("https://www.stuartkerrigan.com/fvtt/nob/init.php")).text()
}
catch (err){
html = `<p>Night of Blood is the classic Warhammer Fantasy Roleplay scenario, and an excellent introduction to the game. The scenario was written in 1987 by Jim Bambra and has been republished officially and unofficially for 1st Edition, 2nd Edition and 4th Edition.</p>`;
}
new game.wfrp4e.apps.ModuleInitializer("wfrp4e-night-of-blood", "WFRP4e Night of Blood",html).render(true);
async render() {
let html = "";
try {
html = await (await fetch("https://www.stuartkerrigan.com/fvtt/nob/init.php")).text()
}
catch (err) {
html = `<p>Night of Blood is the classic Warhammer Fantasy Roleplay scenario, and an excellent introduction to the game. The scenario was written in 1987 by Jim Bambra and has been republished officially and unofficially for 1st Edition, 2nd Edition and 4th Edition.</p>`;
}
new game.wfrp4e.apps.ModuleInitializer("wfrp4e-night-of-blood", "WFRP4e Night of Blood", html).render(true);
}
}

View File

@ -1,41 +1,57 @@
{
"name": "wfrp4e-night-of-blood",
"title": "Night of Blood (WFRP 4e)",
"description": "The classic Warhammer Fantasy Roleplay adventure, perfect for introducing new players. Now updated to include multi-level scenes",
"version": "3.0",
"version": "3.1",
"author": "Stuart Kerrigan",
"dependencies": [
{
"name": "lib-wrapper"
},
{
"name": "betterroofs"
},
{
"name": "wall-height"
},
{
"name": "levels"
},
{
"name": "token-attacher"
},
{
"name": "ambientdoors"
},
{
"name": "tokenmagic"
}
],
"esmodules": [],
"scripts": [
"init.js"
],
"systems": [
"wfrp4e"
],
"relationships": {
"systems": [
{
"id": "wfrp4e",
"type": "system",
"compatibility": {}
}
],
"requires": [
{
"id": "babele",
"type": "module",
"compatibility": {}
},
{
"id": "lib-wrapper",
"type": "module"
},
{
"id": "betterroofs",
"type": "module"
},
{
"id": "wall-height",
"type": "module"
},
{
"id": "levels",
"type": "module"
},
{
"id": "token-attacher",
"type": "module"
},
{
"id": "ambientdoors",
"type": "module"
},
{
"id": "tokenmagic",
"type": "module"
}
]
},
"styles": [
"./styles.css"
],
"packs": [
{
@ -68,13 +84,21 @@
}
],
"flags": {
"initializationPacks": ["wfrp4e-night-of-blood.NightOfBloodActors", "wfrp4e-night-of-blood.NightOfBloodScenes", "wfrp4e-night-of-blood.NightOfBloodJournal"]
"initializationPacks": ["wfrp4e-night-of-blood.NightOfBloodActors", "wfrp4e-night-of-blood.NightOfBloodScenes", "wfrp4e-night-of-blood.NightOfBloodJournal"],
"folder": {
"name": "Night of Blood",
"sorting": "m",
"color": "#751515"
}
},
"languages": [
"en"
],
"minimumCoreVersion": "0.9",
"manifest": "https://raw.githubusercontent.com/CStuartEKerrigan/WFRP-Night-of-Blood-4e-FVTT/master/module.json",
"download": "https://github.com/CStuartEKerrigan/WFRP-Night-of-Blood-4e-FVTT/archive/master.zip",
"id": "wfrp4e-night-of-blood",
"compatibility": {
"minimum": "11",
"verified": "11"
},
"manifest": "https://www.uberwald.me/gitea/public/WFRP-Night-of-Blood-4e-FVTT/raw/master/module.json",
"download": "https://www.uberwald.me/gitea/public/WFRP-Night-of-Blood-4e-FVTT/archive/WFRP-Night-of-Blood-4e-FVTT-v3.1.zip",
"url": "https://github.com/CStuartEKerrigan/WFRP-Night-of-Blood-4e-FVTT/"
}

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000006

View File

View File

@ -0,0 +1,8 @@
2024/02/21-20:37:10.060593 7fe93aa006c0 Recovering log #4
2024/02/21-20:37:10.116671 7fe93aa006c0 Delete type=3 #2
2024/02/21-20:37:10.116721 7fe93aa006c0 Delete type=0 #4
2024/02/21-20:40:18.382429 7fe9336006c0 Level-0 table #9: started
2024/02/21-20:40:18.382466 7fe9336006c0 Level-0 table #9: 0 bytes OK
2024/02/21-20:40:18.408232 7fe9336006c0 Delete type=0 #7
2024/02/21-20:40:18.408447 7fe9336006c0 Manual compaction at level-0 from '!actors!0c2PJoezfrYDnial' @ 72057594037927935 : 1 .. '!actors.items.effects!xsFW1owziB9narOa.xoQMNgLhXSetGxPs.CAcGBn8sq62mVUxJ' @ 0 : 0; will stop at (end)
2024/02/21-20:40:18.408509 7fe9336006c0 Manual compaction at level-1 from '!actors!0c2PJoezfrYDnial' @ 72057594037927935 : 1 .. '!actors.items.effects!xsFW1owziB9narOa.xoQMNgLhXSetGxPs.CAcGBn8sq62mVUxJ' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,5 @@
2024/02/21-20:30:40.550895 7fe93be006c0 Delete type=3 #1
2024/02/21-20:37:01.143314 7fe9336006c0 Level-0 table #5: started
2024/02/21-20:37:01.158893 7fe9336006c0 Level-0 table #5: 46752 bytes OK
2024/02/21-20:37:01.193250 7fe9336006c0 Delete type=0 #3
2024/02/21-20:37:01.301173 7fe9336006c0 Manual compaction at level-0 from '!actors!0c2PJoezfrYDnial' @ 72057594037927935 : 1 .. '!actors.items.effects!xsFW1owziB9narOa.xoQMNgLhXSetGxPs.CAcGBn8sq62mVUxJ' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000006

View File

View File

@ -0,0 +1,8 @@
2024/02/21-20:37:10.175404 7fe93a0006c0 Recovering log #4
2024/02/21-20:37:10.228554 7fe93a0006c0 Delete type=3 #2
2024/02/21-20:37:10.228706 7fe93a0006c0 Delete type=0 #4
2024/02/21-20:40:18.437459 7fe9336006c0 Level-0 table #9: started
2024/02/21-20:40:18.437482 7fe9336006c0 Level-0 table #9: 0 bytes OK
2024/02/21-20:40:18.465963 7fe9336006c0 Delete type=0 #7
2024/02/21-20:40:18.523248 7fe9336006c0 Manual compaction at level-0 from '!journal!0REn6kpBB3CuQCCJ' @ 72057594037927935 : 1 .. '!journal!sC0T69oyBWtlWjVf' @ 0 : 0; will stop at (end)
2024/02/21-20:40:18.523281 7fe9336006c0 Manual compaction at level-1 from '!journal!0REn6kpBB3CuQCCJ' @ 72057594037927935 : 1 .. '!journal!sC0T69oyBWtlWjVf' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,5 @@
2024/02/21-20:30:40.633795 7fe93be006c0 Delete type=3 #1
2024/02/21-20:37:01.193408 7fe9336006c0 Level-0 table #5: started
2024/02/21-20:37:01.212992 7fe9336006c0 Level-0 table #5: 17150 bytes OK
2024/02/21-20:37:01.251540 7fe9336006c0 Delete type=0 #3
2024/02/21-20:37:01.301199 7fe9336006c0 Manual compaction at level-0 from '!journal!0REn6kpBB3CuQCCJ' @ 72057594037927935 : 1 .. '!journal!sC0T69oyBWtlWjVf' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000006

View File

View File

@ -0,0 +1,8 @@
2024/02/21-20:37:10.119830 7fe93a0006c0 Recovering log #4
2024/02/21-20:37:10.171783 7fe93a0006c0 Delete type=3 #2
2024/02/21-20:37:10.171835 7fe93a0006c0 Delete type=0 #4
2024/02/21-20:40:18.408658 7fe9336006c0 Level-0 table #9: started
2024/02/21-20:40:18.408725 7fe9336006c0 Level-0 table #9: 0 bytes OK
2024/02/21-20:40:18.437349 7fe9336006c0 Delete type=0 #7
2024/02/21-20:40:18.523237 7fe9336006c0 Manual compaction at level-0 from '!scenes!3FUmiZQODgw6UpbH' @ 72057594037927935 : 1 .. '!scenes.walls!xbiWDHu8jQ0jLbmg.yUvIag40raDRcMOn' @ 0 : 0; will stop at (end)
2024/02/21-20:40:18.523287 7fe9336006c0 Manual compaction at level-1 from '!scenes!3FUmiZQODgw6UpbH' @ 72057594037927935 : 1 .. '!scenes.walls!xbiWDHu8jQ0jLbmg.yUvIag40raDRcMOn' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,5 @@
2024/02/21-20:30:40.595310 7fe93be006c0 Delete type=3 #1
2024/02/21-20:37:01.086021 7fe9336006c0 Level-0 table #5: started
2024/02/21-20:37:01.104932 7fe9336006c0 Level-0 table #5: 30103 bytes OK
2024/02/21-20:37:01.142993 7fe9336006c0 Delete type=0 #3
2024/02/21-20:37:01.301133 7fe9336006c0 Manual compaction at level-0 from '!scenes!3FUmiZQODgw6UpbH' @ 72057594037927935 : 1 .. '!scenes.walls!xbiWDHu8jQ0jLbmg.yUvIag40raDRcMOn' @ 0 : 0; will stop at (end)

Binary file not shown.

Binary file not shown.

View File

View File

@ -0,0 +1 @@
MANIFEST-000006

View File

View File

@ -0,0 +1,8 @@
2024/02/21-20:37:10.231201 7fe93aa006c0 Recovering log #4
2024/02/21-20:37:10.291159 7fe93aa006c0 Delete type=3 #2
2024/02/21-20:37:10.291219 7fe93aa006c0 Delete type=0 #4
2024/02/21-20:40:18.495177 7fe9336006c0 Level-0 table #9: started
2024/02/21-20:40:18.495245 7fe9336006c0 Level-0 table #9: 0 bytes OK
2024/02/21-20:40:18.523136 7fe9336006c0 Delete type=0 #7
2024/02/21-20:40:18.523266 7fe9336006c0 Manual compaction at level-0 from '!playlists!L7ey4DX9iQut6N0T' @ 72057594037927935 : 1 .. '!playlists.sounds!UJg3CQ1Hh0ItcDpa.1eeMsC01CDTHLhEK' @ 0 : 0; will stop at (end)
2024/02/21-20:40:18.523294 7fe9336006c0 Manual compaction at level-1 from '!playlists!L7ey4DX9iQut6N0T' @ 72057594037927935 : 1 .. '!playlists.sounds!UJg3CQ1Hh0ItcDpa.1eeMsC01CDTHLhEK' @ 0 : 0; will stop at (end)

View File

@ -0,0 +1,5 @@
2024/02/21-20:30:40.665492 7fe93aa006c0 Delete type=3 #1
2024/02/21-20:37:01.301454 7fe9336006c0 Level-0 table #5: started
2024/02/21-20:37:01.320654 7fe9336006c0 Level-0 table #5: 847 bytes OK
2024/02/21-20:37:01.358354 7fe9336006c0 Delete type=0 #3
2024/02/21-20:37:01.358569 7fe9336006c0 Manual compaction at level-0 from '!playlists!L7ey4DX9iQut6N0T' @ 72057594037927935 : 1 .. '!playlists.sounds!UJg3CQ1Hh0ItcDpa.1eeMsC01CDTHLhEK' @ 0 : 0; will stop at (end)

Binary file not shown.