Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seeding #414

Open
basxto opened this issue Apr 18, 2024 · 3 comments
Open

Seeding #414

basxto opened this issue Apr 18, 2024 · 3 comments

Comments

@basxto
Copy link

basxto commented Apr 18, 2024

For doing a high-score match on two different devices with the same waves, it would be practical to a) have the random waves, item drops and random gamemodes be derived from a seed in a reproducible manner b) see the current seed in "Game Stats" c) start single-player with a custom seed.

That might even be interesting for testing, since the same inputs would always lead to the same results.

@Kvel2D
Copy link
Collaborator

Kvel2D commented Apr 23, 2024

Having same randomness for waves is doable.

Can't have same randomness for tower distribution. If player upgrades elements in different order or earlier/later before wave finish - probabilities diverge.

Can't have same randomness for item drops, also because player inputs can diverge probabilities. For example, let's say two players play a game with same seed and get an item which increases item quality. Player 1 decides to put this item on a tower. Player 2 decides to horadric cube the item. This will cause probabilities for item drops to diverge.

@basxto
Copy link
Author

basxto commented Apr 23, 2024

That sounds basically okay. Shattered Pixel Dungeon also diverges with different input, but everybody had the same opportunities basically. Different builders influence item quality anyways.

earlier/later before wave finish

Does that mean it depends on the elapsed game time? Or only during which wave it gets done?

If the input is humanly reproducible it would also allow speedrunning seeds, though not if it depends on elapsed time.

@Kvel2D
Copy link
Collaborator

Kvel2D commented Apr 24, 2024

No, tower distribution doesn't depend on game time. It depends on element levels and wave level.
So if player 1 researches ice level 3 before wave 10 finish and player 2 researches ice level 3 after wave 10 finish there are two different conditions and two different random results for towers distributed after wave 10:

  1. wave 10 + ice level 3
  2. wave 10 + ice level 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants