steamvr_unity_plugin icon indicating copy to clipboard operation
steamvr_unity_plugin copied to clipboard

com.valvesoftware.unity.openvr-1.2.1.tgz missing meta files

Open kfird214 opened this issue 1 year ago • 12 comments

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

kfird214 avatar Jan 24 '24 14:01 kfird214

hi, i encounterd the same error. some questions about your workaround?

  1. the zip file is the master zip from this github page?
  2. and then copy the content to my project folder?
  3. do i need to delete the steamvr folder or just overwrite the files?
  4. what packaged need to rezipped as tgz?

thank you for helping.

muraqqi avatar Jan 25 '24 07:01 muraqqi

hi, i encounterd the same error. some questions about your workaround?

  1. the zip file is the master zip from this github page?
  2. and then copy the content to my project folder?
  3. do i need to delete the steamvr folder or just overwrite the files?
  4. what packaged need to rezipped as tgz?

thank you for helping.

  1. 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.tgz that is added to the packages on Packages/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.so is 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

    1. No need to have any change but the com.valvesoftware.unity.openvr-1.2.1.tgz itself.
  2. No need to delete anything

  3. Your local extracted content of com.valvesoftware.unity.openvr-1.2.1.tgz that has the meta files added manually.

kfird214 avatar Jan 25 '24 10:01 kfird214

I'm confused why this is still an issue

PixelDrennen avatar Mar 23 '24 04:03 PixelDrennen

I have the same problem. No meta files in the folder x86 for windows. How can I generate these files?

irmakoz1 avatar May 24 '24 09:05 irmakoz1

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.

kfird214 avatar May 26 '24 08:05 kfird214

I already unpacked and opened in unity but how do you regenerate the files?

irmakoz1 avatar May 27 '24 10:05 irmakoz1

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

kfird214 avatar May 27 '24 16:05 kfird214

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

irmakoz1 avatar May 28 '24 08:05 irmakoz1

explorer_1NXmCcO0sB

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

kfird214 avatar Jun 04 '24 16:06 kfird214

Thanks @kfird214 this worked for me.

Edit _Steps I did:

  1. Find the files
  2. To unzip and re-zip I created a folder somewhere else
  3. Copy the two files "libopenvr_api.so" and "libopenvr_api.so.dbg" into that new folder
  4. Unzip these files into their own directory named like the file (I use 7-zip on Windows, so rightclick -> Extract to "libopenvr_api.so"
  5. Now there is a folder with all the unpacked files inside. Go into this folder and select all files and zip them again.
  6. Rename the zip to the original file name
  7. Copy this file back to where you found the original
  8. "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.

elwes avatar Jun 05 '24 00:06 elwes