Jump to content

Recommended Posts

Hello
I have a windows dedicated server with this mod installed: Hide Server Only Mods and it works perfectly
However I started a linux dedicated server through a VM and it's not working. I copied the server cluster from my windows server and I've set up the dedicated_server_mods_setup correctly.

I looked at the server log and all the mods (including this one) are loading correctly, but this one seems to be unable to retrieve the other mod names and thus it's unable to hide them. Could it be a permission problem? 

This is the modmain:

GLOBAL.setmetatable(env, { __index = function(t, k) return GLOBAL.rawget(GLOBAL, k) end })
GLOBAL.KnownModIndex.GetServerModNames = function(self)
    local names = {}
    for modname, _ in pairs(self.savedata.known_mods) do
        if not self:GetModInfo(modname).server_only_mod then
            if not self:GetModInfo(modname).client_only_mod then
                table.insert(names, modname)
            end
        end
    end
    return names
end

 

Edited by Juanasdf

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...