VioneT

joined 2 years ago
MODERATOR OF
[–] VioneT@lemmy.world 1 points 18 hours ago* (last edited 18 hours ago) (1 children)

I was setting the check.roll to the difficulty that was generated. I guess it was not intended that way in which the roll is separate from the difficulty. You can change the section on the difficulty:

difficulty
  async onFinish(data) =>
    // check.roll = Number(data.text.replace("Difficulty: ", "")) // comment this out
    outputEl.innerHTML += ai(skill)

I've updated the code I've linked.

[–] VioneT@lemmy.world 2 points 19 hours ago (3 children)

Since the ai generation is not synchronous, accessing its value before the value is generated would throw errors. You can add a onFinish on your AI generation to only run the function after all AI generation are generated. Here is a working example: https://perchance.org/029ghm63yp

[–] VioneT@lemmy.world 1 points 2 days ago

Can you give the steps you took that led to this error? Are you on mobile? Are you using incognito?

[–] VioneT@lemmy.world 2 points 2 days ago (2 children)

Yeah, the limit for the Local Storage is 5Mb. If you use ai-character-chat, it has more storage (about 50Mb).

[–] VioneT@lemmy.world 1 points 2 days ago* (last edited 2 days ago)

Seems to be working fine in desktop on my end.

[–] VioneT@lemmy.world 1 points 3 days ago

Click edit on the top, then on the bottom right panel, go to that line and delete that section of code. Click 'reload' on the top of the HTML panel, then export your data. No need to click 'save' since it would create a new page.

[–] VioneT@lemmy.world 1 points 4 days ago

The creator seems to be appending an undefined element ('answerBufferingEl'). Although, the 'answerBufferingEl' is also already in the 'answerCtn' so there is no need for appending it.

[–] VioneT@lemmy.world 4 points 4 days ago* (last edited 3 days ago) (3 children)

@perchance@lemmy.world pinging dev. The problem is in the line 3269 on setting the usageStats.

...
// line 3269
    if(result.exportUserData === "no") {
      json.data.data.find(d => d.tableName === "usageStats").rows = []; // Throws error here
    } else {
      let usageStats = json.data.data.find(d => d.tableName === "usageStats");
      if(usageStats) {
        usageStats.rows = usageStats.rows.filter(entry => keepThreadCheck(entry.threadId) && keepCharacterCheck(entry.characterId));
      }
    }
...

Seems like on the DB Schema (line 2813), usageStats is no longer used, so maybe just removing them in the export fixes them.

[–] VioneT@lemmy.world 1 points 1 week ago

Is your python flask server have an API that Perchance can post and receive from? You could possibly post into your local server, then maybe receive an audio file that would play in the browser. Here is an example code of using a TTS API for character TTS.

 

Welcome to the Perchance Community!

Perchance.org is a platform for sharing and creating random text generators.

This Lemmy community is for:

  • Asking for help with problems, issues, or requests about generators in Perchance
  • Sharing and showcasing your created generators, templates, plugins, or pages in Perchance
  • Starting friendly discussions about topics related to Perchance
If it is your first time in using Lemmy, please check out this message from Lemmy.World and the Support Page from Lemmy.World to get started on using Lemmy.

Posting from Mastodon

Feel free to checkout this post to know how to post in this Lemmy Community through Mastodon.

Other Community Links

Rules

Here are some rules in this community:

  • Please follow the lemmy.world instance rules.
  • 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 :)
  • Be thankful to those who try to help you.
    • If you ask a question and someone has made an 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 :)
  • Only post about stuff related to perchance.
    • Please only post about perchance related stuff like generators on it, bugs, and the site.
  • 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.

Posting

Here are some optional tags to add in your title to categorize the posts. These are merely tags, you still need to title your post effectively.

  • [Bug] - if you think you find any bug in Perchance, use this tag.
  • [Question] or [Help] - this is to denote that your post is a question or requesting for help
  • [Suggestion] - for any suggestions in Perchance
  • [Feedback] or [Appreciation] - for any feedback or appreciation to any generator or to Perchance in general.
  • [{Generator Category}] - Used to share any generator with the specified category
    • Text, Image, Template, Hub, Plugin, Preprocessor, Community/RP, Game, Experiment, Useful Generator
  • [Fluff] or [Non-Generator] - Non-generator posts but about Perchance
  • [Tutorial] or [Guide] - for any Perchance related tutorials or guides to help others

AI Plugins Posts

Here is a FAQ for the AI tools in Perchance.

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?"

There are guides, tutorials, and resources on the internet that can be applied when prompting in the AI tools in Perchance.

We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

If you need help in prompting, please post on the 'sister' forum at Casual Perchance

Getting Started with Perchance

To get started with Perchance, check out the Perchance Tutorial or the Beginner Tutorial at the Perchance Hub Learn Tab to get to know the website.

Asking for help

Feel free to ask for help but please check out these tips on searching for an answer:

  • Check the following pages, to see if your question has already been answered or talked about or a plugin has been made for it. We recommend using the browser's search function (ctrl+f) and searching for similar keywords to your question/problem.
  • If you didn't find anything about your problem there, feel free to search through the posts/articles here:
  • If you can't still find anything related to your problem, feel free to post a thread here.
    • Please title your post effectively.
    • Please provide a link to your generator with your attempts of solving the problem.
    • Try to explain what you want it to do and what example output it should be doing.
view more: next ›