Skip to content

Records are saved with outdated information when resetting without pausing #232

@DuncanRuns

Description

@DuncanRuns

Describe the bug
The resultRecord is only updated on pauses (including loading screens) and category completion, meaning if you reset using an atum keybind, you never open a pause menu, and an outdated resultRecord is saved.

To Reproduce
Steps to reproduce the behavior:

  1. Start a 1.15.2 run
  2. Loot a monument
  3. Reset
  4. Observe that rsg.obtain_gold_block is in events, but pick_gold_block is not in the record's timelines (in either the global folder or world folder)

Expected behavior
The record file should be up-to-date upon resetting.

Screenshots or logs
Set Speedrun #1030/speedrunigt/events.log

common.view_seed 0 0
rsg.obtain_iron_ingot 81758 70555
rsg.obtain_iron_pickaxe 90307 79105
rsg.obtain_gold_block 135705 118355

Set Speedrun #1030/speedrunigt/record.json

{
  "...":"...",
  "timelines": [],
  "...":"..."

Versions info :

  • MC Version: 1.15.2
  • SpeedRunIGT Version: 14.2+1.15.2
  • Fabric Loader Version: 0.16.14

Additional context
A possible solution could be to add INSTANCE.updateRecordString(); above writeRecordFile in the start method of InGameTimer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions