Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kfird214 opened this issue Jan 24, 2024 · 12 comments
Open

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

kfird214 opened this issue Jan 24, 2024 · 12 comments

Comments

@kfird214
Copy link

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
@muraqqi
Copy link

muraqqi commented Jan 25, 2024

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
Copy link
Author

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
Copy link

I'm confused why this is still an issue

@irmakoz1
Copy link

irmakoz1 commented May 24, 2024

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

@kfird214
Copy link
Author

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 #1107 (comment)

Basically, I unpacked the package, opened it in Unity, and let it generate the file. and re-zipped the package.

@irmakoz1
Copy link

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

@kfird214
Copy link
Author

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
Copy link

irmakoz1 commented May 28, 2024

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
Copy link
Author

kfird214 commented Jun 4, 2024

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
Copy link

elwes commented Jun 5, 2024

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
Copy link

HilaryDeBlick commented Aug 30, 2024

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
Copy link

AdamBebko commented Sep 7, 2024

@HilaryDeBlick 's fix worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants