Help us make VIO and DREAM actually compatible

Discuss modding questions and implementation details.
User avatar
TheLacus
Posts: 1305
Joined: Wed Sep 14, 2016 6:22 pm

Re: Help us make VIO and DREAM actually compatible

Post by TheLacus »

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.

User avatar
Kamer
Posts: 583
Joined: Mon Mar 05, 2018 9:26 pm

Re: Help us make VIO and DREAM actually compatible

Post by Kamer »

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.
It gets the children in the GameObject itself. Not the entire game.

l3lessed
Posts: 1400
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Help us make VIO and DREAM actually compatible

Post by l3lessed »

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.

User avatar
Kamer
Posts: 583
Joined: Mon Mar 05, 2018 9:26 pm

Re: Help us make VIO and DREAM actually compatible

Post by Kamer »

Just so you know I have a solution for how VIO currently works and am able to detect DREAMS.

l3lessed
Posts: 1400
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Help us make VIO and DREAM actually compatible

Post by l3lessed »

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.

l3lessed
Posts: 1400
Joined: Mon Aug 12, 2019 4:32 pm
Contact:

Re: Help us make VIO and DREAM actually compatible

Post by l3lessed »

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.

User avatar
King of Worms
Posts: 4752
Joined: Mon Oct 17, 2016 11:18 pm
Location: Scourg Barrow (CZ)
Contact:

Re: Help us make VIO and DREAM actually compatible

Post by King of Worms »

Kamer wrote: Sat Feb 20, 2021 9:39 pm Just so you know I have a solution for how VIO currently works and am able to detect DREAMS.
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.

Nater
Posts: 1
Joined: Thu Mar 25, 2021 6:44 am

Re: Help us make VIO and DREAM actually compatible

Post by Nater »

Any updates on this?

Post Reply