wil bil ste sty files

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

wil bil ste sty files

Post by Cuban-Pete »

What is the difference - in images - between these three (wil.sty, bil.sty and ste.sty) besides (town) buildings?
"Mmmm, your eyes are so beautiful."
User avatar
Sektor
Boss
Boss
Posts: 1426
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: wil bil ste sty files

Post by Sektor »

A full automated comparison should be done.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: wil bil ste sty files

Post by Cuban-Pete »

Any ideas how to do that?
"Mmmm, your eyes are so beautiful."
User avatar
Sektor
Boss
Boss
Posts: 1426
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: wil bil ste sty files

Post by Sektor »

Export all as bmp. Rename all of them so their filename starts with a checksum, so you can easily see which are duplicates. It's going to require some scripting.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: wil bil ste sty files

Post by Cuban-Pete »

Ahh, nice idea to use checksum. I was thinking image comparing software and stuff like that. :P
"Mmmm, your eyes are so beautiful."
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: wil bil ste sty files

Post by Cuban-Pete »

I did a checksum, they are all the same. All the sprites in bil, wil and ste are the same. :)

here is the not-so-difficult check code:

Code: Select all

import zlib
import os

wil = "wil/"
bil = "bil/"
ste = "ste/"

for subdir, dirs, files in os.walk(wil):
    for file in files:
        hash1 = zlib.crc32(open(wil+file).read())
        hash2 = zlib.crc32(open(ste+file).read())
        if hash1 != hash2:
            print file
                           
"Mmmm, your eyes are so beautiful."
User avatar
Sektor
Boss
Boss
Posts: 1426
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: wil bil ste sty files

Post by Sektor »

Nice code. Shame on DMA Design for wasting disk space :P

At least every STY file doesn't need it's own audio file anymore.
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: wil bil ste sty files

Post by Cuban-Pete »

when you extract all the images and zip it, it's only half MB. lol [invul]

dafe's .sty file contains around 32 differences
GTA2_CAR_12.bmp
GTA2_CAR_16.bmp
GTA2_CAR_17.bmp
GTA2_CAR_18.bmp
GTA2_CAR_19.bmp
GTA2_CAR_20.bmp
GTA2_CAR_23.bmp
GTA2_CAR_28.bmp
GTA2_CAR_3.bmp
GTA2_CAR_32.bmp
GTA2_CAR_36.bmp
GTA2_CAR_40.bmp
GTA2_CAR_43.bmp
GTA2_CAR_44.bmp
GTA2_CAR_47.bmp
GTA2_CAR_48.bmp
GTA2_CAR_5.bmp
GTA2_CAR_52.bmp
GTA2_CAR_56.bmp
GTA2_CAR_63.bmp
GTA2_CAR_64.bmp
GTA2_CODE OBJECT_1048.bmp
GTA2_CODE OBJECT_1049.bmp
GTA2_CODE OBJECT_1050.bmp
GTA2_CODE OBJECT_1051.bmp
GTA2_CODE OBJECT_1052.bmp
GTA2_CODE OBJECT_1053.bmp
GTA2_CODE OBJECT_1097.bmp
GTA2_FONT_1386.bmp
GTA2_MAP OBJECT_1160.bmp
GTA2_PED_354.bmp
GTA2_USER OBJECT_1305.bmp
"Mmmm, your eyes are so beautiful."
User avatar
Cuban-Pete
Immortal
Posts: 909
Joined: 29 Jan 2010, 15:03
GH nick: Cuban-Pete

Re: wil bil ste sty files

Post by Cuban-Pete »

there you go. :ugeek:
Attachments
GTA2 Sprites (sorted).7z
(596.29 KiB) Downloaded 491 times
"Mmmm, your eyes are so beautiful."
Post Reply