NightKosh Posted December 23, 2015 Share Posted December 23, 2015 Hello.How can I load different files for different versions of game? Is such feature available?I'm trying to update my mod to shipwrecked, and do not break compatibility with RoG at the same time. Link to comment https://forums.kleientertainment.com/forums/topic/61272-load-different-script-files-for-different-game-version/ Share on other sites More sharing options...
ZupaleX Posted December 24, 2015 Share Posted December 24, 2015 You can make a check with IsDLCEnabled([insert_dlc_here])where [insert_dlc_here] can be DLC_CAPY for Shipwrecked or REIGN_OF_GIANTS Link to comment https://forums.kleientertainment.com/forums/topic/61272-load-different-script-files-for-different-game-version/#findComment-701568 Share on other sites More sharing options...
Arkathorn Posted December 24, 2015 Share Posted December 24, 2015 It's 'CAPY_DLC' for Shipwrecked. Note that if you are doing this in 'modmain.lua' or 'modworldgenmain.lua' it should be 'GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)' Link to comment https://forums.kleientertainment.com/forums/topic/61272-load-different-script-files-for-different-game-version/#findComment-701616 Share on other sites More sharing options...
ZupaleX Posted December 24, 2015 Share Posted December 24, 2015 Indeed, my bad. Link to comment https://forums.kleientertainment.com/forums/topic/61272-load-different-script-files-for-different-game-version/#findComment-701677 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