ValveSoftware / steamvr_unity_plugin

SteamVR Unity Plugin - Documentation at: https://valvesoftware.github.io/steamvr_unity_plugin/
BSD 3-Clause "New" or "Revised" License
1.03k stars 256 forks source link

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

Open kfird214 opened 8 months ago

kfird214 commented 8 months ago

The zip file for the package com.valvesoftware.unity.openvr-1.2.1 included with the unity package is missing 2 meta files for:

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

muraqqi commented 8 months ago

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.

kfird214 commented 8 months ago

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.

PixelDrennen commented 6 months ago

I'm confused why this is still an issue

irmakoz1 commented 4 months ago

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

kfird214 commented 4 months ago

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.

irmakoz1 commented 4 months ago

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

kfird214 commented 4 months ago

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

irmakoz1 commented 4 months ago

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 commented 3 months ago

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

elwes commented 3 months ago

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.

HilaryDeBlick commented 1 month ago

For anyone not wanting to go through the hassle of unpacking, generating the missing meta files and repacking. Here is the zipped tar. Just unzip and overwrite the previous tar file with this one at ..\Assets\SteamVR\OpenVRUnityXRPackage\Editor and it should be fixed. com.valvesoftware.unity.openvr-1.2.1.zip

AdamBebko commented 3 weeks ago

@HilaryDeBlick 's fix worked for me.