Page 1 of 1

Sonic and Sega Allstars Racing

Posted: Wed Nov 27, 2019 2:22 am
by NVtom
Hi :D
Im looking for some textures but i dont know how to get to them ...
In this post here is a file with the extension .zig .
viewtopic.php?f=16&t=13462&p=129718&hilit=Zig#p129718
I know that these .zig files include 2 models (textures) and i wanna know how i can get to them. Would be nice if you could kinda teach me how to do so. :) (in the post there was a answer where shakotay2 "solved" it)

If you could help i would appreciate that a lot.
Its for a little "project" for my friends and i.

[Sry for my bad english]

Re: Sonic and Sega Allstars Racing

Posted: Wed Nov 27, 2019 4:33 am
by Acewell
here is a quick quickbms script to cut the dds textures from decompressed .zig file. :D

Code: Select all

get FOLDER basename
math i = 1
findloc OFFSET string "DDS "
do
    goto OFFSET
    goto 0x14 0 seek_cur
    get SIZE long
    math SIZE + 0x80
    string NAME p "%s\%d.dds" FOLDER i
    log NAME OFFSET SIZE
    findloc NEXT_OFFSET string "DDS " 0 "" -1
    math OFFSET = NEXT_OFFSET
    math i + 1
while NEXT_OFFSET != ""
cuts top level mip only
maybe later i will improve it to get all mips unless someone else does first. :]