Page 2 of 2

Re: Help us make VIO and DREAM actually compatible

Posted: Thu Feb 18, 2021 12:28 am
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.

Re: Help us make VIO and DREAM actually compatible

Posted: Fri Feb 19, 2021 10:50 pm
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.

Re: Help us make VIO and DREAM actually compatible

Posted: Sat Feb 20, 2021 2:29 am
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.

Re: Help us make VIO and DREAM actually compatible

Posted: Sat Feb 20, 2021 9:39 pm
by Kamer
Just so you know I have a solution for how VIO currently works and am able to detect DREAMS.

Re: Help us make VIO and DREAM actually compatible

Posted: Tue Feb 23, 2021 12:34 am
by l3lessed
Great jobs man.

Re: Help us make VIO and DREAM actually compatible

Posted: Wed Feb 24, 2021 12:46 am
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?

Re: Help us make VIO and DREAM actually compatible

Posted: Wed Feb 24, 2021 9:54 am
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.

Re: Help us make VIO and DREAM actually compatible

Posted: Thu Mar 25, 2021 6:48 am
by Nater
Any updates on this?