Jump to content

Recommended Posts

Hi all,

 

so i have just little problem with this mod:

 

http://steamcommunity.com/sharedfiles/filedetails/?id=375805246

 

i try to switch on difficult easy with my modoverrides.lua:

 

["workshop-375805246"] = { -- Gem Crafting
    enabled = true,
    configuration_options =
    {
        ["crafting"] = easy,
    }
},

 

unfortunately the mod remains normal and does not switch to easy

 

one who create the mod doesn't know where is the problem

have you ever seen this problem before?

I have many mods on my server and all works fine with the settings of my modoverrides.lua

but this one doesn't take into option desired

 

someone among you could test it? and tell me if option works for you?

 

if you have somes ideas for my problem, you welcome

 

Thx you very much for your help

 

Edited by ToNiO55

I'm not sure if mod config is networked at all. If its not (which I think it isn't...) the client recipe shows the clients mod setting (normal by default). But when you craft it it will probably still consume the amount specified on the server.

 

*edit* Never mind, just examined the code and it is networked :p

Edited by Sarcen

I'm not sure if mod config is networked at all. If its not (which I think it isn't...) the client recipe shows the clients mod setting (normal by default). But when you craft it it will probably still consume the amount specified on the server.

 

*edit* Never mind, just examined the code and it is networked :razz:

 

After some experimenting, I noticed it wasn't working for me either, so I went and looked what that actually does.

 

It attempts to load "Documents\Klei\DSTServer\save\mod_config_data\modconfiguration_workshop-375805246", and then continues to fail that, because it doesn't exist on my dedicated server. But the way it overrides settings is that it only overrides existing settings, it doesn't add new ones. So if there is no base settings already set it won't do anything.

 

There is a work around however, and that is to generate the file on your normal game and then placing it into the server directory.

 

 

@PeterA, Is this a bug? or am I doing something wrong?

 

Thx you very much for your help Sarcen :-)

 

well I have find an alternative solution

 

when i change the modinfo.lua of mod:

default = "normal"

to

default = "easy"

 

and restart my server, that's works

 

but this involves a new problem,

 

because when I have to update the mod this one returns to original modinfo.lua

 

I don't know why the option doesn't work with modoverrides.lua

Edited by ToNiO55

@ToNiO55, try the following to see if it works:

["workshop-375805246"] = { -- Gem Crafting    enabled = true,    configuration_options =    {        crafting = "easy",    },},

OR

["375805246"] = { -- Gem Crafting    enabled = true,    configuration_options =    {        crafting = "easy",    },},

EDIT:

The reason why it's not working is because you're not pushing a string as you should be. You're trying to push a variable.

Edited by Kzisor

@ToNiO55, try the following to see if it works:

["workshop-375805246"] = { -- Gem Crafting    enabled = true,    configuration_options =    {        crafting = "easy",    },},

OR

["375805246"] = { -- Gem Crafting    enabled = true,    configuration_options =    {        crafting = "easy",    },},

EDIT:

The reason why it's not working is because you're not pushing a string as you should be. You're trying to push a variable.

 

Damn, Can't believe I missed that. I debugged printed the table and the entry wasn't in it at all. I would have figured it would have contained a nil if it was such a mistake lol.

@ToNiO55, try the following to see if it works:

["workshop-375805246"] = { -- Gem Crafting    enabled = true,    configuration_options =    {        crafting = "easy",    },},

OR

["375805246"] = { -- Gem Crafting    enabled = true,    configuration_options =    {        crafting = "easy",    },},

EDIT:

The reason why it's not working is because you're not pushing a string as you should be. You're trying to push a variable.

 

@Kzisor

 

Thx you very much it's works :-)

 

but there's something I don't understand why I should use a different variable for this mods, while my variable works fine with my other mods, have you any idea?

 

Edited by ToNiO55

@ToNiO55, it's all about coding syntax.

 

["crafting"] and crafting is essentially the same, however, crafting is easier to write that is why I wrote it.

 

easy and "easy" is not the same though. The first is a nil value because it's trying to access a variable which you've never set. The second is a string which will always return what is between the quotes.

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...