The Sandloter's Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.

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

Log in

I forgot my password

Latest topics

» SG3 UIX Project
decompressing the uix scripts project? I_icon_minitimeFri Jul 19, 2019 8:14 pm by Caton

» 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


    decompressing the uix scripts project?

    avatar
    Caton
    Casual Gamer
    Casual Gamer


    Posts : 19
    Join date : 2017-03-20

    decompressing the uix scripts project? Empty decompressing the uix scripts project?

    Post by Caton 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.

      Similar topics

      -

      Current date/time is Thu Mar 28, 2024 2:47 pm