GithubHelp home page GithubHelp logo

kordishal / generator-issues Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 3 KB

A repository to collect and discuss feature requests for the World Anvil Generators.

Home Page: https://www.worldanvil.com/studio/generators

world-anvil wa generators

generator-issues's People

Contributors

kordishal avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

generator-issues's Issues

Add upload file option for nodes

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.

Add a copy key button to templates & generators

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.

Random Generator Article Embeds

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

No newline before Created By

What is the problem?
The Created By text prints on the same line as the last line of the note. It needs some kind of separator.

image

Nested Router / Combined Input

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"

Set different Step Sizes for Number Generator Results

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

Number Generator as input for Router

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.

Wildcards in Routers

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

Multiple Ranges in Number Generator

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.

Variable Names for Router Output and Subsequent Hierarchical Naming

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:

  • Output of transformer, when deriving a property from a roll (for example deriving the element from a magical thing)
  • creating multiple persons of specific types and wanting to refer to individual parts of the person without having to again call a generator.
    • For example resuing the Last Name in a following paragraph describing a conflict between two characters.

Add License options to public pages

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.

Remove the inline CSS styling with the !important for the text on the 'Roll the Dice' button in articles

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.

Images in articles have visibility toggle enabled by default

World Anvil Username:

Describe the bug
When an image rendered as the output of the Random Generator in an article that image is not visible. The reason is that the image is hidden with the visibility toggle. For some reason it is enabled by default.

image

Random Generator with BBCode quote in it breaks embed

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:

  1. Add [quote]test[/quote] to template
  2. Embed template in article
  3. Roll template
  4. Nothin happens

JSON Input Only

Is 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.

Empty Check

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

Rolling a generator on page prints results to all of them

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

  1. Embed two different generators in article
  2. Roll one generator
  3. See result in both generators.

Expected behavior
Only add result to the container it was rolled from.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Add variable to check when the article generator does not find an article

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

  • Output an empty string. The empty check could then be used to do an alternative.
    "relation-target-1": {
        "article": ""
    }
  • Define a variable which is the same as the article output, but with -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": ""
    },
  • The third alternative would be to have a different key when none is found so we can route.
    "relation-target-1": {
        "none-found": "none_found"
    }

Additional context
Add any other context or screenshots about the feature request here.
image

Please allow alternate input for text of the ‘roll dice’ button

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.

Public POST API Endpoint

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

Default value for Router

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"
}

Random Generator should not be added to title of random generators

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

Extra title field to be used for the public page

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.

Embed Random Article Template in Articles

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

Article Generator adds space

World Anvil Username: SoulLink

Describe the bug
The output of the article generator adds a space behind the article link output.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Disable BBCode version on simple templates

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.

Public page should include link to author profile

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

Ability to comment on public pages

It would be nice if people could comment on public pages. To ask questions, add suggestions, report typos, show off awesome examples etc.

Use Random Tables as generators

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.