From fc9c90c4ee9b334556ec174f92a38ad7c0927a0d Mon Sep 17 00:00:00 2001 From: kingbri Date: Sun, 25 Jun 2023 00:36:40 -0400 Subject: [PATCH] World Info: Add global multi-selection/merging Global world info always involved some kind of merging leading to extremely large lorebook files that took a long time to import. This commit adds the ability to select more than one world info file and they will be merged together along with character world info. In short, multiple worlds can be meshed together to further contribute to context. You can also use this for world "DLCs" of sorts. Let's say someone else has more information to add regarding a world, but doesn't want to use a large world file. The JSONs can now be merged. Signed-off-by: kingbri --- public/index.html | 69 ++++++++-------- public/script.js | 2 +- public/scripts/world-info.js | 150 +++++++++++++++++++++-------------- 3 files changed, 125 insertions(+), 96 deletions(-) diff --git a/public/index.html b/public/index.html index 18d70de3f..749a3fd6c 100644 --- a/public/index.html +++ b/public/index.html @@ -1876,17 +1876,17 @@
-
-
-
- Active World -
-
- -
+
+
+ Active World
+
+ +
+
+
-
-
-
-
- Scan Depth -
-
-
- +
+
+
+ Scan Depth
-
-
- depth +
+
+ +
+
+
+ depth +
-
- -
-
- Context % -
-
-
- + +
+
+ Context %
-
-
- budget +
+
+ +
+
+
+ budget +
+