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

Log in

I forgot my password

Latest topics

» SG4 Test??
decompressing the uix scripts project? I_icon_minitimeSat Jan 12, 2019 12:09 am by Caton

» decompressing the uix scripts project?
decompressing the uix scripts project? I_icon_minitimeMon Dec 04, 2017 12:34 am by Caton

» xml editing?
decompressing the uix scripts project? I_icon_minitimeSun Apr 23, 2017 12:39 am by Caton

» Super granny4 test version fix link?
decompressing the uix scripts project? I_icon_minitimeFri Apr 07, 2017 9:09 am by Sandlotmourner

» Super Granny 7: Kitty Alliance (Unofficial)
decompressing the uix scripts project? I_icon_minitimeMon Apr 03, 2017 6:45 pm by Caton

» Custom Levels and maps?
decompressing the uix scripts project? I_icon_minitimeMon Mar 27, 2017 5:09 am by Caton

» Super Granny 2 Changing Level sharing Server?
decompressing the uix scripts project? I_icon_minitimeSun Mar 26, 2017 5:27 pm by Caton

» Focus test builds
decompressing the uix scripts project? I_icon_minitimeThu Mar 23, 2017 4:57 pm by Caton

» Hi - Super granny fan
decompressing the uix scripts project? I_icon_minitimeThu Mar 23, 2017 4:47 pm by Caton


    decompressing the uix scripts project?

    avatar
    Caton
    Casual Gamer
    Casual Gamer

    Posts : 17
    Join date : 2017-03-20

    decompressing the uix scripts project? Empty 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 Sun May 19, 2019 6:04 pm