SpoonyBardIV Posted May 12, 2023 Share Posted May 12, 2023 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 https://forums.kleientertainment.com/forums/topic/147748-how-do-i-make-a-mod-compatible-with-all-dlcs/ Share on other sites More sharing options...
Rickzzs Posted May 13, 2023 Share Posted May 13, 2023 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 https://forums.kleientertainment.com/forums/topic/147748-how-do-i-make-a-mod-compatible-with-all-dlcs/#findComment-1634735 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now