steamvr_unity_plugin
steamvr_unity_plugin copied to clipboard
com.valvesoftware.unity.openvr-1.2.1.tgz missing meta files
The zip file for the package com.valvesoftware.unity.openvr-1.2.1 included with the unity package is missing 2 meta files for:
- package\Runtime\x86\libopenvr_api.so.meta
- package\Runtime\x86\libopenvr_api.so.dbg.meta
Unhandled log message: '[Error] Asset Packages/com.valvesoftware.unity.openvr/Runtime/x86/libopenvr_api.so has no meta file, but it's in an immutable folder. The asset will be ignored.'. Use UnityEngine.TestTools.LogAssert.Expect
My workaround
- Unzipped the zip
- Let Unity create the meta files
- Discarded any other changes Unity made but those meta files (easy when using git)
- Reziped the package as tgz
hi, i encounterd the same error. some questions about your workaround?
- the zip file is the master zip from this github page?
- and then copy the content to my project folder?
- do i need to delete the steamvr folder or just overwrite the files?
- what packaged need to rezipped as tgz?
thank you for helping.
hi, i encounterd the same error. some questions about your workaround?
- the zip file is the master zip from this github page?
- and then copy the content to my project folder?
- do i need to delete the steamvr folder or just overwrite the files?
- what packaged need to rezipped as tgz?
thank you for helping.
-
If you use the .unitypackage from 2.8.0 release You will see that there is a file
com.valvesoftware.unity.openvr-1.2.1.tgzthat is added to the packages onPackages/manifest.json"com.valvesoftware.unity.openvr": "file:../Assets/SteamVR/OpenVRUnityXRPackage/Editor/com.valvesoftware.unity.openvr-1.2.1.tgz",This zip file is a unity package itself and inside of it
package\Runtime\x86\libopenvr_api.sois without a metafile. I just unzipped it added a meta file for those 2 files zipped it as tar file with 7z and then gzipped the tar with 7z and renamed it to.tgz- No need to have any change but the
com.valvesoftware.unity.openvr-1.2.1.tgzitself.
- No need to have any change but the
-
No need to delete anything
-
Your local extracted content of
com.valvesoftware.unity.openvr-1.2.1.tgzthat has the meta files added manually.
I'm confused why this is still an issue
I have the same problem. No meta files in the folder x86 for windows. How can I generate these files?
I have the same problem. No meta files in the folder x86 for Windows. How can I generate these files?
You can see my answer above https://github.com/ValveSoftware/steamvr_unity_plugin/issues/1107#issuecomment-1909835386
Basically, I unpacked the package, opened it in Unity, and let it generate the file. and re-zipped the package.
I already unpacked and opened in unity but how do you regenerate the files?
I already unpacked and opened in unity but how do you regenerate the files?
Unity should generate the file for you if you open it in a project, I use git to see the diff, it helped me locate the file if I remember correctly.
just packed the same unpacked folder back to a tar file or something and replaced it, and it worked
For me unity gives error : no meta files for the files mentioned above and does not regenerate them😕 Even after I unzip and open in the project. Thank you for your response
This is the libopenvr_api.so.meta link https://www.dropbox.com/scl/fi/tbiyf90rje96yibqr14tz/libopenvr_api.so.meta?rlkey=a63artnplm8qhbcf6y7cwhd0r&dl=0
Add it to the right path (of course unzip then re-zip)
Here is my com.valvesoftware.unity.openvr-1.2.1.tgz https://www.dropbox.com/scl/fi/ylbudx4cjgxfs9rc41f9z/com.valvesoftware.unity.openvr-1.2.1.tgz?rlkey=susbp2f7wkincav5rea2aposf&dl=0
For me unity gives error : no meta files for the files mentioned above and does not regenerate them😕 Even after I unzip and open in the project. Thank you for your response
Thanks @kfird214 this worked for me.
Edit _Steps I did:
- Find the files
- To unzip and re-zip I created a folder somewhere else
- Copy the two files "libopenvr_api.so" and "libopenvr_api.so.dbg" into that new folder
- Unzip these files into their own directory named like the file (I use 7-zip on Windows, so rightclick -> Extract to "libopenvr_api.so"
- Now there is a folder with all the unpacked files inside. Go into this folder and select all files and zip them again.
- Rename the zip to the original file name
- Copy this file back to where you found the original
- "libopenvr_api.so.dbg" will not unpack on Windows10 (with 7-Zip), when you have "libopenvr_api.so" in the same directory. So put the file somewhere alone to unzip and zip again.
This fixed the error. I was able to build and run the application without problems. Thanks again and sorry for repeating what you said with maybe too many words.
Maybe Unity can not unzip and read those files? Maybe something went wrong with the compression? Would love to see this fixed._
Edit: No, did not work, yesterday no errors but closing and reopening the project showed errors again. Now I downloaded @kfird214 files and replaced the ones that made trouble. Seems to work now.
Edit 2: No, it comes back if I close the project and open it again. This needs some fix.