kordishal / generator-issues Goto Github PK
View Code? Open in Web Editor NEWA repository to collect and discuss feature requests for the World Anvil Generators.
Home Page: https://www.worldanvil.com/studio/generators
A repository to collect and discuss feature requests for the World Anvil Generators.
Home Page: https://www.worldanvil.com/studio/generators
Is your feature request related to a problem? Please describe.
As we generate the JSON anyway, we then have to c&p everything into the right boxes.
Describe the solution you'd like
Create generators, routers & templates by file upload. Just select a JSON file for the full structure. Add option to select multiple files at once.
What is the problem?
When creating routers or generators the key of generators/templates is used. When copy & pasting the BBCode most of it has to be deleted before being able to use it.
Describe the solution you'd like
Next to the copy-clipboard add a button for the key (maybe with a key icon).
Describe alternatives you've considered
Just return the key display for both templates & routers and allow them to be copied when clicked.
A few things
In many case I would embed a generator specific to the article.
City Watch Article
Embedded City Watch Generator
(In a secret)
Pantheon Article
Embedded Church, Priest or God.
Trapped Encounter
Embed Trap Generator to its unique each time
Targeting the BBCode / Results of the generator with CSS easier in an article.
The article is the first approach for reaching most things in the world and I (my opinion) find it easier to reach on the presentation side, vs going to the edit side to reach the presentation side of the generator.
And you already mentioned the DSTS
This is my previous iteration in an article which was super handy
https://www.worldanvil.com/w/creation/a/city-encounter-article
Thank you for considering this
The generated result in the excerpt is not visible until you create an article with the generated result. It would be useful to have it displayed somewhere.
Sometimes I want to decide the next generator based on two (or more) things. For this reason, it would be helpful, to either give a router two (or more) input parameters or an option to call a router with the second parameter from a router.
Use case: I want to chose a creature and have predetermined, that it should be either flying, swimming or neither and in some cases magical or not
Suggestion for Input:
{
"ability": {
"flying": {
"magical": {
"magical": "creature-flying-magical",
"mundane": "creature-flying-mundane"
}
},
"swimming": {
"magical": {
"magical": "creature-swimming-magical",
"mundane": "creature-swimming-mundane"
}
},
"landbased": "creature-landbased"
}
}
Alternative suggestion with more expandability:
{
"generator": [{
"ability": "flying",
"magical": "magical",
"value": "creature-flying-magical"
}, {
"ability": "flying",
"magical": "mundane",
"value": "creature-flying-mundane"
}, {
"ability": "swimming",
"magical": "magical",
"value": "creature-swimming-magical"
}, {
"ability": "swimming",
"magical": "mundane",
"value": "creature-swiming-mundane"
}, {
"ability": "landbased",
"value": "creature-landbased"
}
]
}
A non existing parameter (see the landbased one) would then be interpreted as "accepts all"
I would like to control the possible increments / stepsize of a number generators
Say if I have a range from 95 to 120 and I give it the step size 5, the only possible values will be 95, 100, 105, 110, 115, 120
If I give it a step size of 7, I will get 95, 102, 109, 116
(but not 120, since I do not get from 95 to 120 in steps of 7)
Use case:
Value of stuff, big numbers, often the details at the lesser precision ae not important, so one would maybe use 10, 100, 1000 etc as steps
Is your feature request related to a problem? Please describe.
The router currently does not accept the output of the number generator and always does not match the value.
Describe the solution you'd like
The router should match the numbers as strings.
With clever naming one could streamline the work of routers. for example all my flying creatures should maybe give the same Router output.
Suggestion:
Allow Wildcards in router Keys, where *flying
matches flying, bird_flying, pterodactyl_flying, and robot_flying
Disclaimer:
This can be solved with routers or Gen(template) but I go for convenience here
Give the generator a list of ranges (with a possible overlap) and it first chooses one of the ranges and then a number out of it.
Sometimes I want to reuse - or differentiate - the output of a router.
I would like to give it a name so the result can be queried in [genvar] as well
If the output of a router is a simple template, I would like to add this name as prefix to all variables generated within this template, to prevent overrides.
Use Case:
Either fix it to not fail or add a toggle to a template that this template requires the user to be logged in.
It should be possible to add a content warning to the public pages of generators. Either one general content warning or specific categories.
Is your feature request related to a problem? Please describe.
At the moment license information has to be added to the output of a template and cannot be added to a generator. This would help with sharing content via copyright (though public generators probably should always be CC if they are public).
Describe the solution you'd like
Generators & Templates should have a dropdown to select a CC license or to make it copyrighted to the author. If no license is selected a copyright unknown notice should be added.
World Anvil Username: Shyredfox
What is the problem?
I would like to be able to increase the text size on the 'Roll the Dice' button. The only way I could figure out how to do this was via a per generator id that looked like this: #template_render_{some alphanumeric string} strong{ font-size: 2rem !important; } that I would have to put on each article. Not ideal.
Describe the solution you'd like
I'd love to see that styling moved into a .css, so we can tweak it easily. (Pretty please)
Describe alternatives you've considered
Please see the "What is the problem?" for what I was able to figure out. Trying to put a container around the generator with a bigger text class did not work either.
Thanks for considering! <3
Suggestion was originally from Tim - The Sea of Starlight. But I had wanted the same thing. Didn't see it written up for a while, so I did.
This would help tremendously with debugging routers. Otherwise, it is basically impossible to figure out what the mismatch is without just trying stuff.
World Anvil Username: SoulLink
Describe the bug
When embedding the quote BBCode the rolling does not do anything.
To Reproduce
Steps to reproduce the behavior:
[quote]test[/quote]
to templateIs your feature request related to a problem? Please describe.
At the moment I can only generate the JSON payload and then have to type in the rest. It would be a lot faster to have a simple Form that is just 1 field for everything as JSON.
Something to react to the fact the result of a genvar is undefined / empty / blank after trim().
UseCase:
Tag based generators, sometimes there are empty results on purpose, sometimes a variable is not filled in a specific path
World Anvil Username: SoulLink
Describe the bug
When more than one generator is embedded in an article the output of one roll is added to all generator output on that article. Printing the same result.
To Reproduce
Expected behavior
Only add result to the container it was rolled from.
Screenshots
If applicable, add screenshots to help explain your problem.
They are currently not displayed which makes it hard to see if they are there.
Is your feature request related to a problem? Please describe.
When no article is found, it just says none_found
which is super ugly. I would rather be able to handle this case.
Describe the solution you'd like
"relation-target-1": {
"article": ""
}
-non-found
appended. This variable could then be used in an exists check. "relation-target-1": {
"article": "none_found"
},
"relation-target-1-none-found": {
"article": ""
},
"relation-target-1": {
"none-found": "none_found"
}
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
I would like to be able to enter alternate text for the ‘roll the dice’ button. For cities and towns this makes sense. But if you want to generate responses - it would look better to have say ‘press for response’.
Describe the solution you'd like
I’d like to see an optional text input box that allows us to name the ‘roll the dice’ button.
Describe alternatives you've considered
I would do CSS, but I can’t do that for the generators page. And I can’t substitute text for a button with CSS. I could do an image, if I could modify CSS for a generator.
Additional context
the current generator is great for RPG items one might need on the fly. But for world interaction, not so good. I think allowing us to name the ‘roll the dice’ button would allow for fun world interactions.
Is your feature request related to a problem? Please describe.
It can get tedious to upload many generators.
Describe the solution you'd like
A public API that can be posted to, create/overwrite generators, templates & routers. Would remove the need for a fancy API and let us make one for you as well.
Rate limit it at 100 posts per day / 1 per second
Relevant for all types of Routers.
When setting up a router, (the glorified if / switch-case statement) it would be helpful to define a default option, if none of the inputs match.
Additionally, a case for an empty input would be helpful as well
Use case:
Expanding one generator with new values while the router does not need a new special case for this new value.
suggested format:
{
"transformer": {
"vegetable": "healthy",
"apple": "healthy",
"sweets": "unhealthy",
"pizza": "unhealthy",
"lasagne": "I don't care,give!"
},
"unmapped": "probably unhealthy",
"empty": "nothingness is not healthy at all"
}
World Anvil Username: SoulLink
Describe the bug
Embedded random generator should use the presentation title when embedded.
BONUS: Display no title when presentation title is unset or add toggle to disable title.
World Anvil Username:
Describe the bug
The developer data and BBCode area is no longer visible on the public page.
World Anvil Username: SoulLink
What is the problem?
Titles are already long and do not need this suffix. And not all Random Generators want to be called that.
Describe the solution you'd like
On the public page of the random generator it could make sense to add Random Generator as a subtitle below the actual title to provide context for people who arrived there from somehwere else.
Describe alternatives you've considered
Is your feature request related to a problem? Please describe.
For public pages, it is useful to make the title descriptive. This leads to the key being long and awkward to use.
Describe the solution you'd like
Add an optional additional field public title.
World Anvil Username:
Grayion
What is the problem?
Much like embedding the simple template I would like to embed the random article template into an article.
Describe the solution you'd like
This allows a world owner to press the "create an article" when happy with the results or when this npc or random result will be used again.
This allows the user to keep working from the presentation side.
Thank you
Is your feature request related to a problem? Please describe.
In many simple templates, the BBCode output will not really be needed. It would be good to be able to disable that output per template to improve their presentation.
World Anvil Username: SoulLink
What is the problem?
It is non-obvious who made a random generator.
Describe the solution you'd like
It would be nice to just have a link to the author profile on the public page of a Random Generator. Removes the necessity to add that link yourself each time into the sidebar.
Describe alternatives you've considered
It would be nice if people could comment on public pages. To ask questions, add suggestions, report typos, show off awesome examples etc.
Is your feature request related to a problem? Please describe.
Currently, random tables and generators are different parts of WorldAnvil. This means if I'm using a random table solution for something a generator would do, I'd need to export the table, convert it into a JSON, and import it back into WA for the generators.
So if I've got a table of names already in WA, why can't I just use that elsewhere in WA?
Describe the solution you'd like
Use random tables as if they're generators, or buttonpress to convert an existing table to a generator (turns table & weights into json solution).
Describe alternatives you've considered
I suppose the alternative is to link Verti's sheet and instructions on converting them!
When the template test roll is activated with the dice button in the list view the warm-up field is not executed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.