Hopefully this is the last time you have to do anything but click a single button to upgrade as I now have a button in the Tools menu to click to automatically do this in the future.
Just remove the old one from the Package Manager and add it again.
- In the Unity Editor click
Window > Package Manage
then in theIn Project
section find GTAvaCrypt, select it and clickRemove
in the lower right. - In the Package Manager window click the
+
in the upper left corner and selectAdd package from git url...
and then pastehttps://github.com/rygo6/GTAvaCrypt.git
in the field and clickAdd
.
If you get an error about git not being installed, you may need to install the git package from here: https://git-scm.com/
Upgrade should be relatively painless and not break anything. Future upgrades from here should be even simpler as it no longer uses an altered poiyomi and installs through the package manager.
- Delete the entire GTPoiyomiToon folder and import the official package from https://github.com/poiyomi/PoiyomiToonShader.
- Delete the old GTAvaCrypt folder.
- In the Unity Editor click
Window > Package Manager
. Then in the Package Manager window click the+
in the upper left corner and selectAdd package from git url...
and then pastehttps://github.com/rygo6/GTAvaCrypt.git
in the field and clickAdd
. This will clone the package via the Package Manager into the Package folder.
If you get an error about git not being installed, you may need to install the git package from here: https://git-scm.com/
If you are upgrading from V1 you will want to clear out everything previously related. This is not a small delta change, many things are fundamentally changed. Also it is made to work with the latest Poiyomi which has also introduced significant changes since V1.
- Select your avatar and delete the AvaCryptRoot V1 component.
- Delete the AvaCrypt key entries from your VRCExpressionParameters.
- Remove the AvaCrypt key menu from VRCExpressionsMenu.
- Delete the entire GTAvaCrypt folder and the entire GTPoiyomiShader folder. Please note that this did upgrade to use the latest Poiyomi, so when you pull in the new Poiyomi all your shader refs will be broken! But if you go to each material and select the new version under '.poiyomi/PoiyomiToon' it should repopulate the new shader with however you had it configured previously.
- After you install the new packages, there is a new button on the AvaCryptV2Root component under the 'Debug' foldout at the bottom of it that says 'Delete AvaCryptV1 Objects From Controller'. This should delete all the old AvaCryptV1 layers and blend trees. But still go into the FX AnimatorController and delete any old AvaCrypt keys or layers. You can also delete all the 'AvaCryptKey0' 'AvaCryptKey100' animation files it generated next to your controller.