This forum is for fans of Sandlot Games and the games they made.

Log in

I forgot my password

Latest topics

» 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

» Hi - Super granny fan
Thu Mar 23, 2017 4:47 pm by Caton

» Super Granny 2 Russin
Thu Mar 23, 2017 4:24 pm by Caton


    decompressing the uix scripts project?

    Share

    Caton
    Casual Gamer
    Casual Gamer

    Posts : 16
    Join date : 2017-03-20

    decompressing the uix scripts project?

    Post by Caton on Mon Dec 04, 2017 12:34 am

    I wrote a python script, will this decompress the file used with zlib?

    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.

      Current date/time is Tue Sep 25, 2018 4:38 am