Members redtarp Posted January 30 Members Posted January 30 Hello, I'm trying to get sprites from the eraislet prototype of the game, South Park: The Stick of Truth (https://hiddenpalace.org/South_Park:_The_Stick_of_Truth_(Feb_22,_2012_prototype)). I was able to get the .gfx files from the files and open them in JPEXS; however, a lot of the sprites come out red. I wanted to ask if anyone could somehow help me figure out a way to get the ssprties back to their original color. In the .zip is the .gfx for the rat seen in the image. rat.zip
piken Posted February 7 Posted February 7 (edited) Is this "CFX" a vector format? I see the header information here. Decompressing the bytes after the first 8 bytes of the header, we see reasonable decompressed output, but it doesn't appear to be raster format (and alas I know very little about Flash/SWF vector graphics, but maybe some else coming across this thread later does). import zlib inputFilename = "rat.gfx" fileOffset = 8 with open(inputFilename, 'rb') as f: compressedData = f.read()[fileOffset:] decompressedData = zlib.decompress(compressedData) #endwith outputFilename = inputFilename + ".dat" with open(outputFilename, 'wb') as f: f.write(decompressedData) #endwith Edited February 9 by piken
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now