Dream and VIO are not compatible. And both me and Kamer are bombarded with bug reports ever since...
It because VIO makes changes in the sprite atlas and swaps things around. And Dream uses modded high-res sprites, and they are - since modded - not in that atlas anymore, but somewhere else.
Thats what I understand is going on.
Is that even right?
Is there any chance some change either in DFU or VIO or DREAM can change this situation?
I would have to see the code, but he should be able to change out the code that swaps the atlas changes with code that grabs your hi-res sprites from whatever object/path they are held at/in. Null errors will continue to hit your mods until VIO loads your mod objects/hi-res sprites and updates the billboard swapping code to grab your sprite objects instead of the atlas objects.
Magicon had this issue in a different way with my mod. We had to load my mod raw scripts via namespace, so his mod had access to my objects for use in his CalculateAttackDamage formula code/object. Sounds like the same issue of not having access to your objects and not having a coded patch that pulls your sprite objects in place of the default atlas ones.
King of Worms wrote: ↑Sun Dec 20, 2020 6:03 pm
Is there any chance some change either in DFU or VIO or DREAM can change this situation?
Maybe Kamer can use a different approach when custom textures are available. For example mod authors can override and take control of NPCs look by extending MobilePersonAsset. I might be able to give a more on point answer with precise information on how VIO works.
Mod System documentation - Learn how to create mods for Daggerfall Unity. Modder Discussion - General help and discussion for the mod system. Github Issues - Submit a bug report for the game, including the mod system.
King of Worms wrote: ↑Sun Dec 20, 2020 6:03 pm
Is there any chance some change either in DFU or VIO or DREAM can change this situation?
Maybe Kamer can use a different approach when custom textures are available. For example mod authors can override and take control of NPCs look by extending MobilePersonAsset. I might be able to give a more on point answer with precise information on how VIO works.
Its just one line that changes the mseh of the Gameobject.
King of Worms wrote: ↑Sun Dec 20, 2020 6:03 pm
Is there any chance some change either in DFU or VIO or DREAM can change this situation?
Maybe Kamer can use a different approach when custom textures are available. For example mod authors can override and take control of NPCs look by extending MobilePersonAsset. I might be able to give a more on point answer with precise information on how VIO works.
Its just one line that changes the mseh of the Gameobject.
If custom texture exists, material.mainTexture should be a single texture instead of an atlas, so you should be able to handle these two cases as needed.
Mod System documentation - Learn how to create mods for Daggerfall Unity. Modder Discussion - General help and discussion for the mod system. Github Issues - Submit a bug report for the game, including the mod system.