The13thCat Posted June 10, 2016 Share Posted June 10, 2016 Hi everyone J, I have a little problem with adding the compatibility for the two DLCs in my mod. For my character mod I need to alter the bird-prefab and everything is working as wanted in the base-Game. But as Reign of Giants and especially Shipwrecked also have their own bird prefabs, I need to differ between these three cases (base game, RoG, SW). At first I thought that simply copying the structure from the DS data folder and adding folders like DLC0001 and DLC0002 would help and that the system would simply take the scripts from these when the base game isn't used. I discovered that this was sadly not the case, and currently I try to find a simple If condition to differ between the base game, RoG and Shipwrecked. I have the feeling, that it is really simply, but I really couldn't find any solution to this. I apologize if there was already another thread with this problem; I really searched through this forum and the internet and nothing worked or really solved my problem. I’m thankful for every help and ideas how I could solve this . Link to comment https://forums.kleientertainment.com/forums/topic/68060-dlc-specific-prefabs/ Share on other sites More sharing options...
Aquaterion Posted June 10, 2016 Share Posted June 10, 2016 this is DST mod forums not DS Link to comment https://forums.kleientertainment.com/forums/topic/68060-dlc-specific-prefabs/#findComment-781962 Share on other sites More sharing options...
CarlZalph Posted June 10, 2016 Share Posted June 10, 2016 To determine if a DLC is enabled you may use, for single player Don't Starve: if(GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS)) then end if(GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)) then end : Link to comment https://forums.kleientertainment.com/forums/topic/68060-dlc-specific-prefabs/#findComment-781969 Share on other sites More sharing options...
The13thCat Posted July 18, 2016 Author Share Posted July 18, 2016 Oh gosh, sorry - I indeed wrote in the wrong forum. Nonetheless, many thanks for the answer and help CarlZalph! This is going to help me so much - again many, many thanks! And sorry for writing in the wrong forum . Link to comment https://forums.kleientertainment.com/forums/topic/68060-dlc-specific-prefabs/#findComment-794462 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