I'm doing checks for DLC's from modmain.lua and seems like this one SW_CHECK = GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) is always NIL even when loading SW world.
local ROG = GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS)
local SW_CHECK = GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)
../mods/Wall Gates/modmain.lua(7,1) false
../mods/Wall Gates/modmain.lua(8,1)
This one gives the same NIL result
SW_CHECK = GLOBAL.rawget(GLOBAL, "CAPY_DLC") and GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC)
Reinstalled the game and DLC's, seems to be working just fine now.
Steps to Reproduce
local ROG = GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) local SW_CHECK = GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) print(ROG) print(SW_CHECK)
local ROG = GLOBAL.IsDLCEnabled(GLOBAL.REIGN_OF_GIANTS) local SW_CHECK = GLOBAL.IsDLCEnabled(GLOBAL.CAPY_DLC) print(ROG) print(SW_CHECK)
There are no comments to display.