this post was submitted on 26 Nov 2024
1 points (100.0% liked)

Perchance - Create a Random Text Generator

506 readers
7 users here now

⚄︎ Perchance

This is a Lemmy Community for perchance.org, a platform for sharing and creating random text generators.

Feel free to ask for help, share your generators, and start friendly discussions at your leisure :)

This community is mainly for discussions between those who are building generators. For discussions about using generators, especially the popular AI ones, the community-led Casual Perchance forum is likely a more appropriate venue.

See this post for the Complete Guide to Posting Here on the Community!

Rules

1. Please follow the Lemmy.World instance rules.

2. Be kind and friendly.

  • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)

3. Be thankful to those who try to help you.

  • If you ask a question and someone has made a effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)

4. Only post about stuff related to perchance.

  • Please only post about perchance related stuff like generators on it, bugs, and the site.

5. Refrain from requesting Prompts for the AI Tools.

  • We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"
  • See Perchance AI FAQ for FAQ about the AI tools.
  • You can ask for help with prompting at the 'sister' community Casual Perchance, which is for more casual discussions.
  • We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

6. Search through the Community Before Posting.

  • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

founded 2 years ago
MODERATORS
 

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)

you are viewing a single comment's thread
view the rest of the comments
[–] Lin1 1 points 1 month ago* (last edited 1 month ago) (2 children)

here you go and thank you for helping me (and possibly others).

[–] perchance 1 points 1 month ago* (last edited 1 month ago) (1 children)

Okay, that was helpful, thank you! New test: Can you try refreshing the page, and then waiting about 20 seconds to see if an "export data" button appears at the top of the screen? If so, click it, and let me know if you see any errors in the console (please screenshot if so), and whether it downloads a ai-character-chat-raw-export.cbor file successfully (let me know file size if so). Please also open the console when it's exporting/downloading and screenshot if you see any errors.

[–] Lin1 1 points 1 month ago (2 children)

the button was there, there were no errors but it never exported... it just stays loading

[–] perchance 1 points 1 month ago (1 children)

Can you please try again now, and also share screenshot of the logs of the process? It'll take about 5 minutes, since it will take a while for it to "give up" on the data that it wasn't able to get. Also can you try going to the "Applications" tab like I describe in this comment:

https://lemmy.world/comment/13719433

[–] Lin1 1 points 1 month ago (1 children)
[–] perchance 1 points 1 month ago* (last edited 1 month ago) (1 children)

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.
[–] Lin1 1 points 1 month ago* (last edited 1 month ago) (1 children)

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

[–] perchance 2 points 1 month ago* (last edited 1 month ago) (1 children)

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.

[–] Lin1 1 points 1 month ago* (last edited 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)!!!