-
Notifications
You must be signed in to change notification settings - Fork 244
Open
Description
Describe the bug
When attempting to decompile a Dota 2 custom game map (.vmap_c), the process fails with a Datamodel.AttributeTypeException.
Expected behavior
.vmap_c decompilation into .vmap without errors
Relevant log output or exception with stacktrace
[13:25:30.950] [ExtractProgressForm] Failed to extract 'maps/touhoutd.vmap_c': Datamodel.AttributeTypeException: Attribute "texcoord$1" (Vector4[]) is not an array.
at Datamodel.Element.GetArray[T](String name)
at ValveResourceFormat.IO.HammerMeshBuilder.AddRenderMesh(DmeMesh shape, Vector3 positionOffset) in /_/ValveResourceFormat/IO/HammerMeshBuilder.cs:line 1236
at ValveResourceFormat.IO.MapExtract.RenderMeshToHammerMesh(Model model, Resource resource, Vector3 offset, String entityClassname) in /_/ValveResourceFormat/IO/MapExtract.cs:line 627
at ValveResourceFormat.IO.MapExtract.<HandleWorldNode>g__ProcessAggregate|101_6(KVObject agg, Int32 layerIndex, List`1 layerNodes) in /_/ValveResourceFormat/IO/MapExtract.cs:line 1049
at ValveResourceFormat.IO.MapExtract.HandleWorldNode(WorldNode node) in /_/ValveResourceFormat/IO/MapExtract.cs:line 1158
at ValveResourceFormat.IO.MapExtract.ToValveMap() in /_/ValveResourceFormat/IO/MapExtract.cs:line 408
at ValveResourceFormat.IO.MapExtract.ToContentFile() in /_/ValveResourceFormat/IO/MapExtract.cs:line 294
at ValveResourceFormat.IO.FileExtract.Extract(Resource resource, IFileLoader fileLoader, IProgress`1 progress) in /_/ValveResourceFormat/IO/FileExtract.cs:line 174
at GUI.Forms.ExtractProgressForm.ExtractFile(Resource resource, String inFilePath, String outFilePath, Boolean flatSubfiles) in /_/GUI/Forms/ExtractProgressForm.cs:line 448What game does this happen in
DotA2
Reference file in a Source 2 game
Attached the .vpk file I have problems with.
If anything more is needed, let me know
What version of VRF are you using?
16.0.5103 c20f9da on Microsoft Windows 10.0.19045 (X64) (GPU: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2, Driver: 4.6.0 NVIDIA 560.94)
Have you tried the latest dev build?
Yes