Skip to content

[KillTheRNG] Made WorldRNG more robust#293

Draft
ScribbleTAS wants to merge 16 commits into
MinecraftTAS:develop-beta3from
ScribbleTAS:fix/rng
Draft

[KillTheRNG] Made WorldRNG more robust#293
ScribbleTAS wants to merge 16 commits into
MinecraftTAS:develop-beta3from
ScribbleTAS:fix/rng

Conversation

@ScribbleTAS
Copy link
Copy Markdown
Member

Fixed a multitude of WorldRNG desyncs by fixing savestates, playback and sorting the PlayerChunkMap.entries list, so that tick updates are always consistent

  • [Savestates] Fix config option PauseOnTempSavestate being reversed
  • [Savestates] Fix motion being reset on temp savestates
  • [KillTheRNG] Add seed display to more entities
    This mainly adds the seed display to entityitems
  • [KillTheRNG] Fix globalTimer not setting the seed properly
  • [KillTheRNG] Replace Math.random() with instanced randoms
    This essentially removes Math.random from the code. I will keep this until the client RNG is also fixed
  • [Gui] Add blockHitDelay to infohud
    Another possible desync reason. Will be stored in the savestate in the future
  • [Playback] Fix playback being one tick delayed
  • [Savestates] Remove loadstates disabeling temp savestates
  • [KillTheRNG] Add updateLCG to monitoring
    Update LCG is a weird additional source of random in World.
  • [KillTheRNG] Add stacktrace offset to rng monitor
  • [Savestates] Add sorting by chunk to PlayerChunkMap.entries
    Sorts chunks as soon as they are added to the chunk map.
  • [KillTheRNG] Rename "Randomness" files to RNG

@ScribbleTAS ScribbleTAS added this to the Beta3.0 milestone May 12, 2026
@github-project-automation github-project-automation Bot moved this to Todo in TASmod May 12, 2026
@ScribbleTAS ScribbleTAS self-assigned this May 12, 2026
@ScribbleTAS ScribbleTAS force-pushed the fix/rng branch 2 times, most recently from 59abc6b to 1b1e916 Compare May 12, 2026 19:17
@ScribbleTAS ScribbleTAS moved this from Todo to In Progress in TASmod May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant