When a drawable hash was unknown, it kept the "filename.#dd" name so
exporting to XML lost the hash and importing it back created a broken
file.
Now if the hash is unknown, the name is set to `hash_1234ABCD`, and XML
import checks for `hash_`.
* Update EditYtypArchetypePanel.Designer.cs
64 - Unk07 archetype flag: disable sorting for shaders with alpha. Used for glass objects, has a bug of drawing through objects in a mirror and a white glare strip in specular shaders
524288 - Unk20 archetype flag: plays YCD animation on Dynamic objects. Works on objects with 131072 - Dynamic
* Fix for Generate Capsule LODLight
* Fix for Generate Capsule LODLight
* Fix for Capsule HDLight
This would "fix" the exported xml from having "22" in the embedded texture's format block.
In before this 22 prevents the xml file from importing into blender via Sollumz, caused the common error "KeyError:22" when some people editing weird-making mods.
* Audio.rel.xml updates
* Update RelFile.cs
* Audioconfig.dat4 changes + fix for config game crash
Credits to alexguirre for type & fieldname changes to ERSettings (prev UnkER) and Vector3 (prev Orientation)
RpfFile:
- Limit RPF entry names to 256 characters because long names can cause the RPFExplorer to freeze when opening its directory.
- Skip RPFs with paths longer that 5000 characters, which are probably an attempt to make CW run out-of-memory.
ExploreForm:
- Use `Path.GetExtension` directly instead of `FileInfo` to prevent `PathTooLongException`s.
- Check for invalid characters in file names to prevent `ArgumentException`s.
`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