pskhack, a marginal hack for PSK flags
SabbathCat said:
A quick question, did anyone ever update UnrealFX to handle PSK?
Not as far as I know. I never managed to find the author's website, and it didn't come with source code.
I'm not yet advanced enough to be creating my own animations, but without exporting in the standard .3d format, there doesn't appear to be a way to set FX on individual polys.
The PSK format is only "documented" by the UT v432 C++ headers Epic released, as far as I can see.
A while ago I used them as reference to write a C program to hack the flags (I think I posted it on the late, lamented Gamerforums a couple of times); it's very crude, and has no user interface whatsoever, but it nearly does the job
The zipfile is attached.
Instructions for use:
* Decide which flags apply to which materials. The flags must apply to a whole material, at the moment (so you could have Skin00 translucent, Skin01 two-sided, Skin02 masked and Skin03 normal, if you wanted).
* Obtain a C compiler. It used to work with MinGW; try
http://mingw.sourceforge.net/download.shtml (I think MSYS-1.0.9.exe is the right one, but I'm typing this on a non-Windows box, so I can't verify that).
* Put the exported PSK and the pskhack files somewhere on the same drive you installed MinGW on (MinGW is a Windows port of Unix tools which assume you only have one filesystem root, but Windows has one filesystem root per drive).
* Obtain a usable text-editor. If all else fails, you have Notepad.
* Edit pskhack.c (look for the big comment that says "HACK ME", my editor says it's line 233) to do whatever particular bit of tweaking you're after. For instance, the version in the zipfile sets Skin02 to be masked and Skin01 to be two-sided. The POLY_whatever constants are listed at the top of pskhack.h, and if you're lucky, they might even be correct.
* Open a command prompt (or a DOS prompt, if still using Win9x like me) and cd to the directory with pskhack and the PSK in.
* Compile the executable with: gcc pskhack.c -o pskhack.exe (you may need to add the MinGW "bin" directory to your PATH, or invoke gcc as \mingw\bin\gcc instead of just gcc, or something like that).
* Run the executable: pskhack.exe myfile.psk
* If all goes well, your modified PSK file is in hacked_myfile.psk. Compile into UT and test as usual.