-3
submitted 3 weeks ago by Alllo@lemmy.world to c/perchance@lemmy.world

just joking. thought i'd join in the ai img mob riots since it looked fun. really i admire @perchance's dedication to progress and willingness to try moving forward instead of being frozen into stagnation by the screams of users.

i really am basically afk at this point, constantly in a state of either too busy, or too exhausted. but was generating some vertical pics today and noticed an unusual thing maybe yall might want to decipher.

thats what my gen gens up normally in her classic 'word soup' promptstyle.

so i tried removing the Aesthetic 11 which i have both before and after all prompts. i had heard about it via some 'bonkers insane but probably actually too genius' person (like minori) posted that it was like a hidden ghost in teh machine. either that or it was a normal person but lead thru a rabbithole of bonkers insane craziness to the point that couldn't tell whether it was real or what it really was. either way, i jumped on it and put it in BP as some secret juice. Now with img update totally changing large swaths of img gen, i tried removing it.

Not as expected. Look at those worse hands and feet after removing it. i have more pics that magically arent uploading, but interesting eh? maybe its starting the prompt with the word aesthetic. maybe its the full aesthetic 11 crazy magician stuff. either way, youd especially see if these other imgs would upload that all the imgs without it have noticeably worse hands, feet, and sketchier fail lines.

you are viewing a single comment's thread
view the rest of the comments
[-] Almaumbria@lemmy.world 3 points 3 weeks ago

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):

copy="";
for line of readlines filename
  for key in table
    line=line.replace(/\b${key}\b/,table[key]);
  copy += line + "\n"

Basically, you find key within the template and expand it to the corresponding value in the table, which is just JSON, eg:

const table={
  "--lighting":"text describing lighting"
  "--background":"text describing background"
  // and so on
}

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.

[-] Alllo@lemmy.world 2 points 3 weeks ago

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.

[-] MinoriMirariRProductions@lemmy.world 2 points 2 weeks ago* (last edited 2 weeks ago)

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. 🤘👌👍

[-] Alllo@lemmy.world 1 points 1 week ago

ooooh looking forward to it :)

have you considered making a repository of your typings on perchance or a personal site?

[-] MinoriMirariRProductions@lemmy.world 2 points 1 week ago* (last edited 1 week ago)

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.

this post was submitted on 25 Jan 2026
-3 points (33.3% liked)

Perchance - Create a Random Text Generator

1767 readers
13 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