Modded DLCs Framework

If you liked this item, please rate it up on Steam Workshop page.

Author: 1230james

Last revision: 24 May at 04:54 UTC (3)

File size: 247.39 KB

On Steam Workshop

Description:
Modded DLCs Framework

Information for Everyone

MDF is a framework mod, meaning it’s supposed to be used by other mods you may be using as a basis for a certain feature. In this case, that feature is displaying fake, mod-added DLCs in the main menu as active DLCs.

Specifically, MDF edits the DLC frontend GUI file to allow mod DLCs to be correctly presented. All mod DLCs will always show as active (as opposed to always being inactive, since fake DLCs can’t be verified, obviously) and will have a slightly different tooltip to indicate they’re mod content.

It should be noted that MDF ITSELF DOES NOT ADD NEW DLCs. MDF also does not force enable or disable any features of real DLCs.

The Community Mod Framework includes MDF in its releases. If you have the CMF mod already, you do not need to install MDF.

Information for Players

If a mod or multiple mods you are using requires this mod to be installed, please follow instructions on those mods, if provided.

MDF should otherwise be able to be placed anywhere due to it leveraging specific mod-loading behaviors of Vic3 that makes it largely agnostic to playset orders.

Information for Modders

MDF is best integrated into your mod by requiring players to install MDF separately.

For correct usage, your mod requires a DLC metadata definition in the dlc_metadata directory. If all you are trying to do is create a fake DLC to use in the main menu and in events, then this is all that is required besides adding localizations for your DLC and an icon in

gfx/interface/icons/dlc_icons

MDF will handle the rest.

If you are using MDF for Vic3 1.12 or older:
The file you define it in must load after all vanilla definitions for the modded GUI logic to work correctly. The easiest way to do this is to have the name of your file start with any alphabetic character. Your fake DLC also MUST by marked as a minor DLC.

If you are using MDF for Vic3 1.13 or newer:
For the 1.13 udpate, MDF was refactored to do its real DLC checks based on DLC names instead of number of DLCs. This now makes it agnostic to the loading order of DLC metadata definitions and it allows mod DLCs to be marked as major DLCs. You do not need to ensure your DLC metadata file loads after the base game’s & are allowed to mark your DLCs as major.

MDF provides changes to the following files:

gui/frontend/frontend_dlc.gui

MDF implements its changes in its own file to take advantage of Vic3 loading behavior and enforce its changes over other mods. If your mod makes changes to the same file, you may find that MDF overwrites changes your mod have made. In those cases, you should either integrate MDF’s changes manually or create a compatibility patch.

MDF can be placed anywhere in the user’s playset for correct functionality. All you have to do is go and add your fake DLC in your mod, and MDF will handle the rest.

Permissions

YES, you may include this mod in any modpacks/collections/whatever.
YES, you may embed this mod into any mods you are creating, as well as making whatever tweaks are necessary for it to work with your mod. Credit and a link back here would be very much appreciated!

Links

Victoria 3 Modding Co-op Discord server[discord.gg]

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.