Jump to content

Recommended Posts

Sorry if this question has already been asked, but can someone tell me, please, how can I separate files for game with DLC and game without DLC inside the mod (for Steam)? Placing files in DLC0001 folder didn't work for me.

 

I'm necroing this because it should've been pinned anyway.

Something others may find useful: checking if the DLC is enabled.

if GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) then    -- stuffelse    -- other stuffend

There is some function to check that at worldgen.

Edited by _Q_

i am "separating" like this

local IsDLC1 = GLOBAL.IsDLCEnabled and GLOBAL.REIGN_OF_GIANTS and GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS)if IsDLC1 then    print ("WULFE : RoG support enabled")    PrefabFiles = {"helpershome","helper","houndfix","evilhound","walrusfix","dlc1walrus_campfix","dlc1pigman","dlc1warg","helpermound"}else    print ("WULFE : RoG support disabled")    PrefabFiles = {"helpershome","helper","houndfix","evilhound","walrusfix","walrus_campfix","pigman","helpermound"}end

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...