dexyfex / CodeWalker

https://www.gta5-mods.com/tools/codewalker-gtav-interactive-3d-map
453 stars 202 forks source link

Auto-calculate drawables blocks size fields #210

Closed alexguirre closed 11 months ago

alexguirre commented 11 months ago

ShaderGroup.ShaderGroupBlocksSize (aka Unknown_30h) contains the byte size divided by 16 of the ShaderGroup block and its children blocks, when they are packed contiguously in the resource file.

DrawableBase.DrawableModelsBlocksSize (aka Unknown_9Ah) is similar but with the size of the DrawableModelsBlock.

Incorrect values can cause crashes when the model is unloaded.

Discussed here https://discord.com/channels/329138547833700352/329142468102586368/1139264754767122533