Try fully reloading the generator by clicking on the "reload" button at the bottom-right corner to temporarily fix the problem. I'll ping @perchance@lemmy.world so they can have a heads-up on this one.
Mention the server like this: @perchance @lemmy.world (remove the spaces in-between so it would be an actual ping).
I've built another mini generator inside of my experiment page, The View Counter Experiment, inspired off this generator that generates a color based on a random object using the power of AI for the day. I'm glad on how it turned out to be.
It's located in the AI Experiments tab on the right if you want to try that out.
It's text2image since the framework was originally used to create customizable text-to-image generators I think.
Thanks! I appreciate it! 😃
I'm going to do a few more updates and release a few more things before heading to the "revival" plan and eventually the big Generator Manager update.
A plugin that allows you to have fancy rolling numbers in your generator.
Finally released another whole plugin after 5 months of releasing the Power Rain Plugin last time. This plugin, as its name says, allows you to have those fancy little counter that moves/animates as you change the numbers up, down, or however you like, easily set-up in your generator. You can even customize the style of the counter and the individual digits in the counter!
Fun fact: I've just learned that you can bind custom functions into any element (and probably nodes too) before making this plugin...
Nice! I didn't know this was a problem with the engine, not just the template.
I found a bug within this template that it cannot show the asterisks on the password properly (syntax error). The simple fix is just to use iterators to wrap the ast
variable so it becomes an array and is compatible with selectMany
:
javascript password = [[...ast].selectMany(6,9)] ast = *
There isn't much changed from the outlooks, but if you look closely there is only one "Start Learning" button below the example code section, there is no video tutorial section, there is no instruction on how to embed a generator (which I guess is still not a thing at that time) and there is even no "try this example" button that redirects to this example that was also linked in the old page somewhere nearby.
For me though, Perchance is really just a foundation for me to actually create things I like and engage with other creations since I discovered it back in 2022 when it's just plain simple (there was no hub, very simple welcome page, fewer plugins, simpler comments plugin UI, etc.) and there wasn't any AI image stuff or t2i generators yet. And that's the reason why the Generator Manager (my generator hub page) is here. I started to like it so much that I published my first own creation even published here on this platform. Love to see how it evolves, though, and glad this was explained in this Lemmy community!
Yes, that's right. I found a very old version of the Perchance welcome page dated back on August 12, 2018. It was very basic, and Perchance was even still considered in beta at that time. When you look at the source, though, it might be a little modified, but the overall structure of the page is still intact.
That's a great answer! I've never thought of these solutions in a while, maybe even add a warning for that so other newbies could know easily.
You can use the shorthand exp ? if_true : if_false
notation chained together instead of the if ... else
notations. It's specially used for conditional inline value returns.
[s == "Wolf" ? wolf_gene : s == "Cat" ? cat_gene : s == "Fox" ? fox_gene : ""]
You can also do like this as well:
[({"Wolf": wolf_gene, "Cat": cat_gene, "Fox": fox_gene})[s]]
This is likely an error with the text-to-image-plugin
interfering with some t2i-framework stuff or similar since it's trying to create the gallery iframe inside the generator, as I was getting the exact same error from the text2image-generator. This error normally doesn't happen, because the plugin is always set to access that variable (which points to a span
element) under a timeout (which is right after the element was created). I don't know exactly what causes this, so I'm going to ping @perchance@lemmy.world so they can address this issue in the meantime.
That error description on the second screenshot is something that I haven't caught before, I've just got one already, but a bit different. I initially thought it was a custom error from the generator, but turned out it was a new type of error from the Perchance engine.
Pinging @perchance@lemmy.world for this one.
Quick bug report, when I was playing with the testing panel, I tried to get to the very bottom of the long word list output by pressing Shift+Down
on the output container, which pushes the entire container down that causes the input section to be cropped and really hard to get back in. The only ways to temporarily fix this issue is to press Shift+Tab
while selecting the green output text thing, or just select the input box manually and type something on it.
Here's a short video demonstration on how I was able to catch the bug:
Haven't posted anything on the community for a while. Just popped this question on mind several days ago whilst considering to upload wallpapers from my generator hub page into the upload page to avoid something like this.
I've been wondering what's the biggest file size you've ever uploaded to the Perchance Upload page in your experience (and is the maximum file size/daily allowance really depends on how long the user has standing on the site)?
No problem, I appreciate that!
No problem!
Also, you can make the generator hub page private if you don't want your favorite generators list to be shown in the generators page (so people can't see them).
An alternative option to this is to create a generator hub page consisting of the favorite generators for yourself (you can create one from this template, there's even a searchable version). You can even customize it however you want to!
For easier access, you might also want to categorize that generator hub page to the _favorites
folder (the underscore is here so that the folder always goes above the other folders) in your accounts page.
Nevertheless though, I think this one is a pretty cool idea, pinging @perchance@lemmy.world
@perchance@lemmy.world I have some suggestions for the feature:
- There should be a confirmation dialog that tells the user that the generator is going to be saved even if logged out to avoid accidental saves.
- There should also be a "delete generator" option for those saved-on-logout generators for the same reason too.
you’d make an entire new email address, and perchance account, and set that up in your browser so you can have both accounts open at once?
I might haven't good enough at describing it - basically I'll just stay logged out of Perchance entirely for that profile, and not creating an entirely new account, and I might also save the password and the generator link in my massive notes text file in case I lost it. In that case though, I think the private window could be a good alternative besides using a separate browser profile.
Are you planning on signing out every time you want to work on a version? And making a new version?
No, I would instead create a whole separate browser profile, so I don't have to log out every single time on my primary browser profile.
What I do while working on a new version is, I work on a private/unlisted copy of the generator.
Hmm... I could do that, however I've had a fear that the supposedly private generator would go out in the generators page immediately before I quickly set it to private, and that someone would be able to click the link through that page, so I thought creating a separate generator and saving it while not logging in would be a better option, since Perchance will un-list them right after, albeit still being publicly accessible. I know that this phenomenon is very unlikely to happen, but I'm just afraid that it would happen at all.
This is really cool! I've tried it now, and I think the saved generator is unlisted by default? If so, I could utilize this feature when working on my generator updates (especially my Generator Manager) so I don't have to dump the generator codes to a text file every time!
That "saved" interface reminds me of the times when the connection was not good that Perchance was only showing the "save" and "account" buttons, and the save button would still work just like normal.
Another time to say, "long time not posting on this community", but here we go!
There is one question I've wanting to ask about the recent update about the dark mode on the main/official Perchance pages: is there a way to disable them only for the pages (i.e. keep the pages in light mode without having to turn off the dark mode completely)? Most of the time my eyes just don't get comfortable enough reading the text in the dark mode.
I'd also suggest putting a button to toggle the dark mode on/off just like we have on the Hub on these pages.
So in https://perchance.org/ai-text-to-image-generator (and other t2i-based image generators) you could choose an art style and then a few dropdowns come below the prompt description textbox allowing you to choose any additional effects (or built-in modifiers, I should say) to be added to the prompt.
Well, I've found a bug on these. When I choose one that has a dropdown menu (for example, "Professional Photo"), the dropdowns did come out, but when I reload the page, the option I chose earlier retained, however the dropdowns did not come out as if the default option was selected.
I also tested if this bug happened on other t2i-based AI image generators too, such as https://perchance.org/furry-ai and https://perchance.org/ai-image-lab, and it also did the same, so this is most likely a bug within the t2i framework.
Haven't been posting in this community for a while, but I'm here just to share a tip (I think there hasn't been anybody asking for this here yet) that someone on Discord has suggested on. This only works on computers with developer tools though, and I think you could do this in Firefox too.
Here's how to do it:
- In https://perchance.org/upload, open DevTools Console (Ctrl+Shift+I > Console tab) and then select "embed" in the dropdown at the top of the console:
- And then type in
localStorage.previouslyUploadedFiles
. It'll then give you a JSON of the upload list that you can copy the given string provided to a text file and transfer it to another computer you'd want to access the uploads for.
-
Right click and select "Copy string contents" ("Copy Message" in Firefox). Then, paste it into a text file somewhere that you can transfer through a media like a USB to be transferred into the other computer.
-
In another computer, repeat the first two steps above, and then write this:
javascript localStorage.previouslyUploadedFiles = [upload list content from the text file]
- Replace the
[upload list content from the text file]
part with the contents from the text file you've just transferred, and then hit Enter. This will magically set the upload list to the one you have in your primary computer.
And that's it! The upload list isn't synced though, but at least could be useful for keeping stuff in. Feel free to add something missing here if you like! 😊
So I've just been working for the huge update for the Generator Manager since a couple days and I wanted to share one thing I've been working on in the middle of the making, that is the new error handling method on the generator hub page. Instead of just throwing the error onto the DevTools Console, it also throws the error into the Perchance error box inside the generator hub page, so it is much more convenient to see what's wrong with that feature in case I'm changing on something. And that is a custom Perchance error I just created.
This is accomplised using __perchanceError()
, and I understand this is likely a "private" function or something that isn't guaranteed to be "backwards compatible" for long (as I understand that), but I wonder if this function was available for wide use and documented somewhere in the advanced tutorial, it'd be very good for someone to learn about. You can also put HTML into the custom error text to add some neat formatting to it.
This will be limited to the handling of generator cards and the recently updated section for now but in future updates these will be expanded to pretty much every single feature on the generator hub page.
Time for another trailer about the big Generator Manager 2.0.20.1 update! I have just started planning and getting to work on building the changes for the big update very soon, from the latest Preview update, and I hope that this goes well enough so that I could finish it in basically a few days from now. But there are three more off-Preview changes I want to mention here: new backgrounds and accent colors (of course), new sidebar items, and finally, the introduction of dark mode for the very first time ever!
And there's just so many more coming out for the huge update...
Since the new backups feature was released, which adds an ability to create restore points of generators in a case I accidentally closed a tab while the generator isn't saved yet. But I sometimes work on updating generators through a logged-out session or, when creating a new generator (hitting the new button in the navigation bar and it opens up the minimal template), which is in an unowned generators session (only save and account buttons in the top-right).
And so, I'd need that feature to work on these kinds of environments, so I don't ever have to worry losing all the work there, especially when creating new generators.
This is a pretty interesting topic to talk about. Whenever I feel want to bring a generator to the top of the generators page, hoping for a few people to click on them through the page, I always feel like the only way is to save the generator and made some tiny changes if possible. But, what if I don't want to actually change any of the content in a generator, and still be able to save it?
Well, I know there's now a system where if you edit a generator and then undo/edit it back to its exact original/saved state (basically reverting it) Perchance will auto-detect that and the save button will go back to the saved state. This is a great feature honestly, but it's still possible to do the trick but the generator's content needs to be different from the original state, at least a character off. For example, adding an unobtrusive space around the lists code, or moving the list items up or down (Ctrl+Shift+Up
/Ctrl+Shift+Down
) and then saving right away.
But what do you think about this?
After I finished working on my drawing, I spent some extra time on the event drawing small custom/abstract flags inspired from generated flags from my flag generator, placed on random locations of tiny available spaces on the canvas. Mainly just to help fill the canvas, but overall, that was a cool and fun idea.
I drew a total of 40 flags, but not all of them managed to survive until the end of the event. So, I double-checked and counted all the survived flags, and in total, there are 34 survived flags on the canvas. If you managed to find all of them, I'll reveal a huge list of locations in the comments!
These are some of the mini flags, for a bit of a hint.
I'm happy I could finish a 158-pixel-wide drawing mostly (if not all) by myself ever since the time when the canvas was expanded (took around 2 days to finish). At the time the canvas had much more space to build in that I instantly got an idea to build a template incorporating the two URLs of my most popular Perchance projects (Power Generator Manager and Power Flag Generator (a.k.a. Random Custom Flag)) and some references.
There was a bit of an adjustment when someone was drawing overlapping on my template, but it was fine, I then planned to move some parts around.
Now, while I look around the canvas, I wanted to draw more custom/abstract flags scattered around the entire canvas (in tiny available spaces of course) during the remaining time of the event, just to help fill more pixels around the flag layouts/models will be grabbed from my flag generator. Here's a group of the blank versions for a reference. What do you think?
I just discovered another interesting feature utilizing the generatorName altering solution but it is even more powerful. You can basically pull comments and text to image galleries from multiple generators in a single generator page, simply by putting multiple [generatorName = "<generator name>", ""]
blocks inside the comments plugin/text to image gallery block calls, according to the left-to-right Perchance code reading mechanism (see the "Execution Order" section in the examples page).
For example, I can have two comments sections, one from my generator hub page and the other from the generators
page, and then put an ai-text-to-image-generator
gallery, all in one single generator.
Currently didn't have much time to explain it better (but feel free to do so!) Here's a very simple example I made demonstrating the feature.
I've discovered a number of blank/empty generators that have zero lines of code on both the list and HTML panels. Here's a compiled list of them that I could find:
- https://perchance.org/blank
- https://perchance.org/empty
- https://perchance.org/null
- https://perchance.org/preprocessor
- https://perchance.org/perchance
- https://perchance.org/generator
- https://perchance.org/chat
If you happen to find another one of these, please let me know!
Attached: 1 image Be prepared, because there will be EVEN more trailers coming out as I'll start recalling all the plans and working on it, which is the sign that the release date for the big 2.0.20.1 update is coming closer (this month)! And beware, the Generator Manager event is about to end in ...
After revisiting, recalling and reevaluating my plans about the big update, so many times, I think it's time for a new trailer about the huge update!
Remember these small, interesting test generators I made that I've been pulling out from the generator hub page over a year ago? Chances are, if you've stumbled upon my page since a very long time ago, you might remember some of them, like Typewriter Speed Test, Fake Error Generator, and The Computer Based Story. And this time, with the huge update, I'll be bringing back those generators with a little bit of twist - they will only be accessible with a special URL parameter you can put in the link, like ?enableRawStats=true
.
And this will not only be one of the notable changes I'll make in the update - there's a lot more to come!
This is a trick I've stumbled upon several days ago, and I haven't seen it documented anywhere in the examples or advanced tutorial page. If you don't feel like the traditional Markdown style when using the Markdown plugin and simply wanted to use the usual HTML style, you can simply do this:
```javascript markdown = {import:markdown-plugin}
output = [markdown(text).replace("markdown-body", "")] ```
The .replace("markdown-body", "")
part is what makes the formatted text loses the Markdown style and goes into the regular HTML style which then you can stylize yourself using CSS to whatever you want. It essentially removes the markdown-body
class in the body of the entire markdown text (or that's what I could explain).
This would happen only in two ways, either the user ID is unique enough that when converted without being caught as a "bad" word in the process it turns into the ABCD
visual tag, or after converted, the visual tag deemed to have bad words (or look exactly like a bad word), even after checking it more than one time, resulting in the tag falling back to the ABCD
format.
I just deep dived into the comments plugin's user ID into visual ID converting algorithm behind the scenes, that's why I'm making a post related on this topic. Also, have you ever seen actual occurrences of tags like this happening on comments of generators? Share if you have one!
I make generators on Perchance.org and do a bunch of other cool things.
Links:
- My Generators: perchance.org/power-generator-manager
- Mastodon: https://mastodon.social/@BluePower