hanabi-live icon indicating copy to clipboard operation
hanabi-live copied to clipboard

Allow /copy to work with an empty hypothetical

Open naomiburks opened this issue 10 months ago • 3 comments

Is your feature request related to a problem? Please describe. Sometimes I want to share a deck order (or a slightly modified version of it) from a seed without including any actions. The easiest way I know of is to use /copy on a hypothetical, but the server PMs me "there are no actions in your hypothetical" if I use /copy on an empty hypothetical, even though that is often what I want to do.

Describe the solution you'd like I would like the site to stop PMing me "there are no actions in your hypothetical" and let me use /copy from the start of the game.

Describe alternatives you've considered I would be OK if the server PM'd for empty hypotheticals if /copy was not used at the start of the game -- my use case is specifically for /copy without any actions.

Another alternative is to /copy the JSON with an action and then manually remove the action from the JSON, but that does not help with generating a link, which is what I would most often like to do.

naomiburks avatar Apr 24 '24 03:04 naomiburks

I believe the motivation for this warning is because you might be trying to copy a whole replay but you didn't realize you needed to skip to the end first. I've hit this message several times and every time it's been because I forgot that the /copy feature was sensitive to the current turn

timotree3 avatar Apr 24 '24 04:04 timotree3

The issue is more the other way around. You can’t open a JSON without an action, so it would be rather unpractical to /copy one without.

You can circumvent this with a JSON, by including an “end of game” action, which does nothing in practice.

jack67889 avatar Apr 24 '24 05:04 jack67889

You can’t open a JSON without an action

we should probably fix that?

Zamiell avatar Apr 24 '24 13:04 Zamiell