diff --git a/aiserver.py b/aiserver.py index e151a32b..4cf86030 100644 --- a/aiserver.py +++ b/aiserver.py @@ -6365,6 +6365,8 @@ def UI_2_redo(data): #==================================================================# @socketio.on('retry') def UI_2_retry(data): + if koboldai_vars.numseqs == 1: + UI_2_back(None) koboldai_vars.actions.clear_unused_options() koboldai_vars.lua_koboldbridge.feedback = None koboldai_vars.recentrng = koboldai_vars.recentrngm = None diff --git a/koboldai_settings.py b/koboldai_settings.py index 1ff2c3c5..79ecdb69 100644 --- a/koboldai_settings.py +++ b/koboldai_settings.py @@ -361,6 +361,7 @@ class story_settings(settings): self.recentedit = False self.notes = "" #Notes for the story. Does nothing but save self.biases = {} # should look like {"phrase": [score, completion_threshold]} + self.story_id = int.from_bytes(os.urandom(16), 'little', signed=True) # this is a unique ID for the story. We'll use this to ensure when we save that we're saving the same story def save_story(self): print("Saving") diff --git a/static/koboldai.css b/static/koboldai.css index f3c9178c..c650de06 100644 --- a/static/koboldai.css +++ b/static/koboldai.css @@ -17,15 +17,15 @@ --text_to_ai_color: #CCECFF; --text_edit: #cdf; --flyout_background: #18222a; - --setting_background: #2c3a51; - --setting_text: white; - --dropdown-select: white; - --dropdown-background: #212734; - --preset-item-background: black; + --setting_background: #273141; + --setting_text: #f2ff65; + --dropdown-select: white; + --dropdown-background: #1a242b; + --preset-item-background: black; --tooltip_text: white; --tooltip_background: #212734; - --gamescreen_background: #121a1e; - --textarea_background: #1a242b; + --gamescreen_background: #12181c; + --textarea_background: #0f1920; --options_background: #404040; --enabled_button_text: #fff; --enabled_button_background_color: #4259a0; diff --git a/static/koboldai.js b/static/koboldai.js index 42add931..dcad8d03 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -1249,6 +1249,11 @@ function world_info_folder(data) { } //--------------------------------------------UI to Server Functions---------------------------------- +function save_as_story() { + + +} + function save_bias(item) { var have_blank = false;