ToNiO55 Posted May 12, 2015 Share Posted May 12, 2015 (edited) 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 problemhave you ever seen this problem before?I have many mods on my server and all works fine with the settings of my modoverrides.luabut 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 May 12, 2015 by ToNiO55 Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/ Share on other sites More sharing options...
Sarcen Posted May 12, 2015 Share Posted May 12, 2015 (edited) 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 Edited May 12, 2015 by Sarcen Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636852 Share on other sites More sharing options...
Sarcen Posted May 12, 2015 Share Posted May 12, 2015 (edited) *edit* nevermind this too.. Edited May 12, 2015 by Sarcen Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636866 Share on other sites More sharing options...
ToNiO55 Posted May 12, 2015 Author Share Posted May 12, 2015 (edited) 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 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"todefault = "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 May 12, 2015 by ToNiO55 Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636922 Share on other sites More sharing options...
Kzisor Posted May 12, 2015 Share Posted May 12, 2015 (edited) @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 May 12, 2015 by Kzisor Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636946 Share on other sites More sharing options...
Sarcen Posted May 12, 2015 Share Posted May 12, 2015 @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. Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636974 Share on other sites More sharing options...
ToNiO55 Posted May 12, 2015 Author Share Posted May 12, 2015 (edited) @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 May 12, 2015 by ToNiO55 Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636992 Share on other sites More sharing options...
Kzisor Posted May 12, 2015 Share Posted May 12, 2015 @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. Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636994 Share on other sites More sharing options...
ToNiO55 Posted May 12, 2015 Author Share Posted May 12, 2015 @Kzisor, thx you very much for explain Link to comment https://forums.kleientertainment.com/forums/topic/53864-change-option-doesnt-works-on-server-dedicated/#findComment-636997 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