POF ALIGNER aligns the .pof files that Freespace 2 uses so they are up to original Volition standarts and can be parsed by ARM cpus.
The reason of this is that ModelView32 is removing space padding and PCS2 does not enforces it, this causes the pof files to end with pointers offsets in unaligned position, that may end in a SEGBUS.
Warning: Since Version 0.2 output pof version is 2118 (up from 2117), and creates an additional chunk type called "SLC2", SLC2 is a revised version of the SLDC sytem but with an int instead of a char for data alignment.
Version 2118 means the file is aligned and the SLC2 chunk presence.
You may want to check this thread for context:https://www.hard-light.net/forums/index.php?topic=96055.0How to use
In general you only need to topof_aligner -align -vp_in C:\unaligned.vp -vp_out C:\aligned.vp
View readme in github for full options.Source Code avalible here:https://github.com/Shivansps/pof_aligner
Codeblocks project provided.Changelog:
-Fixed a bug that caused up to 84 bytes of data been cut off the end of the file.
-Pof version output is changed to 2118
-VP Write support, VP to VP alignment now supported.
-SLDC to SLC2 conversion.Pre-Build Avalible here:
v0.1 - Initial Release https://www.dropbox.com/s/rm9jr67wjqbjuhj/pof_aligner_0.1.zip?dl=0
This tool still needs futher testing.
Im interested in .pof files that cant be processed or end up producing broken model files.