wthit56

joined 4 months ago
[–] wthit56 2 points 1 month ago
[–] wthit56 3 points 2 months ago (3 children)

You should use the dev tools in your browser to figure this out. In the sources tab of dev tools, turn on "break on caught error" and see if you can get to the line that looks like that one it printed out in that message. That'll help you figure out what code is breaking.

Presumably it's in the dynamic importer plugin, so you could just look in that plugin's code on the site, and see where that is, and find out what's gone wrong that way.

[–] wthit56 2 points 2 months ago* (last edited 2 months ago)

I don't know what "the AI button in the editor" means, so you might want to clarify by editing your post. Up to you.

[–] wthit56 1 points 2 months ago

Apparently mentioning a username in the post does not send them a notification. You have to do it in a comment like this @[email protected]. (I don't know why it's like this, but that's what I've been told.)

[–] wthit56 1 points 2 months ago

Just so you know... even if there is no button for this, you can simply go to perchance.org/resources. Or bookmark it yourself and always have it available. And move that bookmark into your bookmarks bar of the browser to always see that as a button. Or start typing it and if it's bookmarked or in your history it'll come up and let you select it automatically.

Maybe they'll add it back or maybe they won't, but in the meantime you can still use it--just so you know.

[–] wthit56 2 points 2 months ago

(For anyone else who sees this, this has been resolved through the Reddit post.)

[–] wthit56 3 points 2 months ago (1 children)

The two sites have nothing to do with each other. This is a forum within the Lemmy platform--like a subreddit within the reddit platform. Perchance is a whole separate site. You can sign up to Perchance using the same email and password, but they are separate accounts on separate sites.

[–] wthit56 1 points 2 months ago
[–] wthit56 2 points 2 months ago (2 children)

I'll try not to think about what text this thing is spitting out--yikes!

Anyhow... I see no errors at all.

[–] wthit56 1 points 2 months ago

Cool cool, will do 👍

 

This is a little tutorial, not a question.

I just renamed my finished-first-text-to-image-plugin to advanced-text-to-image-plugin, because I wanted to add more features than "finished first" ordering. But I didn't want to completely break anything that used it or links to the old plugin.

I renamed the plugin.

Then I made a new generator, which has this in the Lists panel:

$output = {import:advanced-text-to-image-plugin}

...which covers importing from the old plugin name (I tested and it seems to work as expected).

For the plugin page itself, I did try using JS to forward the user on, but I couldn't change the top-level url. Clicking a link works properly but I can't trigger that with no associated user gesture for browser-security reasons. So I just can't automatically redirect.

So I added a simple message and link to the new place in the HTML panel.

Then I saved and renamed this new generator to the old name. 👍

I don't know if this is bad etiquette, but I'm not spamming and using up names or anything like that. I know there's probably no one using my little plugin anyway, but thought it would be good practise to cover my bases anyway. Hope that's cool...

 

Should be spelled ___alreadyAttachedEventsWithRoot ;p

6
Layering with timings (self.casual_perchance)
submitted 3 months ago* (last edited 3 months ago) by wthit56 to c/casual_perchance
 
\[top-down view, geometric shapes vibrant coloured, (grass green background:0.2)  :  : 0.2\]
\[ \[ : (city:1.3) : 0.2\] : : 0.6\]
\[ : anime, cyberpunk city : 0.6 \]
top-down

To explain, the first line uses the prompt top-down view, geometric shapes vibrant coloured, (grass green background:0.2) for the first 20% of steps. The general shapes/colours are established.

The second line, (city:1.3) is the prompt from 20% to 60% of steps. Transformed into a city based on those shapes.

The third line, anime, cyberpunk city is the prompt from 60% to the end. A layer of style added on top.

Outside any of that, the last line top-down is always tagged onto the end to try to keep the view stable.

1
submitted 3 months ago* (last edited 3 months ago) by wthit56 to c/perchance
 

