TASEmulators / BizHawk

BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
http://tasvideos.org/BizHawk.html
Other
2.21k stars 385 forks source link

mGBA/TAStudio: RNG desyncs occurring during rewind - Boktai Solar Sensor #4094

Closed Drakodan closed 6 days ago

Drakodan commented 1 month ago

Following the GPIO fix, some issues relating to the Light Sensor function in TAStudio creating desyncs during rewind have been fixed, but some still persist:

https://www.youtube.com/watch?v=3YC6n9UFul4

This video demonstrates how on a recent dev build (As of 15th October 2024), rewinding creates a different RNG value than initially displayed.

The initially-displayed RNG value at the start of this video is the incorrect one, and it does update correctly once rewound beyond a certain point and allowed to generate new greenzone, but this behaviour of jumping to a different RNG state on selecting a Marker Frame to rewind to a previous point is not correct.

Drakodan commented 1 month ago

1585 - Zoku Bokura no Taiyou - Taiyou Shounen Django (J) (v1.0) desync test.zip

Movie files to confirm behaviour: TASPROJ + bk2 file provided.

RNG2 index in RAM watch: 46B8 in IWRAM, 4 byte address.

Steps to reproduce error:

RetroEdit commented 1 month ago

Noting for additional context the original Boktai 2 desync was reported to BizHawk's tracker in #4060 and the GPIO fix mentioned was cab0b2df0b001cf0d50d1726191783ae6e934aad. The direct cause is probably not directly related.