Jump to content

How do I make a mod compatible with all DLCs?

Recommended Posts

I mode a mod that modifies forest_map.lua along with a few other files. The issue is that I can only make it work with one DLC at a time, because each DLC has its own separate forest_map.lua and mods can only include one. The file has Hamlet specific code, so the game crashes when I enable the mod for any save that isn't Hamlet compatible. Is there any way around this?

Link to comment
Share on other sites

Check DLC with IsDLCEnabled, and then prepare 4 functions/files to run for each DLC, or patch all functions below Hamlet (this assume a sequential relation among DLCs), or patch DLC-specific lines to run for each DLC with a if statement. This is what I do when porting DST functions.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

  • Create New...