Hello!
I've been messing with AI to create a duplicate finder and tagging editor for any .var file.
After the var has been rewritten by a custom Python tool (edits the "tags" field inside .vam files, rewrites the whole .var/zip archive with Python's zipfile), it shows "Package x meta file is not valid" in the Package Manager in VAM.
The original file, untouched, works fine in VAM. Any version reprocessed by the tool fails with that error, even after the tool was updated to change literally nothing.
Ruled out so far:
- Archive corruption (CRC32 checks pass)
- Invalid JSON / malformed .vam files (all parse correctly)
- meta.json contentList mismatch vs actual archive contents (checked, consistent)
- Duplicate zip entries (none)
- WinRAR involvement
- VaM cache (tried Rescan Packages button + fresh isolated AddonPackages folder with only this file in it, still fails)
- ZIP header metadata (flag_bits/external_attr) -- found Python's zipfile WAS silently changing these on write, patched it to match original exactly, still fails
I tried everything I thought was possible and it still shows invalid.
Would anyone have the slightest idea?
Thanks!
I've been messing with AI to create a duplicate finder and tagging editor for any .var file.
After the var has been rewritten by a custom Python tool (edits the "tags" field inside .vam files, rewrites the whole .var/zip archive with Python's zipfile), it shows "Package x meta file is not valid" in the Package Manager in VAM.
The original file, untouched, works fine in VAM. Any version reprocessed by the tool fails with that error, even after the tool was updated to change literally nothing.
Ruled out so far:
- Archive corruption (CRC32 checks pass)
- Invalid JSON / malformed .vam files (all parse correctly)
- meta.json contentList mismatch vs actual archive contents (checked, consistent)
- Duplicate zip entries (none)
- WinRAR involvement
- VaM cache (tried Rescan Packages button + fresh isolated AddonPackages folder with only this file in it, still fails)
- ZIP header metadata (flag_bits/external_attr) -- found Python's zipfile WAS silently changing these on write, patched it to match original exactly, still fails
I tried everything I thought was possible and it still shows invalid.
Would anyone have the slightest idea?
Thanks!