#Circular Dependencies

14 messages · Page 1 of 1 (latest)

blazing wigeon
#

I have a situation, where I am working on mod A, which is a dependency of Mod B.
I want to use functionality of mod B in mod A.
Everest does not like me adding mod B as a dependency to mod A.

is there a way to get around this?
What I don't know if it is possible is:

  • can I use stuff from other mods without them being a dependency?
  • is there even an intended way to get around this?
grand flare
#

Why would you need two mods depending on one another? Cant you make one have both mods in it?

#

Sorry if it comes out wrong

blazing wigeon
#

both mods are preexisting and have different purposes

grand flare
#

Oh

blazing wigeon
#

I should have probably mentioned I am adding to BingoUI and BingoClient depends on that

grand flare
#

Ok so bingo client needs bingoUI
And you are trying to make bingoUI depend on BingoClient?

blazing wigeon
#

I am trying to use functionality from BingoClient in BingoUI

grand flare
#

I think the way I'll go about it is making one having an optional dependency

#

Though im not familiar with doing stuff like this

#

You should ask in code modding i believe someone in there knows how to

blazing wigeon
#

the problem I ran into with that was that BingoVlient was loaded before BingoUI, so the modules load function didn't set up suff I needed

#

will do

graceful carbon
#

well, one Load has to be called before the other no matter what
you might want Initialize which happens after every mod's Load was called