Comments (2)
Thread for context:
https://www.hard-light.net/forums/index.php?topic=96055.0
Here's the section of the readme:
- If you save a POF in the editor that you just extracted from the original
FreeSpace 1/2 .VP files, the file will be a bit smaller than the original
file, even though nothing changed. This is not a bug, there is no
information lost. However the original Volition editors wasted some bytes
containing nothing but null or CRLF bytes at the end of strings, which are
however totally useless. MODELVIEW in contrast cuts strings to their actual
content.
from pcs2.
After looking into this issue myself i have the guidelines to properly align the data:
- All chunks offsets no matter what must be divisible by 4.
- All strings lenght must be divisible by 4, this means every chunk with a string the lenght must be adjusted so it is divisible and fill the extra characters with a null terminator
- If a string is empty, for example "properties" on OBJ2 chunk the length must be 4, not 0, and the string must cointain 4 nulls terminators.
- Defpoints is the only chunk on bsp_data that has a chance to be unaligned, it is important to ensure the defpoints chunk size is divisible by 4, and the vertex data offset inside is also divisible by 4.
- Nothing can be done about the SLDC chunk, the system is unaligned by design, so only adjust the size if needed so the next chunk after it is aligned.
from pcs2.
Related Issues (11)
- OS X compilation issue HOT 20
- Need better release hosting
- POF version 2118 Support
- Linux compilation issue with GCC 9.2.1
- Better mass calculation
- Automatic MOI generation
- Strings should probably be padded again? HOT 1
- The header's max radius should include the shield as well
- Unnamed subobjects cause crash when exporting to Collada HOT 2
- Doesn't support wxWidgets 3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pcs2.