4 個の投稿 / 0 new
最終投稿
#1 2020-04-05 01:02

Fix "Invalid vmd file"

Change the file type from .vmd to .vmd.bak
so
motion.vmd -> motion.vmd.bak
I can't guarantee that this will always work, but I have gotten several motions to load this way

2020-04-08 07:28

I have been working on a VMD parsing program, but I haven't had very many weird old broken VMDs to test it with. Can you upload/share some examples of VMD files that are fixed by renaming them this way? I would be extremely interested to see what is special/broken about them.

2020-04-12 18:37

After investigating with the examples he gave me, here's what I found. I have no idea how the VMD files got messed up like this but they actually violate the VMD file format specification. They are "invalid" because they contain a few frames of camera frame data or light frame data but the section header specifies that it does NOT contain that data. So it can't be successfully unpacked. If you have a tool that lets you unpack and edit the binary data, changing the section headers to match the number of frames it actually has (or deleting those extra frames) will fix the VMD.
Or, adding .bak on the file name will tell MMD to "return all the information it could extract before it crashed instead of rejecting it entirely", which usually will let the motion be loaded without issue... but there is a chance that it will cause MMD to crash entirely while loading, so use caution.

2020-05-18 05:36

best porn site
if they throw stones at you, don’t throw back, use them to build your own foundation instead.