VioneT

joined 1 year ago
MODERATOR OF
[โ€“] VioneT 2 points 1 month ago* (last edited 1 month 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.

[โ€“] VioneT 2 points 1 month ago
[โ€“] VioneT 3 points 1 month ago

Sararari Catteyon - Vionet20


You and your group of friends stumble upon Sararari's lair, where she presents you with a grim ultimatum: eat her demonic offerings or watch each other starve. She observes with a chilling calm as you grapple with the horror of your predicament.
Character Chat Link

[โ€“] VioneT 1 points 1 month ago

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

[โ€“] VioneT 3 points 1 month ago

Thanks ๐Ÿ™!

[โ€“] VioneT 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.

[โ€“] VioneT 3 points 1 month ago* (last edited 1 month ago) (4 children)

Nebula and Forest

Image Details

generator: text2image-generator
style: No Style
prompt: nebula in clear night sky framed by forest leaves in a clearing, detailed, soft lighting, rtx, uhd, anime style, featured in pixiv, WLOP, ross tran, artgerm
negativePrompt: \[3d render, vibrant, child, low contrast, cel shade BREAK hard shadow, unclear features, incorrect anatomy, deformed body, bad drawing, poor illustration, worse quality, cellphone:0.1\] 
resolution: 768x512
guidanceScale: 7
seed: 187151457

[โ€“] VioneT 1 points 1 month ago (2 children)

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

[โ€“] VioneT 1 points 2 months 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": "..."
},
...
[โ€“] VioneT 1 points 2 months ago

If you are trying to run the 'ai-character-chat' on glitch, you wouldn't be able to do so. Since AI plugins doesn't work in other domains, only in Perchance. I suggest looking into the OpenCharacters which is Perchance based off of.

[โ€“] VioneT 2 points 2 months ago (3 children)

I tested it, and it seemed to be working properly, possibly something on the AI's response inside the <image> tag that borked the code?

 

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
5
submitted 7 months ago* (last edited 1 month ago) by VioneT to c/casual_perchance
 

List of Community Events


Community Event Metadata Template

Perchance Data

// This Part is Required for the Perchance Hub
// This would be where the Event Organizer would change the data to update the Hub
// Remember to indent with two spaces!

// List About the Event to be displayed on the Hub
metadata
  title = Title Here
  description = Description Here
  type = Generator Jam
  // Can be "Generator Jam", "Image Challenge", "Character Jam", etc.
  image
    // Can be multiple pictures to randomize the banner image :)
    // Must end with the '.png', '.webp', or any valid image format.
    https://lemmy.world/pictrs/image/f3889aca-b153-49a9-a9b0-2079eba7dce3.png
  
  // strict data formats see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#non-standard_date_strings
  start = 07 August 2024 12:00:00 UTC+0000 
  end = 28 August 2024 12:00:00 UTC+0000
  color = linear-gradient(77deg, #386945, #30aa34) // background color of the banners any valid CSS colors
  rules
    // Just some rules or constraints for the event
    // can just be one rule or a list of rules
    rule 1
    rule 2
    etc.

// For Generator Jams with Perchance URL
generators
  // The generator's $metadata is also parsed
  generator-name // must be the 'dashed' generator name
    author = Author // author's name
    type = Text // type of generator, 
    // Valid types: Text, Image, Plugin, Template, Preprocessor, Games, Community/RP, Experiment

// For Image Events
images		
  https://image-url.png // must end with valid image format
    author = Author // author's name
    description = Text // any text

// For AI Character Chat (ACC) Character Jams
chars
  Character Name
    link = https://perchance.org/ai-character-chat?data=CharName~12345.gz // ai-character-chat share link
    avatar = https://image-url.png // or any valid image format
    author = Author
    description = Description

//
// You can request a format of other events just ask on the forum!
// In your Lemmy Post, you must have the `[Community Event]` in the title.
//


Example Generator Jam: Beat the Heat

Example Image Challenge: Epic Vehicle

Example Character Jam: Halloween Haunters


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
4
submitted 7 months ago* (last edited 7 months ago) by VioneT to c/perchance
 

Here is my attempt on modifying the tabs-plugin to allow 'Nested' Tabs.

Link to the Modified Plugin.

Demo Generator using the modified plugin.

This was made to address the problem of SynthAce (asked at the Perchance Hub - Learn Tab)

Technical Notes

  • I have reverted the 'minified' window.Tabs function to the un-minified to learn more about how the function works.

The code is originally from Zoltantothcom's Vanilla JavaScript Tabs Project

  • On the let titles code, I have removed the onclick on the <li> elements as removing them didn't have any impact on the plugin. I have also added a dataset attribute tablist on the <a> elements inside the <li> elements which will be the tabListKey (this is important to only reset the current tab's list and not all the tabs).
  • On the let contents code, I've also renamed the data-belongs-to-tab-list to just data-tablist.
  • On the main div with class tabs-plugin, I've also added the data-tablist to specify which tab has which key.
  • On the reverted Tabs function, I've added a tabList variable which is taken from the tab list key of the main tab element.
  • I've modified the reset function to pass through the tab list key to only reset the tab with the same keys, preventing resetting of the other tabs. It uses the querySelectorAll and selects only the items with the specified tab list key.
  • I've also modified the onClick function to pass through the tab list key to only update ( and reset ) the specified tab. Since previously it would update all tabs which causes problems in nested tabs.

4
submitted 8 months ago* (last edited 8 months ago) by VioneT to c/perchance
 

@[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

 

Due to the number of similar questions about the AI tools, here is a compiled list of frequently asked questions about the AI tools in Perchance.

Perchance AI FAQ

Please read it carefully and if you have any questions that isn't mentioned there, you can comment here.

 

On the ai-text-plugin, there is a way to get the inputs that were sent to the AI using the onStart(data) function:

onStart(data) - the code you put in this will run at the start of the generation process. You can access the inputs being used with data.inputs.instruction, data.inputs.startWith, etc.

I am wondering if we could also get the same for the text-to-image-plugin?

It can be either on the onStart(data) or on the onFinish(data) in which we can get the inputs/static values that were used for the response of the AI e.g. data.inputs.prompt, data.inputs.negativePrompt, etc.

With this, some features that can be implemented is a local history of past generations, in which the previous inputs were temporarily stored in the storage (or on the local storage so even if the page reloaded, the history is saved), then the users can revisit the previous generations (I have set up something similar like this on my text to image generators but they have some hacks to work).

This is not really a priority but might be good to have. Thanks!

1
submitted 10 months ago by VioneT to c/perchance
 

Here is a guide to allow Ads on AI-powered generators in Perchance.

https://perchance.org/allow-ads-guide

Please note that not all steps there might work for you, we all have different Internet Providers and personalized settings. Otherwise, please post any problems encountered or other solutions you have found on enabling Ads on this thread.

P.S. I'm not a Dev of the website

2
submitted 10 months ago* (last edited 10 months ago) by VioneT to c/perchance
 

Perchance is now up!

~~Perchance is currently down~~

Jan 22

Happened about around 12PM UTC. As of 1:55PM UTC it is up.

Jan 31

Around 4:35โ€ฏAM UTC, went down again. Up on 8:26โ€ฏAM UTC.

Around 2:11 PM UTC, down again. Around 2:30 PM UTC, up again.

2
submitted 10 months ago* (last edited 10 months ago) by VioneT to c/perchance
 

If you are importing a generator that imports a AI-Powered Plugin (i.e. ai-text-plugin or text-to-image-plugin or both).

Please note that it would add Advertisements in your generator, even if you aren't using the AI-Powered Plugin from the imported generator. This is due to the AI-Powered Plugins being sustained by advertisements.

 

I'm having an issue with the Perchance AI Character Chat. When I try to export my data - threads and/or all data - it gets stuck on the "Exporting thread..." screen and then, finally, crashes the whole browser. Just two days ago I was still able to export my data just fine.

Anybody have this same issue or, more importantly, know how to fix it?

I'm running Ubuntu LTS 22.04, browser is Chromium 120.0.6099.71 (64-bit)

Posted by Kaarnikkainen on this Reddit Post.

I tested on a VirtualBox with same Ubuntu and Chromium Version, it seem to have exported successfully on my end (though I was able to just export a simple character and a couple of chat messages on the thread).

4
submitted 11 months ago* (last edited 11 months ago) by VioneT to c/perchance
 

This is reported by Lamatiel on Discord.

Using the external lore file (lore book) doesn't properly get saved/used. The manual lore input works just fine.

Here are some fixes that I made in this copy of the page

  • Line 7777 @ HTML Panel - m.text to m.text.split('\n').join('\n\n') to have proper empty lines per lore entry on the textarea display.
  • Line 7783 @ HTML Panel - e.text to e.text.split('\n').join('\n\n'), same reason as above, so even without reloading the URLs the formatting would be good.
  • Added let newLoreBookEntries = result.loreBookUrlEntriesText.replace(/\r/g, "").split(/\n{2,}/).map(e => e.trim()).filter(e => e); after Line 7790 @ HTML Panel to parse the lore from the lorebook URL files.
  • Added newLoreEntries = newLoreEntries.concat(newLoreBookEntries) to combine the lore from manual entry and lorebook URL entries, added after the previous line.
  • Line 7816 @ HTML Panel - originalLoreEntriesText !== result.loreEntriesText to originalLoreEntriesText !== newLoreEntries.join("\n\n"), this would compare the new lore entries to the original one better since the old comparison only compares the manual lore entries.

Some notes:

  • Upon saving the character after writing the lorebook URLs on the Character Edit, the lore doesn't apply immediately. We need to go to /lore, show the character specific lore, then reload the URLs, then save, for the lorebook URLs to apply.
  • Removing the lorebook URLs doesn't remove the lore from that URL from the current lore list, we need to manually remove it.
view more: โ€น prev next โ€บ