alks Posted May 1, 2014 Share Posted May 1, 2014 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. Link to comment https://forums.kleientertainment.com/forums/topic/35772-question-about-mod-compatibility-with-dlc/ Share on other sites More sharing options...
_Q_ Posted May 1, 2014 Share Posted May 1, 2014 (edited) 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 stuffendThere is some function to check that at worldgen. Edited May 1, 2014 by _Q_ Link to comment https://forums.kleientertainment.com/forums/topic/35772-question-about-mod-compatibility-with-dlc/#findComment-468069 Share on other sites More sharing options...
simplex Posted May 1, 2014 Share Posted May 1, 2014 There is some function to check that at worldgen. Yes, and it's also called IsDLCEnabled, and used the same way. Link to comment https://forums.kleientertainment.com/forums/topic/35772-question-about-mod-compatibility-with-dlc/#findComment-468086 Share on other sites More sharing options...
alks Posted May 2, 2014 Author Share Posted May 2, 2014 I saw this function, but I was wandering if there is the way to separate files. I guess I'll have to use this functions. Thanks for help. Link to comment https://forums.kleientertainment.com/forums/topic/35772-question-about-mod-compatibility-with-dlc/#findComment-468261 Share on other sites More sharing options...
Rincevvind Posted May 2, 2014 Share Posted May 2, 2014 i am "separating" like thislocal 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 Link to comment https://forums.kleientertainment.com/forums/topic/35772-question-about-mod-compatibility-with-dlc/#findComment-468265 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