jordanmindyou Posted January 17, 2016 Share Posted January 17, 2016 Hello, I have a dedicated server running with caves and mods installed. All installed mods download and load each time no problem. I have a modoverrides.lua that successfully activates all the mods, but my configuration option overrides don't work at all. My log doesn't mention any overrides for the mods, just loads default settings. I have attached my dedicated_server_mods_setup.lua and my modoverrides.lua and a log of the successful mod load without any overrides options. What am I doing wrong? My guess is a simple syntax error, but I have been comparing side by side with This image I found on these forums through a google search and the responses on a related post which had an example modoverrides.lua file. dedicated_server_mods_setup.lua modoverrides.lua log.txt Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 @jordanmindyou How do you know you are getting the default configurations? 1 hour ago, jordanmindyou said: My log doesn't mention any overrides for the mods [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-447911453 [00:00:06]: Overriding mod workshop-447911453's option Logs with value 8 [00:00:06]: Overriding mod workshop-447911453's option Rope with value 2 [00:00:06]: Overriding mod workshop-447911453's option Fish with value 2 [00:00:06]: Overriding mod workshop-447911453's option Grass with value 2 So... yeah. However, there are mistakes. Such as, BeefaloWool = 0, CatTails = 1, which should be ["Beefalo Wool"] = 0, ["Cat Tails"] = 1, and also workit = nope, which should be workit = "nope", Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 ah yes, i had the beefalo wool and cat tails like how you wrote it before, but i've been playing around testing different variations because it's not working... however, thank you very much for noticing that and also my typo on the DST cellar config option! also, I have another question: when I enter eightxten = 8x10, as one of the config options for the DST cellar, modoverrides.lua fails to load (syntax error in that line) and also, in notepad)++, the "8" part of "8x10" is highlighted orange like all other values for config options but the "x10" part is black like the rest of the text (like the color of the text in the word "workit". just out of curiosity, because that isn't really an issue for me just noticed that happening. Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 @jordanmindyou It's eightxten = "8x10", The " " are important. Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 ah i see, I was confused because it would gray out the text when I did that, which I just made assumptions about and thought it meant it wasn't right. guess that implies that i'm using a string instead of numerical value? Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 @jordanmindyou { name = "eightxten", label = "Slot Positions", hover = "Here's where you to change the positions of the slots", options = { {description = "5 x 16", data = "5x16", hover = "5 slots hight and 16 slots wide"}, {description = "8 x 10", data = "8x10", hover = "8 slots high and 10 slots wide"}, }, default = "5x16", }, You pass the data you want. 5 minutes ago, jordanmindyou said: guess that implies that i'm using a string instead of numerical value? That would be as eightxten = 8*10, The operator is an asterisk, not the letter x. Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 thank you... i was wondering how i was supposed to accomodate a space in there... i was wondering why the mod developer didn't just use an underscore hehe but i realize my mistake now thank you for pointing this out to me! ["Beefalo Wool"] = 0, ["Cat Tails"] = 1, Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 eightxten = 8*10, yeah when i wrote it as eightxten = 8x10 notepad++ had the "8" in orange but the "x10" in black. I assume It read just the "8" as the integer and when it hit "x" it just got confused thinking "x is no integer tis a character" Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 hey I used your suggestion and went with ["Beefalo Wool"] = 0, ["Cat Tails"] = 1, and the mod still loaded up fine but without changing the cat tails options, like always :(. Also, while perusing the log, I noticed [00:00:06]: workshop-447911453 (Craftable Hollow Stump) GetModConfigData Cat Tails [00:00:06]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file. could that be the issue? the mod recipe should have used underscores (Cat_Tails)? because my mod configuration overrides that have very similar formats but use underscores as spaces between words; those all seem to load great [00:00:06]: Overriding mod workshop-417346599's option Mine_Respawn_Prob with value 0.75 as an example Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 @jordanmindyou Post your new modoverrides.lua Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 (edited) here is my new modoverrides.lua. It successfully overrides both the 8x10 option and the "nope" option in the DST cellar, so no longer any issues there. However, I still cannot get the cat tails override to register for the hollow stump crafting mod :/ modoverrides.lua Edited January 17, 2016 by jordanmindyou a word Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 7 minutes ago, DarkXero said: @jordanmindyou Post your new modoverrides.lua modoverrides.lua Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 (edited) @jordanmindyou Well, this is odd, it works for me. Your log doesn't say anything? Did you restart the server? Edited January 17, 2016 by DarkXero Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 yeah reset a few times, gonna try again now haha. log repeats this part over and over: [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-382177939 [00:00:06]: Overriding mod workshop-382177939's option workit with value nope [00:00:06]: Overriding mod workshop-382177939's option eightxten with value 8x10 [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-447911453 [00:00:06]: Overriding mod workshop-447911453's option Logs with value 8 [00:00:06]: Overriding mod workshop-447911453's option Rope with value 2 [00:00:06]: Overriding mod workshop-447911453's option Fish with value 2 [00:00:06]: Overriding mod workshop-447911453's option Grass with value 0 [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-417346599 [00:00:06]: Overriding mod workshop-417346599's option Net_Respawn_Prob with value 0.5 [00:00:06]: Overriding mod workshop-417346599's option Dig_Respawn_Prob with value 0.5 [00:00:06]: Overriding mod workshop-417346599's option Monster_Respawn_Prob with value 1 [00:00:06]: Overriding mod workshop-417346599's option Respawn_Time with value 480 [00:00:06]: Overriding mod workshop-417346599's option Fire_Respawn_Prob with value 0.5 [00:00:06]: Overriding mod workshop-417346599's option Destroy_Respawn_Prob with value 1 [00:00:06]: Overriding mod workshop-417346599's option Mine_Respawn_Prob with value 0.75 [00:00:06]: Loading mod: workshop-354533909 (Koalefants Family DST) Version:1.3 [00:00:06]: Could not load mod_config_data/modconfiguration_workshop-365119238 [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-382177939 [00:00:06]: Overriding mod workshop-382177939's option workit with value nope [00:00:06]: Overriding mod workshop-382177939's option eightxten with value 8x10 [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-447911453 [00:00:06]: Overriding mod workshop-447911453's option Logs with value 8 [00:00:06]: Overriding mod workshop-447911453's option Rope with value 2 [00:00:06]: Overriding mod workshop-447911453's option Fish with value 2 [00:00:06]: Overriding mod workshop-447911453's option Grass with value 0 [00:00:06]: applying configuration_options from modoverrides.lua to mod workshop-417346599 so it seems to just skip over the beefalo wool and the Cat Tails and it repeats that about 15 times while sporadically activating overrides for other mods as well. When I go into the game, the recipe is still lacking cat tails and beefalo wool, but I can successfully change those other 4 (logs, rope, fish, grass) Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 local stumps = {} stumps["Logs"] = 8 stumps["Rope"] = 2 stumps["Grass"] = 0 stumps["Fish"] = 2 stumps["Beefalo Wool"] = 0 stumps["Cat Tails"] = 1 return { ["workshop-382177939"] = { enabled = true, configuration_options = { workit = "nope", eightxten = "8x10" }, }, --Storm Cellar ["workshop-378160973"] = { enabled = true }, --GPS ["workshop-463919131"] = { enabled = true }, --Wilton The Skeleton ["workshop-583735156"] = { enabled = true }, --North the Snowman ["workshop-569043634"] = { enabled = true }, --Campfire Respawn ["workshop-522117250"] = { enabled = true }, --birds berries trees ["workshop-501385076"] = { enabled = true }, --quick pick ["workshop-545653509"] = { enabled = true }, --glimmer and fam ["workshop-563755693"] = { enabled = true }, --draconas ["workshop-544240032"] = { enabled = true }, --spekkle ["workshop-548821979"] = { enabled = true }, --max ["workshop-572470943"] = { enabled = true }, --jao ["workshop-505264181"] = { enabled = true }, --haunter ["workshop-365119238"] = { enabled = true }, --smarter crock pot ["workshop-551324730"] = { enabled = true }, --realistic placement ["workshop-417346599"] = { enabled = true, --world respawn mod configuration_options = { Respawn_Time = 480, Fire_Respawn_Prob = 0.5, Dig_Respawn_Prob = 0.5, Net_Respawn_Prob = 0.5, Mine_Respawn_Prob = 0.75, Destroy_Respawn_Prob = 1, Monster_Respawn_Prob = 1, }, }, ["workshop-354533909"] = { enabled = true }, --koalephants fam ["workshop-543008954"] = { enabled = true }, --lapis lazuli ["workshop-447911453"] = { enabled = true, --craftable hollow stumps configuration_options = stumps, }, } @jordanmindyou Try with that. Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 This worked! can you please explain to me why? I see that you took all those variables out of the brackets there and you defined them up top as part of a new variable called stumps... correct me if any of that is wrong, i'm new to this stuff Link to comment Share on other sites More sharing options...
DarkXero Posted January 17, 2016 Share Posted January 17, 2016 Just now, jordanmindyou said: can you please explain to me why? Good question, I have no idea. Link to comment Share on other sites More sharing options...
jordanmindyou Posted January 17, 2016 Author Share Posted January 17, 2016 (edited) 2 minutes ago, DarkXero said: Good question, I have no idea. ah i'm starting to learn that the world of computer science can sometimes be without explanation, just like the material civilized? world either way, thanks a bunch friend i'll try to remember this trick for future run-ins with problems like this Edited January 17, 2016 by jordanmindyou spelling Link to comment 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