xenko
xenko copied to clipboard
Multiple Assemblies (Reloaded)
This topic is similar to, but distinct from https://github.com/SiliconStudio/xenko/issues/390. I don't know how your policy on issue topics is, feel free to merge these two, or ask me to reopen the old one.
Tested Xenko Editor Studio Versions: 1.8.1 and 1.8.2
Steps to reproduce
- Start a new Xenko Project with default settings
- Add a second assembly with "Update Package > Add Code Library". (again default settings)
- Reference <ProjectName>.MyLibrary from the <ProjectName>.Windows assembly (which I forgot in issue #390, but this time I double checked)
- Create an abstract script component "Parent" that inherits from, e.g. StartupScript (doesn't matter) in <ProjectName>.MyLibrary
- Reference <ProjectName>.MyLibrary from the <ProjectName>.Game assembly
- Create a script that inherits from the Parent class, e.g. "Child"
- Add the "Child" Component to an entity in a prefab or scene.
- Build the project twice
Behavior
There are three types of errors, all seemingly related.
- Sometimes the serializer goes down, with the inner exception saying "Could not find parent serializer for type ThreeDee.MyLibrary.Child"
- Other times a seemingly related error occurs (exception details below) saying that the "Parent" type could not be loaded.
- This setup also tends to bring the whole editor down at points where (I assume) (de)serialization happens, e.g. project (re)load and component adding/removing.
Git Repo
The repository is the same as in the last issue (https://github.com/jason-wilmans/xenkoMultipleAssemblies.git). I tagged the commit with the current example '#466', the old one with '#390'.
Thanks for the report. I could reproduce your issue.
Apparently the problem only occurs when a script inherits from another that is in a different code library. I could not reproduce if the derived script was in the same code library.
We will look into it and fix it in a future release.
Apparently the problem only occurs when a script inherits from another that is in a different code library
Yeah that was the behavior for me, too. Forgot to write that.
We will look into it and fix it in a future release
That's great! I really began to feel stupid, because I was thinking it was my error (because it was so close to the old issue). Looking forward :).
@Kryptos-FR Has this issue been fixed? I think that https://github.com/SiliconStudio/xenko/issues/665 is related to this issue.
@stefnotch I don't remember if it was. Better ask @xen2 .
@xen2 Has this issue been fixed? I think that #665 is related to this issue.