Skip to content

[KillTheRNG] Made WorldRNG more robust#293

Merged
ScribbleTAS merged 17 commits into
MinecraftTAS:develop-beta3from
ScribbleTAS:fix/rng
May 21, 2026
Merged

[KillTheRNG] Made WorldRNG more robust#293
ScribbleTAS merged 17 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
@ScribbleTAS ScribbleTAS requested a review from PancakeTAS May 21, 2026 20:57
@ScribbleTAS ScribbleTAS marked this pull request as ready for review May 21, 2026 20:57
@ScribbleTAS ScribbleTAS enabled auto-merge May 21, 2026 20:57
@ScribbleTAS ScribbleTAS merged commit 6b1e8e5 into MinecraftTAS:develop-beta3 May 21, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in TASmod May 21, 2026
@ScribbleTAS ScribbleTAS deleted the fix/rng branch May 23, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants