_Q_ Posted January 19, 2019 Share Posted January 19, 2019 So command like that in modmain: print(GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS)) print(GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)) print(GLOBAL.IsDLCEnabled(GLOBAL.PORKLAND_DLC)) returns something like this: [00:00:48]: ../mods/Beffalo DS/modmain.lua(65,1) true [00:00:48]: ../mods/Beffalo DS/modmain.lua(66,1) true [00:00:48]: ../mods/Beffalo DS/modmain.lua(67,1) true for Vanilla hamlet enabled world. Either its bugged or totally useless. Link to comment https://forums.kleientertainment.com/forums/topic/101962-isdlcenabled/ Share on other sites More sharing options...
MidrealmDM Posted January 20, 2019 Share Posted January 20, 2019 print "Rog" print(IsDLCEnabled(REIGN_OF_GIANTS)) print "Cappy" print(IsDLCEnabled(CAPY_DLC)) print "Porkland" print(IsDLCEnabled(PORKLAND_DLC)) Upon booting the game - this appears in the log... [00:00:04]: ../mods/waiter-381565292/modmain.lua(213,1) Rog [00:00:04]: ../mods/waiter-381565292/modmain.lua(214,1) true [00:00:04]: ../mods/waiter-381565292/modmain.lua(215,1) Cappy [00:00:04]: ../mods/waiter-381565292/modmain.lua(216,1) true [00:00:04]: ../mods/waiter-381565292/modmain.lua(217,1) Porkland [00:00:04]: ../mods/waiter-381565292/modmain.lua(218,1) true Upon loading a Saved Game, this appears in the log. [00:00:23]: ../mods/waiter-381565292/modmain.lua(213,1) Rog [00:00:23]: ../mods/waiter-381565292/modmain.lua(214,1) false [00:00:23]: ../mods/waiter-381565292/modmain.lua(215,1) Cappy [00:00:23]: ../mods/waiter-381565292/modmain.lua(216,1) false [00:00:23]: ../mods/waiter-381565292/modmain.lua(217,1) Porkland [00:00:23]: ../mods/waiter-381565292/modmain.lua(218,1) true Link to comment https://forums.kleientertainment.com/forums/topic/101962-isdlcenabled/#findComment-1145034 Share on other sites More sharing options...
_Q_ Posted January 20, 2019 Author Share Posted January 20, 2019 2 hours ago, MidrealmDM said: print "Rog" print(IsDLCEnabled(REIGN_OF_GIANTS)) print "Cappy" print(IsDLCEnabled(CAPY_DLC)) print "Porkland" print(IsDLCEnabled(PORKLAND_DLC)) Upon booting the game - this appears in the log... [00:00:04]: ../mods/waiter-381565292/modmain.lua(213,1) Rog [00:00:04]: ../mods/waiter-381565292/modmain.lua(214,1) true [00:00:04]: ../mods/waiter-381565292/modmain.lua(215,1) Cappy [00:00:04]: ../mods/waiter-381565292/modmain.lua(216,1) true [00:00:04]: ../mods/waiter-381565292/modmain.lua(217,1) Porkland [00:00:04]: ../mods/waiter-381565292/modmain.lua(218,1) true Upon loading a Saved Game, this appears in the log. [00:00:23]: ../mods/waiter-381565292/modmain.lua(213,1) Rog [00:00:23]: ../mods/waiter-381565292/modmain.lua(214,1) false [00:00:23]: ../mods/waiter-381565292/modmain.lua(215,1) Cappy [00:00:23]: ../mods/waiter-381565292/modmain.lua(216,1) false [00:00:23]: ../mods/waiter-381565292/modmain.lua(217,1) Porkland [00:00:23]: ../mods/waiter-381565292/modmain.lua(218,1) true So it is bugged. I need it on startup of new world as well, in case someone is starting new game. Older mods that were using that method stopped functioning and are loading wrong scripts on startup, causing various issues. Link to comment https://forums.kleientertainment.com/forums/topic/101962-isdlcenabled/#findComment-1145049 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