Hey guys,
I'm using Yeyinde's RGSSAD save_data fix (Here) for my auto-patcher, and I'm using the code:
But it never makes it past "Patching Game Files - Reading Data". It just sits there, no matter how long I leave it.
The contents of @loaded_data is [data read from file (using load_data),path into the archive(eg 'Data/Scripts.rxdata')]
I'm not sure what's wrong - I highly doubt this script would take longer than an hour to decrypt + encrypt a 55mb archive.
The thing is, its the RGSSAD decryption that's having the problems, as when it runs "original_save_data" instead, it patches it perfectly.
I know its a little complex, but I really need help :\
I'm using Yeyinde's RGSSAD save_data fix (Here) for my auto-patcher, and I'm using the code:
Code:
@help.set_text("Patching Game Files ")
if File.exists?(RGSSAD::ENC_FILE)
# Decrypt the encrypted archive into memory (SLOW)
@help.set_text("Patching Game Files - Reading Data. . . ")
RGSSAD.decrypt
# Add the Marshalled object into the RGSSAD file array
@help.set_text("Patching Game Files - Arranging Data. . . ")
for i in 0...@loaded_data.length
RGSSAD.add_file(Marshal.dump(@loaded_data[i][0]),@loaded_data[i][1])
end
@help.set_text("Patching Game Files - Writing Data. . . ")
# Encrypt the new archive (SLOW)
RGSSAD.encrypt
else
# Use the old save_data if no encrypted archive is present
for i in 0...@loaded_data.length
original_save_data(@loaded_data[i][0], @loaded_data[i][1])
end
end
The contents of @loaded_data is [data read from file (using load_data),path into the archive(eg 'Data/Scripts.rxdata')]
I'm not sure what's wrong - I highly doubt this script would take longer than an hour to decrypt + encrypt a 55mb archive.
The thing is, its the RGSSAD decryption that's having the problems, as when it runs "original_save_data" instead, it patches it perfectly.
I know its a little complex, but I really need help :\