duffhause https://i.imgur.com/hvCqBtn.png
You have imported the entirety if the p3d library for a mod that only edits some p3d chunk types, ideally only load the scripts that open the chunks you need to. That
You have imported the entirety if the p3d library for a mod that only edits some p3d chunk types, ideally only load the scripts that open the chunks you need to. That is why there are all separate files. I reckon about 3/4 of this mod is bloat
Assuming you have p3d2.lua and p3dchunks/ in resources/lib this will only import the scripts you need, change for your use case and delete unnecessary scripts
local RequiredP3DChunks = {
"StaticEntity",
"InstStatPhys",
"Skin",
"WorldSphere",
"AnimDynaPhys",
"AnimObjWrapper",
"Mesh",
"ColourList",
"OldPrimitiveGroup",
"Shader",
"ShaderColourParam",
"OldFrameController"
}
for key, value in pairs(RequiredP3DChunks) do
dofile(Paths.Libraries.."/P3DChunks/"..value.."P3DChunk.lua")
end