Adding a Dependency
So you have an addon for another addon
that seems to be getting overwritten?
or maybe a mod that just doesnt show now and then?
One possible reason may be the load
order,
and one possible solution may be to
add a 'dependency' to your mod's manifest.json
for this example lets say we are making a mod for the Cabri,
and so i want to make sure its loading first
here i have already edited the manifest.json to reflect my new
addon
{
"dependencies": [],
"content_type": "MISC",
"title": "Cabri
G2 Mod",
"manufacturer":
"EzMods",
"creator":
"EzRyder",
"package_version": "1.0.0",
"minimum_game_version": "1.30.12",
"release_notes":
{
"neutral": {
"LastUpdate": "",
"OlderHistory": ""
}
},
"total_package_size":
"00000000000000020835"
}
first i will open up the Square
Brackets that will encapsulate the dependency comment
{
"dependencies": [
],
"content_type": "MISC",
"title":
"Cabri G2 Mod",
"manufacturer": "EzMods",
"creator":
"EzRyder",
"package_version": "1.0.0",
"minimum_game_version": "1.30.12",
"release_notes": {
"neutral": {
"LastUpdate": "",
"OlderHistory": ""
}
},
"total_package_size": "00000000000000020835"
}
next i copy/paste a dependency from
any default game package in the Official folder
I tend to grab the one from the c208 simply because its at the top of
the list alphabetically
(be sure to watch the punctiation, a
missing comma or an extra one can bork everything)
{
"dependencies": [
{
"name":
"fs-base-propdefs",
"package_version": "0.1.2"
}
],
"content_type": "MISC",
"title": "Cabri G2 Mod",
"manufacturer": "EzMods",
"creator": "EzRyder",
"package_version": "1.0.0",
"minimum_game_version":
"1.30.12",
"release_notes": {
"neutral": {
"LastUpdate": "",
"OlderHistory":
""
}
},
"total_package_size":
"00000000000000020835"
}
now we have to edit this new section
to match our project
{
"name":
"fs-base-propdefs",
<-- this will be the
name of the Main Addon Folder of the target addon
(the folder found Directly in Community or
Official that contains the manifest and layout)
"package_version": "0.1.2"
<-- this
is the version number of the Package found in the manifest of the
target addon
}
the main addon folder for the Cabri is
found in the Official\OneStore directory (ms store install)
and its named
"asobo-aircraft-cabri-g2"
inside this we find the manifest with
the version number of "0.1.11" (at the time of this writing)
so we use those to fill in our
dependency and we end up with this
{
"dependencies": [
{
"name": "asobo-aircraft-cabri-g2",
"package_version": "0.1.11"
}
],
"content_type": "MISC",
"title":
"Cabri G2 Mod",
"manufacturer": "EzMods",
"creator":
"EzRyder",
"package_version": "1.0.0",
"minimum_game_version": "1.30.12",
"release_notes": {
"neutral": {
"LastUpdate": "",
"OlderHistory": ""
}
},
"total_package_size": "00000000000000020835"
}
theoretically this will force the
Cabri to load before my addon :P
i make no promises but many times it
will work for mod on mod issues
and will work for target mods found in
the Community folder just as well
For questions, comments, feedback or
Suggestions you may email me or jump into my discord
you may be interested in quite a few
howto videos on my youtube page found here
Donations are Never
Required, but if you wish to help an old Carpenter create more
content it will be Greatly Appreciated