[-] wthit56@lemmy.world 1 points 11 hours ago

Oh wow--no idea why that would ever happen. A web page can't directly make that happen, and browsers are built to not just "disappear" or crash from something a web page does. So it must be a crazy perfect storm kind of situation.

Does it say anything about a crash, offer to report the crash, something like that? Does it offer to restore the pages you had open, next time you open the browser? Does it close all tabs and windows of that browser or just the one with perchance in it?

Is it a specific generator page that does this or just when using anything on perchance?

To be clear, I'm fairly certain I cannot do anything to help or fix any of this, nor anyone else apart from whoever made the browser. But still... if there's anything that you can be helped with on this, those questions are how it would start.

[-] wthit56@lemmy.world 1 points 17 hours ago

Update: I've now made a plugin to do these things for people who don't know the ins-and-outs of what needs to be done to manually manipulate properties/values on a node. https://perchance.org/list-management-plugin

If you spot anything I've missed or messed up I'd be happy to fix it so it's a more "complete" or "correct" implementation. @perchance@lemmy.world

3

Helper functions to add and remove children from a Perchance list.

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

My newer generators are not having their screenshots generated. https://perchance.org/perchance-object-reference

Though this one works somehow: https://perchance.org/list-management-plugin

They're using the same formatting and scripts for the page as all my others.

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

Currently it's quite fiddly, making sure all the keys/names arrays are up to date so it still functions as expected.

If it used a set and delete handler it could handle all that internally. Or if there was some special methods we could use like .addValue() and it would figure out what kind of value it is--property, node, function--and handle it correctly.

Of course, I'm working on a plugin now to handle this for people. ๐Ÿ˜œ

1

There's a lot of stuff that becomes real fiddly to do because they are not iterable... that would be real easy to do if they were iterable. I believe there's a proxy "trap" for iterating over properties somewhere in there.

[-] wthit56@lemmy.world 1 points 1 day ago

First step is to look on line 104. And figure out what it's referring to there.

Without seeing the code there's no way of me helping with this. You could share a link to the generator you are working on, if you like.

[-] wthit56@lemmy.world 1 points 1 day ago

No. There's a set back-end that we have access to in our generator pages, that's all. It uses a somewhat older Stable Diffusion model. (Or perhaps three models: one for photos, anime, and the "furry" character style.)

The dev has mentioned that they're planning on an image generator update to the back-end soon. Perhaps including image-to-image or other features. But nothing about LoRA or using our own models or however you'd put it, so I doubt those will come to Perchance for now.

If you want those things, I'd recommend using other sites dedicated to AI image generation. This is just an added feature to Perchance, not the focus of the platform, so the dev is not focused on expanding those features.

[-] wthit56@lemmy.world 2 points 2 days ago* (last edited 2 days ago)

I'm not sure that's really possible. I don't think you can import from another page in character stuff. (Unless @VioneT@lemmy.world knows different?)

But I think you can literally tell it any prompt to use to generate an image. So maybe include the text from one of those styles in the prompt you give it or something?

[-] wthit56@lemmy.world 1 points 2 days ago

Oooooh, unfortunate. Yeah I'll keep an ear out and just let people know to try again in a few days.

[-] wthit56@lemmy.world 2 points 2 days ago

Yeah, looks like what you did by commenting that out of the prompt is about right. ๐Ÿ‘

[-] wthit56@lemmy.world 1 points 2 days ago

Awesome ๐Ÿ‘

3

This plugin overrides the device's color scheme, but uses the existing styles. No changing of styles is needed whatsoever; it just works.

2

Most likely SUPER not a priority. But you know me ๐Ÿ˜…

https://perchance.org/prompt-style-tester#edit

The "go" button updates the entire page. As the options are generated this means they are re-generated, which means the chosen option resets, and you can only ever test the top option: Painted Anime.

Simple fix though: put a div with an id around the generations, then update that div only. That's all that needs updating anyway.

[-] wthit56@lemmy.world 1 points 3 days ago

Ah, you're actually putting it in a different place that I thought you were. Also, the values of the dropdowns don't work the way I thought they did ๐Ÿ˜‚

It seems perhaps [input.Rtype] is what you're meant to use with that system to get the current prompt from that. (It's a bit complicated honestly--I use my own plugin so I'm not experienced with t2i... ๐Ÿ˜…)

What exactly were you trying to do? If it's just to include the value in the other part of the prompt, the above should work (I guess). But you did that before right--what happens if you do that?

1

As we have ignorePerchanceErrors() and clearPerchanceErrors(), seems fair to have this function too, for public use.

[-] wthit56@lemmy.world 1 points 3 days ago

Are you logging in when you open it in incognito mode?

What do you mean "kicks me out"?

[-] wthit56@lemmy.world 1 points 3 days ago

Yeah that's fair enough ;p

3

Would be useful to be able to see the images just in the page so we don't accidentally delete the wrong one, stuff like that. I know we can click on the link, but this would just be a nice feature to make it easier.

5

Another day, another learn...ing...s.

This covers everything from how to start editing/making a generator, to writing perchance code. (The more web-y stuff are covered in my other tutorial.)

2

Seems to be related to this: ___htmlToElements(). It takes a string which is the text, ignoring the fact that HTML entities are not normal characters and should not be interpreted as normal HTML. For example, &lt; will be interpreted as < which can open a tag.

Example: https://perchance.org/qzi72h52te#edit

So if an element contains any perchance code, and HTML entities, the HTML entities are essentially lost and become real characters. Which isn't what you want if you're trying to present plain-text code to the user.

Definitely does not work as expected at least.

2

No error message makes it to the display.

In the console there is:

Critical error in __createPerchanceTree: TypeError: Cannot read properties of undefined (reading 'startsWith')

And in the error messages there's just this:

Your generator's script seems to have errors in it. If you haven't recieved any other errors above this one which could indicate what went wrong, then this could be a bug in the Perchance engine. *etc...*

("recieved" should be "received" by the way ๐Ÿ˜œ)

2

As seen here: https://perchance.org/p5bdhjbfv6#edit

So it still runs somehow? And accesses the grandparent somehow? Likely a bug with how escapes are stripped out--and perhaps recursively processed or something...

view more: next โ€บ

wthit56

joined 1 month ago