-
Notifications
You must be signed in to change notification settings - Fork 22
Description
We have several versions of AGX for several versions of Unity for several long-term projects.
I install the new version without uninstalling the previous (aware of the problems that could lead to leaving the registry values with the old values) because I want to keep the dlls of both versions.
When I open my project, I see a green log message:
New version of agxDotNet.dll located in: C:\Program Files\Algoryx\AGX-2.24.0.2\bin\x64. Copying it to current project
It detects that the version is different, deletes the new dll I copied by hand, and copies the one it thinks is the best, but not the last I installed. This is maybe a little obscure specially when you have a lot of log messages after opening a project, and this can be ignored easily, possibly breaking your project with no clue of what happened.
After this, I install the new version, uninstalling the previous. Open my project, and does nothing.
Then, I do it by hand: Go to that folder, remove the previous .dll and .meta, paste the new one and return the focus to the Unity window again and now, detects the dll, compiles, and suddenly it still detects the previous version again, not the newest, removes the dll I put by hand and copies the old one. This looks like a bug.
I have some suggestions:
- Installing a new agx version without uninstalling the previous one should be an option and we should be warned about what would happen doing so. There's many situations where a project could use several versions in different projects.
[EDIT] Just a little problem with the installer. Seems that when you install a new version without uninstalling the old one (say v1 and v2), then you have v1 and v2. Then you install v2 again, it tells you to uninstall the previous one... v2... NOT v1. So v1 stays there forever. It should get rid of all older versions or leave them but update all registry and environment vars.
-
Copying a dll automatically is nice if your project is small and cutting edge, but not when you have several projects stalled in different versions of AGX. This should be told as an error or warning, in a different color if you will, but not do it automatically. Instead, we could have a button on the AGX menu to update the dll version. In our case, 2017.4 has a very experimental version of .Net 4, this dll update would subsequently crash Unity without changing this option. In fact, AGXUnity and AGX version pairs should be detected, and the update menu should give us the option to select which AGX version we want, including which version of AGXUnity is compatible with each. That would be really useful and less obscure, but maybe a less complicated way would be enough.
-
Uninstalling an AGX version shouldn't remove the .dlls needed for the projects or anyhting usable, in my opinion, so that you can keep all versions there. But that's optional.