Maris Posted March 19, 2015 Share Posted March 19, 2015 What is the easiest and proper way to check new RoG DST version from modmain.lua? Link to comment Share on other sites More sharing options...
CarlZalph Posted March 19, 2015 Share Posted March 19, 2015 I am unsure for DST, but for DS it's:if(GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS)) Link to comment Share on other sites More sharing options...
Maris Posted March 19, 2015 Author Share Posted March 19, 2015 As I know, RoG for DST is not a DLC. Link to comment Share on other sites More sharing options...
Maris Posted March 19, 2015 Author Share Posted March 19, 2015 Btw GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) == false Link to comment Share on other sites More sharing options...
Maris Posted March 19, 2015 Author Share Posted March 19, 2015 (edited) Well..... I made a hack. function Is_ROG_Enabled() return GLOBAL.SEASONS.AUTUMNend Edited March 19, 2015 by Maris Link to comment Share on other sites More sharing options...
Michi01 Posted March 19, 2015 Share Posted March 19, 2015 It also says [rog_together_beta] or something like this in your library. Link to comment Share on other sites More sharing options...
CarlZalph Posted March 19, 2015 Share Posted March 19, 2015 Well..... I made a hack. function Is_ROG_Enabled() return GLOBAL.SEASONS.AUTUMNend Yeah, both of the DLC checkers provided by <DST>/data/scripts/dlcsupport.lua say that RoG is not present with this test beta. Hackish workarounds it is, I suppose. Link to comment Share on other sites More sharing options...
Developer SethR Posted March 19, 2015 Developer Share Posted March 19, 2015 Reign of Giants is being folded directly into the Don't Starve Together code base. That means that there will not be any way to check if RoG is present for DST: it will always be there. There is, however, a world gen preset that allows you to make an (almost) vanilla DS game in DST. I'm not sure off the top of my head if there's a dead-simple way to query if that's being used, but it should be pretty easy to cook up, if not. Link to comment Share on other sites More sharing options...
Developer PeterA Posted March 20, 2015 Developer Share Posted March 20, 2015 Well..... I made a hack. ? 1 2 3 function Is_ROG_Enabled() return GLOBAL.SEASONS.AUTUMN endYeah as Seth mentioned, RoG is rolled into the base game so there's not an official concept separating the two, but in the mean time for mods to work with both branches, your check should be sufficient. Thank you for posting this! Link to comment 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