Jump to content


Photo

Dependency on 1PP extended palette


  • Please log in to reply
2 replies to this topic

#1 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 22 April 2021 - 05:45 AM

Hello.

 

I've written a mod component that requires 1PP Extended Palette to be installed, however I have never coded a dependency on another mod.

 

How do I tell my component not to install unless 1PP Extended Palette is installed first?



#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5150 posts

Posted 22 April 2021 - 05:52 AM

Here's how the Longer Road mod requires the Ascension...

BEGIN @0 LABEL "LongerRoad-Main"
//REQUIRE_COMPONENT ~Ascension.tp2~ 0 @120
REQUIRE_PREDICATE MOD_IS_INSTALLED "Ascension.tp2" (ID_OF_LABEL "Ascension.tp2" "Ascension-RewrittenFinalChapterOfToB" ) @120


The @120 is the text that explains the requirement...


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 Andrea C.

Andrea C.
  • Modder
  • 458 posts

Posted 23 April 2021 - 03:11 AM

Thanks!