January 30Jan 30 Localization 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
February 7Feb 7 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 9Feb 9 by piken
Create an account or sign in to comment