Modding, Mission Design, and Coding > FS2 Open Tools

PUBLIC BETA: POF Aligner v0.3

(1/1)

ShivanSpS:
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.0

How to use
In general you only need to to
pof_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:
v0.3
-Fixed a bug that caused up to 84 bytes of data been cut off the end of the file.

v0.2
-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.3 https://www.dropbox.com/s/w7e02ousfgbe3d6/pof_aligner_0.3.zip?dl=0

Old Versions
v0.2 https://www.dropbox.com/s/bo21sgtq1sx77oq/pof_aligner_0.2.zip?dl=0
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.

Kazan:
I'm not sure who holds the keys to the git repository now but you could just submit a PR to add space padding enforcement to PCS2

ShivanSpS:

--- Quote from: Kazan on December 09, 2019, 12:34:04 am ---I'm not sure who holds the keys to the git repository now but you could just submit a PR to add space padding enforcement to PCS2

--- End quote ---

PCS2 needs to be updated as well, but i have no time for that. In fact im working around the clock to finish dealing with this issue ASAP, since starting next month im going to be up to my neck on a project.

Navigation

[0] Message Index

Go to full version