VioneT

joined 1 year ago
MODERATOR OF
[–] VioneT 2 points 2 months ago* (last edited 2 months ago) (3 children)

The endpoint for getting the generator stats/metadata is https://perchance.org/api/getGeneratorStats?names={names}, it would return a list of data based on the generator names inputted and it would give a metadata property per generator that you can access.

Here is an example of using it: https://perchance.org/generator-list-with-stats-2-template#edit

[–] VioneT 3 points 2 months ago* (last edited 2 months ago) (1 children)

@[email protected] pinging dev!

Also side note, there was a post on Reddit, requesting to 'clear' the message input after sending a 'command'. Ex. you typed /ai [your instruction], then after sending the message, the command is still on the input box. I think they want to 'clear' the input box even after using a command, maybe an option to clear after sending the command or have the input stay on the input box.

Also, possibly any way to add custom shortcuts through the Custom Code? So that we could 'bake in' the shortcuts to the characters instead of on the threads. Just a thought.

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

For example on the /minimal generator we have the list:

listnames
  animal
  adjective
  verb
  location

then on the javascript:

let x = listnames; // you can also use listnames.selectOne, if you only want it to have a single item and you have to reload the page to randomize it again.
// This would get a 'random' value from the `listnames`.
alert((y = x.selectOne) + ':' + root[y]);
// would give a random item from any of the list 
[–] VioneT 2 points 2 months ago

Thanks! Added to the prompt guide.

[–] VioneT 2 points 2 months ago* (last edited 2 months ago) (3 children)

It should retrieve the list directly with:

// Perchance
PerchanceListA
  a
  b
  c
***
// HTML
<script>
let x = PerchanceListA
// if you want a more 'understandable code'
// let x = root.PerchanceListA // since all Perchance lists are under the 'root' variable.
// also with this, you would overwrite the value of list 'x' if you have one.
</script>
[x]
[–] VioneT 2 points 2 months ago (1 children)

A reference old post about it: https://lemmy.world/post/2560700

But maybe can be pushed up on the list since the little image emoji is also just a temp solution. @[email protected]

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

You can hover on the small 🖼️ on the description to show the $meta.image, but yeah. On the remix of generators that I made, you can hover directly on the image to show the $meta.image.

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

If I understand correctly, you have something like:

val
  -1
  0
  1

entries
  a
  b
  c
  d
  e
  f
  g
  h
  i
  j
  k
  l
  m

Then based on the val, you would have to select: (a) if val = -1, only from a to k, (b) from b to l, (c) from c to m.

Here is my solution: https://perchance.org/8horj02y80

First, we select the val, and then base the range from it. Since it is from 1-11, etc, we can have the base to be 2-12, then add (subtract) the modifier to have 1-11 for -1, 2-12 for 0, and 3-13 for +1, by having a min and max variables:

modOut
  Modifier: [mod = val.selectOne] | Min: [min = 2 + mod] | Max: [max = 12 + mod]

Then, to create a 'dynamic' range, we use JavaScript's Template Literals, to create a dynamic Perchance Shorthand List:

random = [`{${min}-${max}}`]

Essentially, the template literal would be evaluated first, so if we have min as 3 and max as 13, then it would be {3-13}, and then Perchance would evaluate that into a random number between that range.

We can now then use that value to select the item from our list, in which we can do in many ways:

  • Via .selectAll[index-1] since the arrays are accessed with zero-start indexing.
entryOut
  Selection: [x = random.evaluateItem] | Entry: [entries.selectAll[x-1].upperCase]
  • Via Dynamic Odds (What is on the demo generator) For the dynamic odds, we can just add them directly on the entry list:
entries
  a ^[x == 1]
  b ^[x == 2]
  c ^[x == 3]
  d ^[x == 4]
  e ^[x == 5]
  f ^[x == 6]
  g ^[x == 7]
  h ^[x == 8]
  i ^[x == 9]
  j ^[x == 10]
  k ^[x == 11]
  l ^[x == 12]
  m ^[x == 13]

where x is selected before selecting the entry:

entryOut
  Selection: [x = random.evaluateItem] | Entry: [entries.upperCase]
[–] VioneT 3 points 2 months ago (2 children)

The Anchor

A colossal crystalline structure in deep space. It resembles the shape of an anchor and is estimated to be about 334 solar radii in width and double in height. The origins of it are unknown and is first discovered by a deep space probe 133 light years from planet SSA-763. Material composition tests suggest that it is an asymmetric lattice of an unknown composition, but the temperature of it is constantly zero degrees Celsius.

Image Prompt

Generator Used: text2image-generator
Style: [Vionet20-Styles] Atmospheric Painting
Prompt: pitch black, starry space, background BREAK crystallized iceberg in teardrop cut, outer space, pitch black
Negative Prompt: \[clouds:0.1\]
Resolution: 512x768
Guidance Scale: 7
Seed: 763133334

[–] VioneT 2 points 2 months ago

Possibly also $meta.tags so we can specify some tags for the generators. @[email protected]

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

Looks alright on Firefox Mobile.

[–] VioneT 2 points 2 months ago

immerse-in-senses

Essentially an AI description generator based on the senses + vibes of the specified description/thing. Default if no description is specified is giving description of a natural location ex. Desert, Forest, etc.

Uses the mermaid-graph-plugin to format the generated items.

4
submitted 1 year ago* (last edited 1 year ago) by VioneT to c/perchance
 

Link to the Tool

Recently made this typewriter-plugin speed and delay calculator to achieve certain results such as having multiple type happen sequentially (one at a time) and multiple type ending the same time. Feel free to check it out and let me know what you have made with it!

 

Mermaid.js Graph Plugin Link

This is a graph maker using the Mermaid.js Diagramming and Charting Tool which is a diagramming tool that makes graphs based on Markdown like code. Feel free to mess around with it and consult the syntax at their documentation.

The only thing you need to do in Perchance is to escape the Mermaid syntax (since it also uses [ ] heavily) with backslashes \ so Perchance will not execute them as lists.

3
submitted 1 year ago* (last edited 1 year ago) by VioneT to c/perchance
 

Just a suggestion for the links in the navbar to be a revamped on mobile since currently the navbar on mobile looks something like this:

In which we cannot access the 'community', 'tutorial', 'hub' or 'generators'. Maybe a dropdown upon clicking the 'perchance' button or a side menu popup. Thanks!

@[email protected]

 

Welcome to the Perchance Community!

Perchance.org is a platform for sharing and creating random text generators.

This Lemmy community is for:

  • Asking for help with problems, issues, or requests about generators in Perchance
  • Sharing and showcasing your created generators, templates, plugins, or pages in Perchance
  • Starting friendly discussions about topics related to Perchance
If it is your first time in using Lemmy, please check out this message from Lemmy.World and the Support Page from Lemmy.World to get started on using Lemmy.

Posting from Mastodon

Feel free to checkout this post to know how to post in this Lemmy Community through Mastodon.

Other Community Links

Rules

Here are some rules in this community:

  • Please follow the lemmy.world instance rules.
  • Be kind and friendly.
    • Please be kind to others on this community (and also in general), and remember that for many people Perchance is their first experience with coding. We have members for whom English is not their first language, so please be take that into account too :)
  • Be thankful to those who try to help you.
    • If you ask a question and someone has made an effort to help you out, please remember to be thankful! Even if they don't manage to help you solve your problem - remember that they're spending time out of their day to try to help a stranger :)
  • Only post about stuff related to perchance.
    • Please only post about perchance related stuff like generators on it, bugs, and the site.
  • Search through the Community Before Posting
    • Please Search through the Community Posts here (and on Reddit) before posting to see if what you will post has similar post/already been posted.

Posting

Here are some optional tags to add in your title to categorize the posts. These are merely tags, you still need to title your post effectively.

  • [Bug] - if you think you find any bug in Perchance, use this tag.
  • [Question] or [Help] - this is to denote that your post is a question or requesting for help
  • [Suggestion] - for any suggestions in Perchance
  • [Feedback] or [Appreciation] - for any feedback or appreciation to any generator or to Perchance in general.
  • [{Generator Category}] - Used to share any generator with the specified category
    • Text, Image, Template, Hub, Plugin, Preprocessor, Community/RP, Game, Experiment, Useful Generator
  • [Fluff] or [Non-Generator] - Non-generator posts but about Perchance
  • [Tutorial] or [Guide] - for any Perchance related tutorials or guides to help others

AI Plugins Posts

Here is a FAQ for the AI tools in Perchance.

We would like to ask to refrain from posting here needing help specifically with prompting/achieving certain results with the AI plugins (text-to-image-plugin and ai-text-plugin) e.g. "What is the good prompt for X?", "How to achieve X with Y generator?"

There are guides, tutorials, and resources on the internet that can be applied when prompting in the AI tools in Perchance.

We will still be helping/answering questions about the plugins as long as it is related to building generators with them.

If you need help in prompting, please post on the 'sister' forum at Casual Perchance

Getting Started with Perchance

To get started with Perchance, check out the Perchance Tutorial or the Beginner Tutorial at the Perchance Hub Learn Tab to get to know the website.

Asking for help

Feel free to ask for help but please check out these tips on searching for an answer:

  • Check the following pages, to see if your question has already been answered or talked about or a plugin has been made for it. We recommend using the browser's search function (ctrl+f) and searching for similar keywords to your question/problem.
  • If you didn't find anything about your problem there, feel free to search through the posts/articles here:
  • If you can't still find anything related to your problem, feel free to post a thread here.
    • Please title your post effectively.
    • Please provide a link to your generator with your attempts of solving the problem.
    • Try to explain what you want it to do and what example output it should be doing.
2
submitted 1 year ago* (last edited 1 year ago) by VioneT to c/perchance
 

EDIT: It is now Fixed!

Please take a look at the following images: Between 855px and 820px the 'save' button disappears on mobile.

But around >855px and <820px the 'save' button appears

@[email protected]

3
submitted 1 year ago* (last edited 1 year ago) by VioneT to c/perchance
 

Feel free to use the Lemmy Community @ [email protected] like Reddit where you can ask for help, share your generators, and start friendly discussions at your leisure :)

view more: ‹ prev next ›