Perchance - Create a Random Text Generator

570 readers
10 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
1
 
 

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.
2
 
 

Image generation, story generation and the character chats seem to be down. It's been really spotty for me for a couple of hours. Not sure if it's just a problem on my end or an issue with the site.

3
 
 

Line 45-49, I am trying to make it do math, and then go to $output. I'll put an example here of what is currently happening, and then what I am trying to achieve.

Current:

You are trying to convince a guard to let you into a restricted area.

Difficulty: 60

Skill: Charisma

undefined + undefined = undefined

Expected example:

You are trying to convince a guard to let you into a restricted area.

Difficulty: 60

Skill: Charisma

50 + 22 = 72

On line 47 there is also a more specific issue, according to the red line highlighting it. The text ai was used to generate something like "Skill: Charisma" earlier in the code. Then on line 47, it is getting rid of the "Skill: " so all that remains is "Charisma". There was a variable set at line 11 which shows the value of "Charisma".

Hopefully I explained this well enough. Thank you for your assistance everyone!

(Edit: Put a line break in the output, to more closely match the output from the program)

4
 
 

Found this notification on my vpn after reviewing malicious sites this morning. I haven't uploaded anything to the perchance site. I may be wrong but it appears something was captured from my system without my permission. Thoughts?

5
 
 

Help pls

6
2
submitted 1 day ago* (last edited 1 day ago) by Lin1@lemmy.world to c/perchance@lemmy.world
 
 

I did what I did last time to fix the blank screen problem and now I just can't import the raw db file.

7
1
submitted 1 day ago* (last edited 1 day ago) by dedaluslogic@lemmy.world to c/perchance@lemmy.world
 
 

I run three BlueSky bots based on Perchance that rely on the rss feed outputing. Since I edited two of the generators today the feed stopped updating and is stuck in the "This is a placeholder. You may need to wait up to 5 minutes for the first actual generated result to arrive" message, for many hours now. The one generator I didn't edit is working fine with the feed. It never took hours for the feed to update after editing and saving the generator.

Is there any problems on the side of Perchance or Glitch?

Thank you.

8
 
 

This is what it says on the error page: JSON file is around 5Mb at this point. Let me know how to fix it? Perchance no longer has memories at this point.