Test: https://perchance.org/weird-tabs-3209482304#edit

Edit: Note, after saving and loading, tabs work correctly? Maybe? If you start a new generator, you can see the problem happening. Remember to copy an actual tab character from someplace.

In the above editor, the HTML panel has tab characters in it. They behave as expected, apart from when they are at the start of a line--then they just take up no width at all. What's expected is, they move the next character to the next available tab slot, like in other code editors.

In the List editor, the tabs are always converted into two-space groups. Which is interesting, seeing as how they're all converted to tabs again by the engine before processing.

 
Set saveTitle when saving

Currently it's set before it's even generated, when most of the time you don't know what it's even going to look like. Thought it would be useful to be able to optionally put a name into a textbox by the gallery save button so you can give it a title after you know what the image is.

Option to disable gallery-saving

If you're not using a gallery anyway, may as well not allow users to save to the gallery no one will ever see. If the user is expecting it to save away to a gallery and to be able to get that image back by browsing the gallery (even their own privately-named gallery)... it'll be a bummer when they realise they can't.

Also, saves space on the server, not having all those images stored that no one will ever see.

If the setting is not set, in theory, may be able to detect if the generator has a gallery showing on the page, and only then allow the user to save to the gallery? That could retroactively work for existing image generators that do and do not have galleries.

3
submitted 3 months ago by wthit56 to c/casual_perchance
 

I don't know if you're interested in plugins here, but... here's a plugin I made: https://perchance.org/finished-first-text-to-image-plugin

Uses the regular image generator plugin, but adds 2 features: re-ordering finished generations so they appear to complete "in order". This is something I've thought about for a while when using existing image generators on Perchance. This way, there's no need to scroll back and forth looking for completed images; they all just jump the queue to show themselves.

And a count argument to easily generate many images at once. This is a very common feature image generators use on Perchance, but more code (and therefore understanding of code) is needed to make that work. This just simplifies it a touch, is all.

 

Generator: https://perchance.org/finished-first-text-to-image-plugin

Uses the regular image generator plugin, but adds 2 features: re-ordering finished generations so they appear to complete "in order". This is something I've thought about for a while when using existing image generators on Perchance. This way, there's no need to scroll back and forth looking for completed images; they all just jump the queue to show themselves.

And a count argument to easily generate many images at once. This is a very common feature image generators use on Perchance, but more code (and therefore understanding of code) is needed to make that work. This just simplifies it a touch, is all.

 

As seen here: screen capture.

 

Seems when they load, all buttons are shown regardless of if the user is hovering over them or not. Then when hovering, they're shown of course. Then moving the mouse away hides the buttons and it all works as normal. Seems unintended that it thinks the user is hovering onload when they're not. Not sure why that's happening.

(Also I don't think it was happening until very recently. So possibly a breaking change.)

 

As seen here.

After document.body.innerHTML = "test"; can't access #perchance-error-indicator because it no longer exists. This is a silent error, not shown in the preview window. Presumably because #perchance-error-indicator no longer exists.

After document.getElementById("output-container").innerHTML = "test2"; errors trying to replace this script tag with another one or something?

I can see why these problems come up. But some checks and workarounds should be possible for these eventualities at least.

 

Instead of the url. There's a lot of dfg7dfg97dfg "names" of links on that page, which is pretty useless.

On the $meta front, it seems when a copy of a generator is made it has the same $meta.title, .description, etc. Which I guess is the most straightforward way. Would be cool if the description was edited with (copy of perchance.org/...) at the start, something like that? As a small way to credit who originally made it, but more usefully so people know who are browsing the generators page that it could well just be someone messing about with changing/adding things to try it out, and not a real "full" generator that's been made with care and ready for release. (In lieu of "private" not being the default.)

 

As discussed here: Reddit

"1 guy" doesn't do it. "one girl" doesn't do it.

view more: ‹ prev next ›