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

Crashes on opening file (release/0.1.0 branch, w/ error) #74

Closed
iMakeMehPrograms opened this issue Aug 12, 2024 · 4 comments
Closed

Crashes on opening file (release/0.1.0 branch, w/ error) #74

iMakeMehPrograms opened this issue Aug 12, 2024 · 4 comments

Comments

@iMakeMehPrograms
Copy link

Essentially, when opening my save file:
er-sav.zip
The following error occurs:

assertion `left == right` failed
right = 135
left = 0

The line it points to is in src\user_data_11.rs, in this function:

impl Read for UserData11 {
    fn read(br: &mut BinaryReader) -> Result<UserData11, Error> {
        let mut user_data_11 = UserData11::default();
        user_data_11.unk.copy_from_slice(br.read_bytes(0x10)?);
        user_data_11.regulation.copy_from_slice(br.read_bytes(0x1e9fb0)?);
        user_data_11.rest.copy_from_slice(br.read_bytes(0x56050)?);
        assert_eq!(user_data_11.rest[0], 0); // ERR
        Ok(user_data_11)
    }
}

I can provide partial or full backtrace if needed.
Extra info:
App ver 1.13
Calibration ver 1.13.2
SOTE installed
Both characters (lvl 9 & lvl 149) have been opened on latest patch + with SOTE

@iMakeMehPrograms
Copy link
Author

In terms of what I'm trying to do; I'm just trying to get the final ending after beating radagon because I lost the save pre-ending

@ClayAmore
Copy link
Owner

src\user_data_11.rs and the code snippet is not from the 0.1.0 branch, but I updated the latest lib to support the latest regulation. If you build the branch you should be able to read the save file. There's a bunch of still not implemented in this version though.

@ClayAmore
Copy link
Owner

duplicate of #72

@iMakeMehPrograms
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants