Editing Modding:Dependencies
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
|description=This page is a hub for everything related to Modding Baldur's Gate 3. Check out the following guides to learn how to mod BG3. | |description=This page is a hub for everything related to Modding Baldur's Gate 3. Check out the following guides to learn how to mod BG3. | ||
|image=Modding_resources.webp | |image=Modding_resources.webp | ||
}}{{ | }}{{NavModding}} | ||
== What is a | == What is a Dependency? == | ||
A dependency | A dependency when it comes to the game or modding is to tell the game that your pak depends on something from the referenced pak. So when we want to reference an asset from a defined pak say from the SharedDev.pak and we make our pak and the asset doesn't show, well if we were to make our mod have the dependency of the SharedDev.pak it will tell the game that is where some of the assets referenced are coming from. | ||
== Why do we want to use | == Why do we want to use Dependencies? == | ||
So if we make a head mod that references a vanilla ID | So if we make a head mod that references a vanilla ID and the head shows up checkered we can fix that "bug" by making our mod dependent on the pak that material comes from. This way we don't have to copy and paste MaterialBanks/TextureBanks from the game files to fix these "bugs." | ||
Or if we want to make a class mod and want to add an ability from another mod, after getting permission we would make our mod dependent on that mod. That way when both are installed our class mod would be able to use that ability without having to actually include it in our mod itself. | |||
Or | |||
== Example == | == Example == | ||
In this extract from the | In this extract from the games GustavDev meta this is saying the GustavDev pak is dependent on the SharedDev pak and the Gustav pak | ||
[[File:GustavDev Dependencies.webp]] | [[File:GustavDev Dependencies.webp]] | ||
== Adding Dependencies to Mod Paks == | == Adding Dependencies to Mod Paks == | ||
So | So using the example above the image below expands upon that and shows what lines are used from the original pak to make the dependencies section. You may need to open the image to see it in its full size. | ||
[[File:Pak_Dependencies.webp|1000px]] | [[File:Pak_Dependencies.webp|1000px]] | ||
As code you can copy into your meta for a base. Copy this over the <b><node id="Dependencies"></b> line. | As code you can copy into your meta for a base. Copy this over the <b><node id="Dependencies"></b> line. | ||
<br> | <br> | ||
<node id="Dependencies"> | <node id="Dependencies"> | ||
Line 64: | Line 60: | ||
If you wish to make sure your mod is loading assets from the vanilla paks correctly you can make them dependent on the below paks. | If you wish to make sure your mod is loading assets from the vanilla paks correctly you can make them dependent on the below paks. | ||
<big>Shared</big> | <big>Shared</big> | ||
Line 105: | Line 99: | ||
<attribute id="Version64" type="int64" value="144255927711717104"/> | <attribute id="Version64" type="int64" value="144255927711717104"/> | ||
</node> | </node> | ||
[[Category:Modding resources]] | [[Category:Modding resources]] |