VM881:81 error in onFinish: QuotaExceededError: Failed to set a named property 'storySoFar' on 'Storage': Setting the value of 'storySoFar' exceeded the quota. at Object.eval (eval at PERCH.createPerchanceTree (ai-rpg?__generatorLa…737262792605:597:36), :41:20) at doOnFinishStuff (eval at PERCH.createPerchanceTree (ai-rpg?__generatorLa…737262792605:597:36), :454:17) at eval (eval at PERCH.createPerchanceTree (ai-rpg?__generatorLa…737262792605:597:36), :557:1) at messageHandler (eval at PERCH.createPerchanceTree (

9
 
 

Title says it all and this is the error that pops up while I'm chatting with a new character. It gets cleared and defaults to only having a premade character (not mine) in the list to be able to chat to, and my characters deleted

10
 
 

When clicking on the play buttons this error shows up a NotSupportedError shows up.

11
 
 

When submitting any prompt, it states "An error has occurred somewhere in your code (in lists or HTML): An unhandled promise rejection occurred: ReferenceError: answerBufferingEl is not defined"

12
 
 

Hello!

I can't export characters and chats when "Export user settings/data" is set to No, but it works with Yes. This happens for all and each specific character and chat. The Dev Tools console shows the following:

Also, setting "Export user settings/data" to Yes allows me to export characters and chats even if the nickname, avatar URL, and description fields are empty.

I tried exporting in Google's Incognito and Brave's Private windows and got the same result. The issue persists even after restarting and waiting a few days. I've tried it on mobile and Safari and the following shows:

Everything worked fine 3 days ago.

Does anyone have any way to resolve this issue?

*Note: I wouldn't mind exporting with the user settings/data set to Yes, but it's more convenient when I'm chatting with a character with different settings. Plus, I can share my OCs as JSON files with others immediately. *

Hope I was specific as possible.

13
 
 
  message = message.replace(/(https?:\/\/[^\s]+)/g, url => /\.(png|webp|jpeg|jpg|gif)$/i.test(url) 
  ? `<a href="${url}" target="_blank" rel="noopener noreferrer"><img src="${url}" style="height:100px; display:block; cursor:pointer;"></a>` 
  : `<a href="${url}" target="_blank" rel="noopener noreferrer">${url}</a>`

I believe it's not added due to moderation and safety reason.

But those unmoderated chat are always and already chaos and sometimes NSFW in nature.

A better option is made those optional choice for gen owners.

I believe that could be a huge chat experience boost in moderated gens.

14
 
 

It would be much appreciated that the gallery moderation could work just like chat -

Sometimes we just want to take down some particular gallery posts, rather than banning the user.

15
 
 

I'm trying to get into the advanced AI chat, but it doesn't load. Instead, it asks me to export my data, which fails, and leads to this pop-up.

16
 
 

I am trying to use the advance settings in the AI character chat in order to write a Javascript code that lets me scrape the message and output it to my computer for use in coqui-tts. I have coqui-tts set up with python flask in order to listen for the message but every time I try there seems to be errors. The main error I get in the Chrome console is about it being sandboxed. Can I get around this by editing the generator's code itself instead of adding Javascript code to the advanced settings, or is the entire website sandboxed? Coqui-tts is old and outdated so I have been using the updated idiap/coqui-ai-tts in case that helps. I have it running on my computer perfectly so I do know that the only problem is getting the output from perchance.

17
 
 

Dear Perchance Dev, would it be possible to add blockedByCurrentUser or a similar blocked property to the objects of the other users, so their message could be hidden and toggled to provide a better user experience?

Note, I am asking this because; when a user replies to the message of a person that is blocked by the current user, that message object's contents are presented to the current user even though they have blocked them.

18
 
 

How i stop narrator using old messages when its generating images, its mixing images together from lot of messages that are far away

19
0
submitted 1 week ago* (last edited 1 week ago) by Liquid_Paradox@lemmy.world to c/perchance@lemmy.world
 
 

So, I've been away from the AI chat for a while, and decided to look in to pull a few json's for posterity and I hit a roadblock: see image for the error.

Anyways, following the instructions, I encountered:

        "Sync encountered an error - see about:sync-log for the log file."
      );
    }
    Svc.Obs.notify("weave:service:reset-file-log");
  },

  /**
   * Handle HTTP response results or exceptions and set the appropriate
   * Status.* bits.
   *
   * This method also looks for "side-channel" warnings.
   */
  checkServerError(resp) {
    // In this case we were passed a resolved value of Resource#_doRequest.
    switch (resp.status) {
      case 400:
        if (resp == RESPONSE_OVER_QUOTA) {
          lazy.Status.sync = OVER_QUOTA;
        }
        break;

      case 401:
        this.service.logout();
        this._log.info("Got 401 response; resetting clusterURL.");
        this.service.clusterURL = null;

        let delay = 0;
        if (Svc.PrefBranch.getBoolPref("lastSyncReassigned", false)) {
          // We got a 401 in the middle of the previous sync, and we just got
          // another. Login must have succeeded in order for us to get here, so
          // the password should be correct.
          // This is likely to be an intermittent server issue, so back off and
          // give it time to recover.
          this._log.warn("Last sync also failed for 401. Delaying next sync.");
          delay = MINIMUM_BACKOFF_INTERVAL;
        } else {
          this._log.debug("New mid-sync 401 failure. Making a note.");
          Svc.PrefBranch.setBoolPref("lastSyncReassigned", true);
        }
        this._log.info("Attempting to schedule another sync.");
        this.service.scheduler.scheduleNextSync(delay, { why: "reschedule" });
        break;

      case 500:
      case 502:
      case 503:
      case 504:
        lazy.Status.enforceBackoff = true;
        if (resp.status == 503 && resp.headers["retry-after"]) {
          let retryAfter = resp.headers["retry-after"];
          this._log.debug("Got Retry-After: " + retryAfter);
          if (this.service.isLoggedIn) {
            lazy.Status.sync = SERVER_MAINTENANCE;
          } else {
            lazy.Status.login = SERVER_MAINTENANCE;
          }
          Svc.Obs.notify(
            "weave:service:backoff:interval",
            parseInt(retryAfter, 10)
          );
        }
        break;
    }

    // In this other case we were passed a rejection value.
    switch (resp.result) {
      case Cr.NS_ERROR_UNKNOWN_HOST:
      case Cr.NS_ERROR_CONNECTION_REFUSED:
      case Cr.NS_ERROR_NET_TIMEOUT:
      case Cr.NS_ERROR_NET_RESET:
      case Cr.NS_ERROR_NET_INTERRUPT:
      case Cr.NS_ERROR_PROXY_CONNECTION_REFUSED:
        // The constant says it's about login, but in fact it just
        // indicates general network error.
        if (this.service.isLoggedIn) {
          lazy.Status.sync = LOGIN_FAILED_NETWORK_ERROR;
        } else {
          lazy.Status.login = LOGIN_FAILED_NETWORK_ERROR;
        }
        break;
    }
  },
};`

The sync-log:

1738999734204	FirefoxAccounts	TRACE	starting fetch of json user data
1738999734254	FirefoxAccounts	TRACE	initializing of new storage manager done
1738999734254	FirefoxAccounts	ERROR	FxA rejecting with error NO_ACCOUNT, details: undefined
1738999734254	FirefoxAccounts	ERROR	Could not update attached clients list : Error: NO_ACCOUNT(resource://gre/modules/FxAccounts.sys.mjs:1655:18) JS Stack trace: _error@FxAccounts.sys.mjs:1655:18
withSessionToken@FxAccounts.sys.mjs:869:18
1738999734272	Sync.Status	INFO	Resetting Status.
1738999734272	Sync.Status	DEBUG	Status.service: undefined => success.status_ok
1738999734272	Sync.SyncScheduler	TRACE	Setting SyncScheduler policy values to defaults.
1738999734272	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
1738999734272	Sync.Service	INFO	Loading Weave 1.137.0
1738999734273	Sync.Engine.Clients	DEBUG	Engine constructed
1738999734273	Sync.Engine.Clients	DEBUG	Resetting clients last sync time
1738999734275	Sync.Engine.Addons	DEBUG	Engine constructed
1738999734307	Sync.Engine.Addons	DEBUG	SyncEngine initialized: addons
1738999734320	Sync.Engine.Passwords	DEBUG	Engine constructed
1738999734332	Sync.Engine.Passwords	DEBUG	SyncEngine initialized: passwords
1738999734332	Sync.Engine.Prefs	DEBUG	Engine constructed
1738999734340	FirefoxAccounts	DEBUG	FxAccountsWebChannel registered: account_updates with origin https://accounts.firefox.com/
1738999734341	Sync.Engine.Prefs	DEBUG	SyncEngine initialized: prefs
1738999734342	Sync.Engine.Bookmarks	DEBUG	Engine constructed
1738999734364	Sync.Engine.Bookmarks	DEBUG	SyncEngine initialized: bookmarks
1738999734365	Sync.Engine.Forms	DEBUG	Engine constructed
1738999734394	Sync.Engine.Forms	DEBUG	SyncEngine initialized: forms
1738999734395	Sync.Engine.History	DEBUG	Engine constructed
1738999734410	Sync.Engine.History	DEBUG	SyncEngine initialized: history
1738999734412	Sync.Engine.Tabs	DEBUG	Engine constructed
1738999734422	Sync.Engine.Tabs	DEBUG	SyncEngine initialized: tabs
1738999734425	Sync.Engine.Tabs	INFO	Got a bridged engine!
1738999734425	Sync.Engine.Addresses	DEBUG	Engine constructed
1738999734426	Sync.Engine.Addresses	DEBUG	SyncEngine initialized: addresses
1738999734426	Sync.Engine.CreditCards	DEBUG	Engine constructed
1738999734435	Sync.Engine.CreditCards	DEBUG	SyncEngine initialized: creditcards
1738999734436	Sync.Engine.Extension-Storage	DEBUG	Engine constructed
1738999734445	Sync.Engine.Extension-Storage	DEBUG	SyncEngine initialized: extension-storage
1738999734545	Sync.Engine.Extension-Storage	INFO	Got a bridged engine!
1738999734545	Sync.Service	INFO	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:135.0) Gecko/20100101 Firefox/135.0
1738999734546	Sync.AddonsReconciler	INFO	Registering as Add-on Manager listener.
1738999734546	Sync.AddonsReconciler	DEBUG	Adding change listener.
1738999734546	Sync.Engine.History.Tracker	INFO	Adding Places observer.
1738999734550	Sync.Service	DEBUG	User-Agent: Firefox/135.0 (Windows NT 10.0; Win64; x64) FxSync/1.137.0.20250130195129.desktop
1738999734551	Sync.Service	INFO	Starting sync at 2025-02-08 02:28:54 in browser session xO9CqEIV0Op-
1738999734551	Sync.Service	DEBUG	In sync: should login.
1738999734551	Sync.Service	INFO	User logged in successfully - verifying login.
1738999734551	Sync.SyncAuthManager	DEBUG	unlockAndVerifyAuthState has no FxA user
1738999734551	Sync.Status	DEBUG	Status.login: success.login => error.login.reason.no_username
1738999734551	Sync.Status	DEBUG	Status.service: success.status_ok => service.client_not_configured
1738999734551	Sync.Service	DEBUG	Fetching unlocked auth state returned error.login.reason.no_username
1738999734551	Sync.ErrorHandler	ERROR	Sync encountered a login error
1738999734551	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
1738999734551	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
1738999734551	Sync.Service	DEBUG	Exception calling WrappedLock: Error: Login failed: error.login.reason.no_username(resource://services-sync/service.sys.mjs:1041:15) JS Stack trace: onNotify@service.sys.mjs:1041:15
1738999734551	Sync.Service	DEBUG	Not syncing: login returned false

So, it says login returned false, and I followed that up by making sure my firefox account sync was set up properly. after turning sync on and off a few times, I tried again, and continued getting the same error.

I mean, if I'm being honest, I don't care all too much. I barely use it any longer, but... it would suck to lose it entirely on my pc, since I hate typing on my phone, and all my character jsons are in my cache for that page.

20
 
 

An unhandled promise rejection occurred: QuotaExceededError: Failed to set a named property 'chatLogs' on 'Storage': Setting the value of 'chatLogs' exceeded the quota.

I get this error when trying to generate new responses in the perchance ai chat. If I reload the website the responses disappear. Is there any way to fix this that isn't deleting old chats? :(

21
 
 

I can't open the ai character chat (advanced chat), i saw perchance on youtube and wanted to try it. I already open it in another browser and another smartphone,the results is same. (i never use ai character chat or perchance before). Please help me 🏳

22
 
 

Hello, I would like to know if there is a way to run the perchance chatbot locally, instead of using the server gpu's. And if so, am I able to edit the memory of it, so it remembers more/better. Thanks.

23
 
 

hi guys, I've been using perchance for a few years to mess around with different things and teach myself basic HTML/CSS/JS.

recently, I've been trying to make a basic generator that simply outputs 4 different variables in a row, each from a separate list.

my question is, how would I make it so that once any one ombination of these 4 variables is generated, THAT specific combination will never generate again? i know how to use consumable lists, but I don't want to get rid of a SINGULAR variable once it generates - just the specific combination that it came in.

for example: say I have 3 lists, a "color" list (blue, red, yellow), a "feeling" list (happy, sad, mad), and a "size" list (small, mid, big). my output is [color], [feeling], [size].

say, when I click the button, my output is "blue, sad, big". how do I make it so that each separate variable in that list CAN be generated again, but that specific combination of variables cannot be?

perchance link to my actual generator: http://perchance.org/body-typegen#edit

sorry if this is weirdly-worded or hard to read. i also posted this on Reddit before realizing that the community moved to Lemmy so I posted it here as well. thank you for reading :)

24
 
 

Hey there,

I understand if you don't want to say, but, what lora do you use for Cute 3D Icon?

Thanks

25
 
 

@VioneT I was wondering if it was possible to load modules like reference = {import:...} through the vanilla JavaScript, inside a script tag instead of writing them directly in the Perchance model text editor?

view more: next ›