The best option remains to extend MobilePersonBillboard as said above.
Alternatively, you can enumerate all mods individually (ModManager.Instance.Mods) and check Mod.HasAsset(). However, this only allow to check against name and not type, meaning that it would return true even if asset with given name is not a texture.
There is no supported way to know if an asset with given name and type is replaced by a mod. I suggested in my previous comment to try to load it with TryGetAsset.
Help us make VIO and DREAM actually compatible
- TheLacus
- Posts: 1305
- Joined: Wed Sep 14, 2016 6:22 pm
- Kamer
- Posts: 583
- Joined: Mon Mar 05, 2018 9:26 pm
Re: Help us make VIO and DREAM actually compatible
It gets the children in the GameObject itself. Not the entire game.l3lessed wrote: ↑Wed Feb 17, 2021 8:44 pm Lastly, your original getchild method is pretty cpu/script wasteful. You are telling it to scan every object loaded into the engine, including non-npc objects, to find the necessary object to swap the texture for. I recommend using the methods provided by the lucas, so it doesn't start bogging down script loads when players add tons of stuff to their build.
-
- Posts: 1405
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Help us make VIO and DREAM actually compatible
Sorry, miss read it. It still waste script load by scanning every component of the object, which modders can add more and more on to the object. versus using the already built methods the lucas provides that grabs the exact component you want.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
- Kamer
- Posts: 583
- Joined: Mon Mar 05, 2018 9:26 pm
Re: Help us make VIO and DREAM actually compatible
Just so you know I have a solution for how VIO currently works and am able to detect DREAMS.
-
- Posts: 1405
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Help us make VIO and DREAM actually compatible
Great jobs man.
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
-
- Posts: 1405
- Joined: Mon Aug 12, 2019 4:32 pm
- Contact:
Re: Help us make VIO and DREAM actually compatible
If you haven't, would you mind posting the scripts some where, so others needing to learn how to detect and import mod packages have a reference?
My Daggerfall Mod Github: l3lessed DFU Mod Github
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
My Beth Mods: l3lessed Nexus Page
Daggerfall Unity mods: Combat Overhaul Mod
Enjoy the free work I'm doing? Consider lending your support.
- King of Worms
- Posts: 4753
- Joined: Mon Oct 17, 2016 11:18 pm
- Location: Scourg Barrow (CZ)
- Contact:
Re: Help us make VIO and DREAM actually compatible
What does this mean tho? That VIO and DREAM can be enabled at the same time and both will be working or u detect dream and disable it or?
Also, as I3lessed said, sharing is caring.
DREAM Nexus https://www.nexusmods.com/users/73250038?tab=user+files
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
DREAM Forums viewtopic.php?f=27&t=1168
DISCORD: king_of_worms_cz
-
- Posts: 1
- Joined: Thu Mar 25, 2021 6:44 am
Re: Help us make VIO and DREAM actually compatible
Any updates on this?