Jump to content

new syntax modoverrideS.lua


Recommended Posts

I dont unterstand the changed syntax from modoverrides.lua. Could someone correct myone?

dst@s17837415:~/.klei/DoNotStarveTogether$ cat modoverrides.luareturn {        --Simple Protection        ["workshop-360823660"] = {enabled = true,configuration_options ={-- Starting daystarting_day = 10,-- Minimum days (1 day = players don't need to wait to use everything, 2 days = players need to wait 1 day to use something.. etc.)min_days = 3,-- Container protection (chests, chester, icebox..)container_protection = "true",-- Crock pot protection (use and harvest)stewer_protection = "false",-- Backpack protectionbackpack_protection = "true",-- Ghost break/light on fire/other stuff protectionghost_protection = "true",-- Willow fire starting protectionwillow_love = "true",-- Fireproof bushesbushes_protection = "true",-- Undigable bushes (for fresh players)bushes_dig_protection = "false",-- Disable fire spreadfire_spread_protection = "false"}                                },--Auto Retrap["workshop-364255295"] = {enabled = true}--Wormhole Marks["workshop-362175979"] = {enabled = true}--Global Player Icons["workshop-373991022"] = {enabled = true}--Renewable World["workshop-369588618"] = {enabled = true}--Extra Equip Slots["workshop-375850593"] = {enabled = true}--Soulmates--["workshop-350811795"] = {enabled = true}--Detailed Tooltip--["workshop-360722606"] = {enabled = true}--Smarter Crock Pot["workshop-365119238"] = {enabled = true}--Stumps Grow--["workshop-369083494"] = {enabled = true}}
Link to comment
Share on other sites

I dont think there is a mistake. The wiki says

return {	the_hunt = {		enabled = true,		configuration_options =		{			hunt_time = 6,		}	},	["workshop-350811795"] = { enabled = true },	["workshop-336882447"] = { enabled = true }}

Instead of the_hunt (in my config it sould be simple_protection) i used the id followd by serveral options. }, is at line 35

Link to comment
Share on other sites

@PeterA

return {    the_hunt = {

How does this work? Is the mod local copied to ../mods/the_hunt?

I think it would be more clearly, if it is changed to

return {    ["workshop-'id'"] = {

 

so I'd expect a typical file to look like
return {
["workshop-350811795"] = { enabled = true },
["workshop-387028143"] = { enabled = true },
["workshop-336882447"] = { enabled = true },
["workshop-361336115"] = { enabled = true the "," is missing
configuration_options =
{
hunt_time = 6,
}
},
["workshop-336882447"] = { enabled = true }
}
edit: formatting...
 

 

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...