gibbed / Gibbed.Borderlands3

Tools & code for use with Borderlands 3.
240 stars 41 forks source link

Deserializing .sav file #3

Open jayjayb772 opened 5 years ago

jayjayb772 commented 5 years ago

I've been trying to figure out how to decode the .sav file from BL3 but still to no avail. Have you been able to find the the Hash algorithm to properly deserialize these .sav files?

NicoDblc commented 5 years ago

Have you tried using Gibbed.Borderlands3.ProtoBufFormats ?

IOnlyFetchBranches commented 5 years ago

aren't those just protobuf formats like data contracts or something? not seeing how that helps decode a. sav file. But my only protobuff experience comes from gRpc 😂

denverquane commented 5 years ago

I've been messing with the data today, and I'm fairly certain that while the underlying data is protobuf, it seems to be obfuscated or encrypted with something else. I couldn't unmarshal any .sav files with the .proto definitions, and from Gibbed's Twitter it seems like there's something else wrapping the raw data.

NicoDblc commented 5 years ago

Yes that's exactly the experience I had as well, trying to deserialize the data, using CharacterData gives an error which leads to that conclusion

denverquane commented 5 years ago

trying to deserialize the data, using CharacterData gives an error

Yeah same with 'Character', 'Profile', etc in my case. He said on Twitter something about the .Pak files being encrypted with AES, but I'm not sure if the save files are the same (I saw two labeled "blocks" in the data with textual labels, seems unlikely)

ensiform commented 5 years ago

Maybe best to wait and see an update from him when he has some time?