One day my computer crashed while I was using it and now it’s just this. It doesn’t work in a normal window but it does work in an Incognito one. I do not know what happened. (I have not touched any code in this AI character chat)

  • @Lin1OP
    link
    English
    11 month ago

    • @perchanceM
      link
      English
      1
      edit-2
      1 month ago

      Hmm, can you try this:

      • If you currently have the console open, close it with the “x” in the top-right.
      • Then right-clicking in the middle of the page, and selecting “Inspect” in the menu that appears.
      • It’ll open up the console thing, but it’ll be on the “Elements” tab.
      • Click the “Console” tab and scroll to the bottom, and type/paste this exact text: await db.characters.get(999999999)
      • Then press enter, and let me know if you see “undefined” immediately appear underneath it.
      • If you do see undefined appear, then try pasting it again but change the number to 5 - i.e. await db.characters.get(5)
      • If you see undefined again, try a few different numbers like 10, 20, 50 - we’re basically trying to guess the IDs of the characters you had to see if we can get data for them individually.
      • If you don’t see anything appear under the original await db.characters.get(999999999) then please let me know. This complicates matters, and we’ll need to go “deeper” into Chrome to (hopefully) solve this.
      • @Lin1OP
        link
        English
        1
        edit-2
        1 month ago

        okay, so I was getting “undefined” and I did find 3 of my characters after doing numbers 1-30.

        • @perchanceM
          link
          English
          2
          edit-2
          1 month ago

          Okay, that’s promising.

          I’ve just updated the chat page so you can now export the database with the button that pops up after several seconds when the page fails to load. And then once you’ve done that (remember it may take 5 minutes):

          • It’ll save the export file to your device’s download folder
          • You’ll notice that a ‘delete all data’ button appears below the export button, but don’t click that yet.
          • Instead, to test that the exported file can be imported successfully, try opening an incognito/private/guest mode browser window, and visit https://perchance.org/ai-character-chat and import that file from your downloads folder using the ‘import’ button in the left side bar.
          • If it works, then ideally backup the file from your downloads folder to google drive or dropbox or something, just to ensure 100% that you don’t lose it, because the next step is to go back to the page where you exported it and click that ‘delete all data’ button that appeared underneath the export button.
          • Now reload the page, and import the file from your downloads folder using the import button, just like you did in the private browsing window.

          The way the export process works is by skipping the ‘corrupt’ character that’s causing the underlying issue - it actually just replaces it with one of your other characters, and then changes its name to ‘CORRUPT’. So you’ll probably lose at least one of your characters, but you’ll still likely have all their chats, so you just need to re-write their name/description/etc.

          Hopefully that works, but if not, then please let me know at which point it failed, and any error messages you saw.

          • @Lin1OP
            link
            English
            1
            edit-2
            1 month ago

            well, it worked, everything is back to normal, I have all but 2 of my characters (they were the corrupt ones but they were new and barely used ones so… idc that I lost them)

            !!!Thank you for all the help that you have provided me (and possibly others)!!!