On Linux, Build and Test doesn't produce a built avatar
tracked
lnnercat
OS: Arch Linux (but any Linux would get the same results)
Unity 2022.3.22f1
Unity project managed by ALCOM (a cross platform open-source alternative to VCC)
VRChat SDK version is 3.8.2
Summary
Setting
Build Type
to Build & Test Your Avatar
in the VRC SDK window, then clicking Build & Test
does not place the new avatar inside %LocalAppdata%Low\VRChat\VRChat\Avatars
(as per documentation), and it is thus impossible to locally test avatars.Why
This happens because that directory does NOT exist on Linux; the virtual C: drive created for VRChat by Steam is inside its specific proton prefix, and as such the right path is more likely to be located near
/path/to/SteamLibrary/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/Avatars/
.This path is not right for every VRChat installation, because Steam allows for multiple game drives.
Solutions
I see two potential solutions; one of them requires fewer changes and is less practical for users :
- After building an avatar for testing, if the environment is Linux, provide users the path to the compiled avatar asset so that they can move it over to the right folder manually
- If the environment is Linux, inside the VRC SDK window, in the settings tab, add possibility to set the path to either the root of the virtual C: drive, or just to the folder where the user wants to export their testing avatars
Please, please do ask more info if you need it, I will happily provide them, and I'd be happy to see this bug fixed
I have found the location, it is inside .local/share/VRChat/VRChat/Avatars/, I have not seen that documented anywhere, maybe updating the docs would be nice... ~~Also if you just give me the path to the compiled avatar I'd be happy, I really wanted to test it out so...~~
Also, I would gladly fix it myself if the sdk was open source... is that planned ? Is it forbidden, in the meantime, to go and decompile and fix stuff for myself ? What about publishing fixed dlls ?
Log In
White Lotuz
Merged in a post:
Building a test avatar on Unity for Linux leads to an invalid directory
SereneMango
OS: Linux Mint 22.1
Unity 2022.3.22f1 LTS
Merely clicking Build & test I get the following error: https://pastebin.com/4118mBi5
I assume it's looking up for a directory that only Windows can understand. I assume the Linux equivalent could be this (excluding the "deck" folder): https://www.reddit.com/r/SteamDeck/comments/wzf20a/comment/im2phpk/
Stellaruz
Gracias a tu post puedo hacer mi trabajo más comodo en Linux (Ubuntu).
Todavia estoy frezco en este entorno. Encontré como hacer Enlaces simbolicos (symlink).
Entonces en
.local/share/Steam/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/appdata/locallow/vrchat/Avatars/
borro/renomgro la carpeta Avatar, y en su lugar creo un symlink nombrado Avatar hacia
.local/share/VRChat/VRChat/Avatars/, donde generan los avatares para pruebas locales offline y funciona perfectamente.
lnnercat
Stellaruz Yw, np !
Yep, you're right ! In the meantime, a quick patch could be to symlink
/home/$USER/.local/share/VRChat/VRChat/
with the path where Steam has installed VRC. If it's on the main partition then
/home/$USER/.local/share/steam/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/Avatars
else whereever the drive is mounted, for me it's
/run/media/$USER/partition-name/SteamLibrary/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/
After that, you'll need to delete
/home/$USER/.local/share/VRChat/VRChat/
so check that there's nothing you'll miss here (i.e. old avatars or worlds you built in the past) :rm -rf "/home/$USER/.local/share/VRChat/VRChat/"
then crate the symlink :
ln -s /path/to/steamapps/compatdata/438100/pfx/drive_c/users/steamuser/AppData/LocalLow/VRChat/VRChat/ "/home/$USER/.local/share/VRChat/"
(you need to update the /path/to in the first path)
That way, when trying to access
/home/$USER/.local/share/VRChat/VRChat/
you'll actually read/write to the actual vrc folder, including the Avatars folderThis post was marked as
tracked
lnnercat
yay
lnnercat
This is mostly fixed by https://github.com/BefuddledLabs/LinuxVRChatSDKPatch by the way. But a real fix would be better
lnnercat
This comment is outdated and factually incorrect ! Please read the bug report instead
(the comment was an answer to something something unity could not launch the game)
Hey, so I had the same issue and did solve it : just set the vrchat .exe path in the VRC sdk window and you won't get that error anymore.
But still, testing avatars don't work because I guess there is no %LocalAppdata%Low\VRChat\VRChat\Avatars (as described by https://creators.vrchat.com/avatars/#local-avatar-testing )
The problem probably comes from the fact that vrc sdk can't find the folder because it expects a windows filsesystem, and so we just don't get an output. I'll open a new issue on this
We would need to be able to provide an export path for Local Avatar Testing; or at least, to know where VRC SDK puts the built files, so that we can move them over to the relevant proton prefix
OS: Arch linux, Unity 2022.3.22f1
This comment is outdated and factually incorrect ! Please read the bug report instead
lnnercat
I have opened a bug report at https://feedback.vrchat.com/sdk-bug-reports/p/on-linux-build-and-test-doesnt-produce-a-built-avatar