I wrote a python script, will this decompress the file used with zlib?
in a different version of super granny 2 it didn't use a archive so the xml files weren't encrypted but when using a archive it will use encryption mode.
- Code:
import zlib
str_object1 = open('test.xml', 'rb').read()
str_object2 = zlib.compress(str_object1, 9)
f = open('test.txt', 'wb')
f.write(str_object2)
f.close()
str_object1 = open('test.txt', 'rb').read()
str_object2 = zlib.decompress(str_object1)
f = open('text.txt.xml', 'wb')
f.write(str_object2)
f.close()
in a different version of super granny 2 it didn't use a archive so the xml files weren't encrypted but when using a archive it will use encryption mode.
Fri Jul 19, 2019 8:14 pm by Caton
» SG4 Test??
Sat Jan 12, 2019 12:09 am by Caton
» decompressing the uix scripts project?
Mon Dec 04, 2017 12:34 am by Caton
» xml editing?
Sun Apr 23, 2017 12:39 am by Caton
» Super granny4 test version fix link?
Fri Apr 07, 2017 9:09 am by Sandlotmourner
» Super Granny 7: Kitty Alliance (Unofficial)
Mon Apr 03, 2017 6:45 pm by Caton
» Custom Levels and maps?
Mon Mar 27, 2017 5:09 am by Caton
» Super Granny 2 Changing Level sharing Server?
Sun Mar 26, 2017 5:27 pm by Caton
» Focus test builds
Thu Mar 23, 2017 4:57 pm by Caton