view the rest of the comments
Perchance - Create a Random Text Generator
⚄︎ 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.
- The full rules are posted here: (https://legal.lemmy.world/)
- User Rules: (https://legal.lemmy.world/fair-use/)
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-pluginandai-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.


Hmm, I don't know, lots of weird stuff. I don't trust out-of-nowhere crazy walls of text person, so I've removed their presence from my mental register.
But I worked out how to do photography, which is what most people seem to be complaining about, so here's a short guide, hope it helps:
Then just play around with this template:
Chose some pseudo LaserDisc mambo as baseline but you can change that around, obviously. And then you can keep going. Like say:
That template with a guidance scale of 11 has been working wonders for me, and it's a simple enough pattern that you can easily modify it. I'm a weird case, because I have characters and style elements saved as JSON files, I just generate these things from an overcomplicated script (6000+ SLOC of spaghetti, should do a clean rewrite in Javascript and make it into a generator at this point...)
Anyway, I'm actually getting better results now than I was getting before the update, across the board. So, I'm sorry to folks having a bad time, but all the despair going around? Calling results useless and horrible and shit and all that? Man, that sounds like a skill issue. This entire situation only took me a wee bit of tinkering to solve, it was next to trivial. I mean, c'mon, people! You can do better! Or you can ask for help, maybe, now that would at least make this a more pleasant environment to be in.
OK OK I'll stop now. Cheers! :)
o wait u mean u already have the complicated script and its just not js? thats so cool!
im totally curious anything. mines what i shared. any, like, advice or learnings you would be willing to share of your experience with your script for doing this?
Yup, I'm wee bit of a Linux sysadmin kinda nerd and I do a lot of stuff in Perl, which is a very dense language that I wish I had never picked up, but hey, it is excellent at text processing.
The original idea went like this: save a template to a text file, read it, perform replacements, and then write that modified copy to the clipboard. The original version was just that, not too complicated. Off the top of my head, the meat of it is something like this (pseudocode):
Basically, you find
keywithin the template and expand it to the corresponding value in the table, which is just JSON, eg:But then I realized that for a character, I would need more than one item. So that means this thing needs to work recursively, that is to say "--character" would have to be an object, which has to be converted into a string that can be put into the template...
Similar story if, for instance, one element references another. Maybe you replace "--background", but the text for it contains a reference like say "--time-of-day" or something. So you have to do multiple passes, until there is nothing left to replace.
Anyway, I hacked it together in a very absent-minded kind of way without a clear plan so now it's completely unmaintainable lmaooo.
It is OK as a prototype, the good thing it has is that once you define an object and save it to the "database" (in my case, just a bunch of text files saved on my disk), you can reference it anywhere else. I've been using it to write character sheets a lot, and that kinda bridged the gap between T2I and text gen, I just write a new object referencing other objects in the database (facial features, hair, clothing, personality traits, et cetera) and boom, that's a fresh character I can insert into a scene.
Think of it like playing with dolls, maybe? You comb their hair, have them try out new clothes, and then give them a batmobile :DD and once you define what the batmobile looks like, you can place it anywhere else. Something like that.
I think that it's a very good fit for Perchance, and since Javascript is more or less just a well-adjusted Perl the translation work isn't too challenging. The only real concern is planning the project a little bit better so I don't turn it into spaghetti twice.
cool idea! text replacing really is powerful. i see how it could become spaghetti if u have tons of different ones. tho i used to generate my apps with like the main script and then like extraFunctionsHere and then a function that compiles those extra functions into a string and replaces that. never felt like it was becoming spaghetti; probably because so few stringreplacements. felt really powerful and convenient.
i like the idea of character being an object with many diff properties and a function to convert to string; possibly even custom toString(). i guess it all depends on your json formatting what your loadFromJson() function or constructor to initialize the character object would look like. i personally would create an interface and save function so character object can be added to and edited and saved back in to json also. sounds fun. and i see what you mean about background and time of day also being distinct objects and referenceable by character object. and there would be pose, etc. much complicated! makes me think my keyboards approach is too simple too lol.
anyway, love the chat about this. thanks so much :)
I promise it was not me. Anyway lol, I will no longer be assisting in NSFW whatsoever.
Working on something similar, that potentially combines the new "Formalized JSON Prompting of Klien based modeling" with Hyphen‐‐Commands/Flags&Fields. Possibly later finding ways to wrap formula into either or of those on thier own, or potentially future prompts that have all 3 systems made use of.
https://gemini.google.com/share/7aeafe135e39
Later I will start making some formalized "Prompting Topics" of posts here on perchance lemmy world. 🤘👌👍



ooooh looking forward to it :)
have you considered making a repository of your typings on perchance or a personal site?
I have notes, I usually have gemini refine them and make pdf/or txt docs with them, or I just use a gemini convo share link. If the convo itself is short and direct to the point.
cool, i'll try that! thanks :)
also nice idea with your characters!
in case it gives you ideas when you make your JS, this is how i did mine. ᯽
my keyboard has a mode which allows touching a btn to summon that characters sequence of modules on a div below. Conversion is for Adjectives that describe anything, Feren for adjectives of people, Mer haircolor, Summin for race or culture, Betwyn setting etc. if i touch one once, lets say Eren's haircolor, it makes it always in prompt. touch again and never. touch again and normal.
Number above each is amount of normal selections in a prompt. since its keyboard, button on right sends directly to focused textedit. this is the one of Dal for generating good nonspecific energy. pushing it.
comfortable comfortable growing deep profound wonderful symbiotic symbiotic cute futuristic utopian lounge and resort dreamlike room in an otherworldly dreamtemple vast otherworldly monument infinite endless vast imposing intimidating grand boundless endless infinite eternal futuristic absolutely beautiful creative divine beyond divine heavenly perfect heavenly divine beyond divine prolific passionate desirous enthusiastic
pretty promptOverloady, lol. i have a ton of characters and individual charactermaking is pretty behind, but, when ready, maybe even right after this lol, i could pick a character to give a Characters sequence of modules to, and do like Adjective, Adjective, Pose, Specific Character, Hair, Setting, etcetc, set it to only make that character, and fine tune all the other settings over time to eventually generate the variation, but of one character, i want. my example is wordsoupy, but nothing stopping it from being precise like your photography and then just tune the variation until perfect for that character.
thats my interface, would love to see yours when you make it!
also i made it so the sequence of modules was easy to try different sequences and thats been helpful. so hopefully thats a useful advice when u make your awesome one. cheers too!
I made a cute crybaby face.
doesn't look like much for me on Lemmy World see you around allo 💗. im on the nsfw gen btw shhh lol.
:)