Jump to content

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?

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...