SackMaggie Posted August 1, 2017 Share Posted August 1, 2017 I'm trying to change dupe stat with save edit but I'm not good at saved file at Hex formatted It so hard to figured out where is dupe stat stored (If any veteran have done it pls tell me) So I retreat and will try cheat engine method hahaha Link to comment Share on other sites More sharing options...
Risu Posted August 1, 2017 Share Posted August 1, 2017 It's zlib compressed after the serialization reference. Good luck. Link to comment Share on other sites More sharing options...
AlexRou Posted August 1, 2017 Share Posted August 1, 2017 7 hours ago, Risu said: It's zlib compressed after the serialization reference. Good luck. Is it as simple as uncompressing? Or did they added a passphrase? Link to comment Share on other sites More sharing options...
Risu Posted August 1, 2017 Share Posted August 1, 2017 30 minutes ago, AlexRou said: Is it as simple as uncompressing? Or did they added a passphrase? It's just zlib. Could probably write a python script to handle it. The hard part is finding the starting point of the compressed data. Would have to walk through the entire first half of the file. By the way, I'll decompress a save if you truly want to explore it. Be warned that there are plenty of points that need lengths updated if you add bytes. Link to comment Share on other sites More sharing options...
noisycat Posted August 2, 2017 Share Posted August 2, 2017 On 8/1/2017 at 0:31 PM, Risu said: It's just zlib. Could probably write a python script to handle it. The hard part is finding the starting point of the compressed data. Would have to walk through the entire first half of the file. By the way, I'll decompress a save if you truly want to explore it. Be warned that there are plenty of points that need lengths updated if you add bytes. I'd even say that it's easier to read and rewrite whole save file than to update all offsets if you add/remove bytes. If you want to change a value (constant byte length), that's another story and can probably be achieved without rewriting Link to comment Share on other sites More sharing options...
Risu Posted August 2, 2017 Share Posted August 2, 2017 24 minutes ago, noisycat said: I'd even say that it's easier to read and rewrite whole save file than to update all offsets if you add/remove bytes. If you want to change a value (constant byte length), that's another story and can probably be achieved without rewriting There are no offsets. Everything is handled linearly. If you add or remove any bytes then you have to ensure the save loader can reach the next entry. Well, technically the state machine serialization uses offsets but that isn't part of the save structure. That is just a blob of data to be handled individually. Link to comment Share on other sites More sharing options...
noisycat Posted August 2, 2017 Share Posted August 2, 2017 1 hour ago, Risu said: There are no offsets. Everything is handled linearly. If you add or remove any bytes then you have to ensure the save loader can reach the next entry. Well, technically the state machine serialization uses offsets but that isn't part of the save structure. That is just a blob of data to be handled individually. If that's the case then I shall apologize, I've only looked at headers and saw that they indeed use offsets. What I meant was that it's extremely easy to miss just one spot and corrupt the save that way. It's really hard to find the cause when this happens, and debugging that is hell. That's why I would probably go with full serialization/deserialization using original oni assembly (why not?) controlled by my code. Link to comment Share on other sites More sharing options...
Risu Posted August 2, 2017 Share Posted August 2, 2017 9 minutes ago, noisycat said: If that's the case then I shall apologize, I've only looked at headers and saw that they indeed use offsets. What I meant was that it's extremely easy to miss just one spot and corrupt the save that way. It's really hard to find the cause when this happens, and debugging that is hell. That's why I would probably go with full serialization/deserialization using original oni assembly (why not?) controlled by my code. The save file actually has all you need to write your own deserialization program. It's only lacking data on state machine parameters which you have to manually check. Link to comment Share on other sites More sharing options...
noisycat Posted August 2, 2017 Share Posted August 2, 2017 2 minutes ago, Risu said: The save file actually has all you need to write your own deserialization program. It's only lacking data on state machine parameters which you have to manually check. You mean they are storing all the structure descriptions in the file? Sounds good for backward-compatibility XD Btw, is that your app you got there? Link to comment Share on other sites More sharing options...
Risu Posted August 2, 2017 Share Posted August 2, 2017 3 minutes ago, noisycat said: You mean they are storing all the structure descriptions in the file? Sounds good for backward-compatibility XD Btw, is that your app you got there? 010 Editor template I wrote. Very good program. Link to comment Share on other sites More sharing options...
GGGG-Master Posted September 27, 2017 Share Posted September 27, 2017 On 8/2/2017 at 3:31 PM, Risu said: 010 Editor template I wrote. Very good program. u may want to share the template u created ? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.