Ok, today i did a mayor step forward as models are now aligned enoght to load in-game like the retail ones do on a unmodified 3.7.2 (other than ignoring SLDC data) whiout a bus error with kernel fixup disabled, with everything working, collision, shields, etc. unaligned defpoints vertex offset was causing a lot of troubles, that is now fixed.
But once again i ran into the same segfault as before when a ship is destroyed.
Thread 1 "fs2_open_3.7.2" received signal SIGSEGV, Segmentation fault.
0x00448d24 in l_Shipclass_Model_f(lua_State*) ()
I still dont know what that is, maybe a script? is debug builds disabling scripts or something?
The thing is... im running out of things to align in the pofs. BSP_Data is now properly aligned. so is the OBJ2 chunk, the other chunks are soft-aligned (this means, size offset is corrected and the chain adjusted for this, but strings inside do not).
FUEL,DOCK,SPCL,PATH and TXTR all have strings inside that could cause issues i need to take a look and fix them, but thats all that remains to be done. And not sure if any of that means anything to a ship breaking up thats causing the segfault. Maybe special points(SPCL)?