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

Lua desyncs with savestate functions #56

Open
GoogleCodeExporter opened this issue Sep 2, 2015 · 2 comments
Open

Lua desyncs with savestate functions #56

GoogleCodeExporter opened this issue Sep 2, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Run a Lua script in SGB game Pokémon Blue
2. Use functions from savestate lib, such as savestate.load()
3. Load a savestate many times in the script's iterations.

What is the expected output? What do you see instead?
Using functions such as memory.readbyte(), the script reads values that are 
different from those that would appear in a normal movie playback.

For example, ordering the script to do an input and read a value from memory 
returns a number. Manually entering this input and reading the byte in memory 
viewer shows a different value, causing a desync.


Analyzing numbers generated by the RNG, in the first iterations, the values 
sync perfectly. After some, the values begin to differ by 3,4. At the last 
ones, they are completely different. 

What version of the product are you using? On what operating system?

VBA v22,  Windows 7 Ultimate 32 bits


Please provide any additional information below.

The problem is fixed when I remove savestate functions from the script and 
rerecord manually, leading me to believe these functions are buggy.

Original issue reported on code.google.com by [email protected] on 11 Aug 2010 at 6:46

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

No branches or pull requests

1 participant