VioneT

joined 1 year ago
MODERATOR OF
[–] [email protected] 1 points 3 days ago* (last edited 3 days ago) (1 children)

Similar problem has been reported on Reddit.

Accessing on Google Chrome Mobile. Also happening on create-instance-plugin (? based on a comment there)

Edit: This is the create-instance-plugin problem

[–] [email protected] 3 points 1 week ago (1 children)

Hello, some data privacy regarding the prompts or 'AI' tools are answered in this comment by the dev: https://lemmy.world/comment/5709061 @[email protected] i'll also ping them just in case.

[–] [email protected] 3 points 1 week ago (2 children)

There seems to be a problem with 'installing' the required packages (something like stdlib) for it on the web, even if the script itself is loaded. @perchance pinging dev so they can take a look at it.

[–] [email protected] 1 points 2 weeks ago

You could use ShareX screen record then upload to Streamable. Can you also provide the thread/chat export that is faulty so I can try to replicate the problem on my end?

[–] [email protected] 1 points 2 weeks ago (2 children)

I'd recommend waiting for a couple of seconds before reloading/closing the page to make sure the image is 'converted/saved' on the chat. I tried clicking the keep then immediately reloading the page (even closing the page as soon as I clicked 'keep'), but it managed to keep the image. Not sure what other factors might affect it saving.

If you could provide a video demo of the problem with the console open, it would be helpful to see if there are problems with the code.

[–] [email protected] 1 points 3 weeks ago
[–] [email protected] 2 points 3 weeks ago* (last edited 3 weeks ago) (2 children)

After the declaration of 'odds' any other text after it is invalid e.g.

Ss^0.5 or s
Tt^0.5 || t

If you want a randomized value for that in which Tt has odds of 0.5 to being chosen you could have:

{Ss^0.5|s}

{Tt^0.5|t}

If you want to add 'odds' with HTML formatting, you should place the odds after the items e.g.

<u>Ag^0.5</u>

to

<u>Ag</u> ^0.5

The change in odds should always be on the end of the item.

On your [m = markings6.selectUnique(1,7).joinItems("/")] you are setting the value of m to be the joined items in a string, not the list. To fix it you just need to store it on the variable, then use the joinItems on the variable after: [m = markings6.selectUnique(1,7), m.joinItems("/")]

Then to output the names: [m.selectAll.map(a => a.name).joinItems("/")] in which it would iterate on the markings on m and get their name, then joinItems them.

 

On the editors, you can search/highlight with RegEx (Regular Expressions) however, the matches cannot be iterated, and you cannot replace them. The old editor allowed this (as far as I remember), as well as using the captured groups as replacement ( /(\d+)\.(.+)?/gm can be replaced with $1 - $2 to change the matches 1.Test to 1 - Test).

[–] [email protected] 1 points 1 month ago

The link of your generator is the URL of your page: https://perchance.org/your-url-page

[–] [email protected] 2 points 1 month ago* (last edited 1 month ago)

I haven't really had a long conversation and multiple topics in one bot, so I don't have much experience in manipulating the bot's behavior.

I would suggest adding a reminder on the character's Reminder Message to steer the AI's response. Another would be using the /ai <reply instruction> method in which you instruct what the AI would reply. You could also probably try to edit the Memories and summaries that the AI generated that it uses in generating the reply and you could check the memory that pushes the AI to reply that way by clicking the brain icon that show up upon hover in the message on the bottom right.

There are a lot more people knowledgeable in telling the AI what to do in the #ai-character-chat channel in Perchance Discord.

[–] [email protected] 0 points 1 month ago (2 children)

@[email protected] - pinging dev for other info that I've probably missed.

 

There is a feature that was recently added which is the 'Edit Password' upon saving a generator that isn't yours (you are remixing another person's generator). It is for recovering/saving an edited generator without logging in (or those users that are having trouble with saving generators since the email verification is having problems).

Steps:

  1. Click edit in the generator you want to edit.
  2. Upon saving, and opt to create a generator (since you can't save a generator to an account since you are not logged in), it would then give out a 'edit password'. Remember/Save this generated string as well as the newly created URL (not the original one).
  3. Later on (as long as the local storage is not cleared) you can navigate again to that newly created page (while still not logged in into an account) then enter the edit password after clicking save to return back/apply your changes to the generator.
A video demo of how it works.
[–] [email protected] 1 points 1 month ago (1 children)

Possibly missing ending quotations?

Before the "negative", you didn't close the quotation then you used a dot instead of a comma in transitioning to the negative

...
"Style Name":{
  "prompt": "...",
  "negative": "..."
},
...
 

cross-posted from: https://lemmy.world/post/19286382

There has been a couple of Community Events in Casual Perchance since its implementation via Lemmy World posts.

What kind of events would you like to see or be part of?

Some of the old events were:

  • Generator Jam - like a Game Jam but with generators based on a theme
    • Plain - create a generator that fits the specified theme
    • Useful Generators - generators that can be imported/useful for other generators (i.e. importable lists or plugins etc.)
    • Mad Science - not generators but anything made with Perchance Syntax.
  • Contribute to a Generator - didn't get much traction, like a Generator Jam, but you allow others to give feedback/suggestions throughout the event to the generator you have submitted. (Might change this to just a Feedback/Suggestion Jam, submit your generators for feedback and suggestions and don't require to create a new generator)
  • Image Challenge - Mostly AI Images generated with Perchance text-to-image-plugin based on a theme.

Also, feel free to give any feedback or suggestions about the Community Events. Some more specific feedback/suggestion categories are:

  • Length of Events
  • Type/Content of Events
  • Engagement or Retainability of Participants

Note that you can host your own Community Events, see this post for an explanation.

 

Update 4: Fixed
Update 3: It seems that changing the 'src' of the iframe of the embedded seems to apply the changes. Clicking on the 'Go to Event' buttons on the home tab seems to revert the page to its previous versions. A video recording of the problem.
Update 2: Can confirm that the changes are reflected after a couple of minutes, for now.
Update: The embedded page has now reflected the changes. Will monitor if any other changes are immediately (or at least after a little bit of time) reflected.

I'm posting again to re-open a previous bug.

Previous Post: https://lemmy.world/post/15639946

Currently, the /hub where the /hub-events is embedded to, doesn't have the updated /hub-events page.

I've updated the code in the /hub-events last July 25. But currently, the change to it isn't reflected on the embedded /hub-events on the /hub at the Events tab.

Last time, it updated itself after a few minutes, but now two days have passed it hasn't updated yet.

 

There seems to be a overflow issue on the comments-plugin's settings and fullscreen buttons.

 

Not sure when this problem happened, but if you take a look at https://perchance.org/a-testing-gen which has an embedded Perchance page to https://perchance.org/b-testing-gen, the changes on the embedded generator /b-testing-gen, isn't applied on the iframe on /a-testing-gen.

I've tried disabling the cache on DevTools, reloaded both gens (and saved them again) and the changes on /b-testing-gen isn't applied on the /a-testing-gen.

2
submitted 6 months ago* (last edited 6 months ago) by [email protected] to c/[email protected]
 

Improved Make Table Plugin

This is a modification of the make-table-plugin with added features:

  • Row Heights (option to change heights of each row)
  • Row Alignments (option to change the alignment of the text in the row)
  • Header Rows (makes the first row of the table bold, and an option to stylize it)
  • Footer Rows (last row bold, and option to stylize it)
  • Column Header (bold first column of the table, and option to stylize it)
  • Caption (adds a Caption to the table, with option to place it at the top, and at the bottom, and to stylize it).

Here is an example of a table that can be made from it:

I've also created a Helper to help create tables with the plugin at Improved Make Table Plugin Helper.

 

Suppose we have the following list:

createInstance = {import:create-instance-plugin}

person
  name = [this.nameList]
  nameList
    Salman
    Manny
    Rhian
  age = {31-49}
  child = [this.child_obj]
  child_obj
    name = [this.nameList]
    nameList
      Anne
      Arram
      Amelia
    age = {3-17}

If we output:

[p = createInstance(person, "deep"), p.name] [p.age] [p.name] [p.age]

We can see that it has fixed the name and the age property on the instance. However, if we output:

[p = createInstance(person, "deep"), p.child.name] [p.child.age] [p.child.name] [p.child.age]

It would throw undefined. Now looking at similar list:

person
  name = {Salman|Manny|Rhian}
  age = {31-49}
  child = [this.child_obj]
  child_obj
    name = {Anne|Arram|Amelia}
    age = {3-17}

output
  [p = createInstance(person, "deep"), p.child.name] [p.child.age] [p.child.name] [p.child.age]

This would have the values fixed and working.

Looking at the code of the create-instance-plugin, it would only allow the 'deep' fixing of properties if there isn't any items/lists in it. What that means is the following:

child_obj
  name = [this.nameList]
  nameList
    Anne
    Arram
    Amelia
  age = {3-17}

This object/list, has a list ( nameList) within it as well as properties (name and age), while:

child_obj
  name = {Anne|Arram|Amelia}
  age = {3-17}

Only has properties. and based on Line 22 of the create-instance-plugin:

...
} else if(propValue.getPropertyKeys && propValue.getPropertyKeys.length > 0 && propValue.getLength === 0) {
...

If the list to be fixed has a list within it other than the properties i.e. propValue.getLength is not zero, then it wouldn't fix the properties within it.

The first child_obj has a nameList with it, and upon calling propValue.getLength it would have 1 while the second child_obj will return a propValue.getLength of 0 since it doesn't have any lists.

Thus, the solution for the problem is just removing the propValue.getLength === 0 check OR create another check without it.


TLDR; propValue.getLength === 0 at Line 22 of the create-instance-plugin can be removed to allow properties that rely on same level lists to be fixed. Here is the demo of the problem with a 'remixed' create instance plugin with the fix.

 

I've been made aware that the code I've written to access text-to-speech from ElevenLabs API is no longer working.

I've tested it and it seems that the CORS-Proxy that is being used in ai-character-chat currently doens't allow POST methods (which is being used to 'post' the text to be 'spoken' in ElevenLabs).

Not a major/priority issue but might be nice to be fixed. I also wonder how many are using text to speech (even just using the Speech Synthesis code) in the ai-character-chat....

 

Found out about this possible improvement to the URL Params Plugin in which you currently cannot pass through URL params in the null.perchance domain in an <iframe> i.e. it doesn't parse the passed through parameters.

I was able to pass through parameters in an iframe in the normal perchance domain, but without the null part, it has the navigation bar and seems to mess up the CSS. I'm currently applying it to 'navigate' from the 'Home' tab of the hub to the 'Events' tab, then select the appropriate events page using the URL params.

 

cross-posted from: https://lemmy.world/post/14744285

I've mentioned this on another post, but I'll create a new thread to hear other opinions.

I'm proposing to have the Community Events on Perchance Hub be hosted on this Lemmy Community.

To accomplish this, the Forms tab on the Perchance Hub would be changed to Events tab. It would host the Event posts from this community.

That is, anyone can post an Event thread here and it would be mirrored on the Perchance Hub.

Technical Notes: The posts here would be retrieved (via the Lemmy API) and the posts would be filtered to events only. The Event posts will then be parsed and neatly displayed on the Perchance Hub. This would mean that the posts would have a template to follow.

This is so that anyone is welcome to create Events and those Event makers would be the ones who will manage their own events (no longer needing to wait the Perchance Hub update).

This way, there could be different events running, managed by different people, with different topics, event types, and limitations/rules and to update the details on the Perchance Hub, the event creators can just edit the event posts and it would reflect on the Hub.

Not yet sure about what details would be on the Perchance Hub. But something like @BluePower's Upcoming Events Page might be a good format/structure to remix with (although the comments plugin on each event on Perchance Hub might not be used since the Event Post already have a comments/thread to talk with).

Technical Notes: The mirrored details can probably include a cover image, ability for the creators to change the colors on the Hub, specify if it is an 'image' event, 'generator/page' based event, etc., so the formatting on the Hub would be nice.

In Summary:

  • Community Events will be hosted in https://lemmy.world/c/casual_perchance
  • Events are now hosted/managed by Event Creators
    • The posts would have a (somewhat strict) template to nicely structure them on the mirror on the Perchance Hub.
    • Events can simultaneously ran by different people, with different topics, event types, limitations or rules.
    • Events can be updated by the Event Creator
  • Event Details and Content / Template Format is not yet decided
  • Format in the Perchance Hub is not yet designed.

Additional Notes:

  • With this, I might remove the 'announcement modal' on the hub upon first visit (or when there is update to it) to remove the clutter.
  • Might also implement a dark mode to the Hub. (will require quite an overhaul on the hub page)
  • Might dynamically add the Event's banner on the Home Page for each event (with the most recent and about to end event on the top).
  • I currently do not have a stable internet so these changes might take a while to implement xD
 

@[email protected] - pinging dev :)

Here is my implementation of 'remembering' the resized size of the textarea inputs. It is using the ResizeObserver (documentation) and will only observe textarea elements with resize style property enabled.

It is enabled with the @inputs:

[remember(root, "@inputs")]

EDIT: It would only save the resized size if you have inputs on the textarea.

EDIT 2: Fixed width responsiveness (for elements with width: 100%; max-width: ... ; resize: vertical where if the width gets lower than its maxed, it would save the width and fix the size without option to resize it back (since it is only resize: vertical). It now only saves the resizable direction i.e. height if resize is vertical and vice versa. For both or normal textarea it would save both width and height.

Here is the modified plugin: https://perchance.org/t2w8fixecn

Here is an example of it: https://perchance.org/5tfbmi0gtc

view more: next ›