Jump to content

Need help with modoverrides with my server


Recommended Posts


Heya... I been looking over other similar posts and the wiki to make sure it works.  The syntax looks all good to my newb eyes and the format seems right, but i'm still throwing this error when i attempt to start the server back up.  

 

[00:00:07]: ERROR: Failed to load modoverrides.lua
[00:00:07]: FMOD Error: An invalid object handle was used. 
 

I was previously using modsettings to force it open and then editing each individual modinfo in each folder to get the settings i want, but that is only a stopgap/short term measure as any updates to the mods will override my changes... so i tried to do it the right way using modoverrides/lua... but can't figure out whats going on... 

 

 
Somethings wrong with the code.
 
I tried putting both the String Phrase Option Name in [" "] and without, but still issues.  Any helpful hints at what i'm doing wrong would be grateful.  I'm haven't really dabbled in any sort of programming before, so i'm just imitating code i seen from other people and the wiki.
 
Thanks for your assistance! 
 
 

 

Hopefully this code shows above... first time posting here and seems like i can only post once today... haha =) 

modoverrides.lua

Link to comment
Share on other sites

Failed to post my code right... 

 

return{--CHARACTERS	--nomorespawnpen_essential_for_certian_modes_and_characters    	["workshop-356420397"]={enabled=true},	--Sollyz	    ["workshop-359479220"]={enabled=true},	--Haruz	    ["workshop-359821133"]={enabled=true},	--mitsuru	    ["workshop-364189966"]={enabled=true},    --Meowka        ["workshop-377308875"]={enabled=true},    --Wynn        ["workshop-432087970"]={enabled=true},    --deadpool        ["workshop-435350752"]={enabled=true},    --Faroz2        ["workshop-437711916"]={enabled=true,            configuration_options=                {                    "DROPGLASSES"=0                }            },    --musha        ["workshop-439115156"]={enabled=true},    --Horo        ["workshop-441957490"]={enabled=true},    --Madeleine        ["workshop-449363086"]={enabled=true},    --Zinnia        ["workshop-454211487"]={enabled=true},    --Lily        ["workshop-454213488"]={enabled=true},    --bender        ["workshop-462004677"]={enabled=true},--MODS    --smartercrockpot        ["workshop-365119238"]={enabled=true},    --digableReeds        ["workshop-367304592"]={enabled=true},    --farozGlasses        ["workshop-368824234"]={enabled=true},    --renewableWorld        ["workshop-369588618"]={enabled=true,            configuration_options=                {                    SPAWNRATE=20,                    BEEFALO=1,                    BEEHIVE=1,                    BERRYBUSH=1,                    CARROTS=1,                    CLOCKWORK=1,                    EVERGREEN=1,                    EVILFLOWERS=1,                    FIREFLIES=1,                    FLINT=1,                    FLOWERS=1,                    GRASS=1,                    HOUNDMOUND=1,                    KILLERBEEHIVE=1,                    MARBLETREE=1,                    MERMHOUSE=1,                    PIGHOUSE=1,                    RABBITHOLES=1,                    REEDS=1,                    ROCKS=1,                    SAPLING=1,                    SPIDERDEN=1,                    SPIKETREE=1,                    SPIKEBUSH=1,                    TALLBIRDNEST=1,                    TENTACLES=1                }            },	--TellMe	    ["workshop-369596587"]={enabled=true},    --AdvFarming        ["workshop-370373189"]={enabled=true,            configuration_options=                {                    greenhouserecipe="normal",                    b_seeds="yes",                    W_grow="yes"                }            },    --GlobPlayerIcon        ["workshop-373991022"]={enabled=true},    --ExtraEquipSlots        ["workshop-375850593"]={enabled=true},    --StormCell        ["workshop-382177939"]={enabled=true,            configuration_options=	            {    	            eightxten="5x16",    	            workit="nope"                }            },    --Aquarium        ["workshop-387716835"]={enabled=true,            configuration_options=                {                    san=10                }            },    --Potions        ["workshop-391522324"]={enabled=true},    --MajorStackSize        ["workshop-398109522"]={enabled=true,            configuration_options=                {                    MAXSTACKSIZE=250                }            },    --MagicalPouch        ["workshop-399527034"]={enabled=true,            configuration_options=                {                    enable1=1,                    size1=2,                    ingr1a=1,                    ingr1b=15,                    ingre1c=5,                    incept1=0,                    enable2=1,                    size2=2,                    peritime1=.01,                    ingr2a=1,                    ingr2b=15,                    ingr2c=5,                    incept2=0,                    posx=-300,                    posy=-100                }            },    --PickeItMod        ["workshop-404983266"]={enabled=true},    --chesterfam        ["workshop-407977022"]=[enabled=true,            configuration_options=                {                    chester_config=3                }            },    --CraftableGears        ["workshop-409833317"]={enabled=true,            configuration_options=                {                    GearsRecipe=3,                    GemDropChancev1=0                }            },    --Iceflingcheck        ["workshop-412291722"]={enabled=true},    --Steampunk        ["workshop-418604101"]={enabled=true},    --fearofGnomes        ["workshop-422659100"]={enabled=true},    --Craftablegnomes        ["workshop-429396134"]={enabled=true},    --InfiniteSiestaHut        ["workshop-434859111"]={enabled=true,            configuration_options=                {                    using=10000000                }            },    --tweakthosetools        ["workshop-441356490"]={enabled=true,            configuration_options=                {                    WEAPON_DURABILITY=4,                    ARMOR_DURABILITY=4,                    STAFF_DURABILITY=4,                    AMULET_DURABILITY=4,                    TOOL_DURABILITY=4,                    TOOL_OPTIONS="AllTools",                    TRAP_DURABILITY="Infinite",                    CLOTHING_DURABILITY=4,                    LIGHT_DURABILITY=2,                    CAMPING_DURABILITY=2,                    BOOK_DURABILITY=2,                    FOOD_PRESERVATION="Infinite",                    FOOD_SELECTION="Preserved"                }            },    --perishable        ["workshop-442294018"]={enabled=true},    --deluxecamfire        ["workshop-444235588"]={enabled=true,            configuration_options=                {                    deluxeFirepitBurnRate=0.75,                    deluxeEndoFirepitBurnRate=0.75,                    iceStarBurnRate=0.9,                    heatStarBurnRate=0.9,                    recipeCost="standard",                    dropLoot="yes",                    endoDropLoot="yes",                    iceStarDropLoot="yes",                    heatStarDropLoot="yes",                    starSpawnHounds="no"                }            },    --MoreActions        ["workshop-447092740"]={enabled=true},    --ExtendedMapGeneration        ["workshop-451559807"]={enabled=true},    --enchGemCraft        ["workshop-457145031"]={enabled=true},    --CraftableCoon        ["workshop-457646167"]={enabled=true},    --GoldBoulderIcon        ["workshop-457855760"]={enabled=true},    --fasttravel        ["workshop-458587300"]={enabled=true,            configuration_options=                {                    Travel_Cost=32,                    Ownership=false                }            },    --noidlewalatk        ["workshop-463655483"]={enabled=true},   	--freezer	    ["workshop-346962876"]={enabled=true,   		     configuration_options=     	       {     	        	f_recipe="hard",    	        	chilltime=.01     	       }     	   }} 

 
 
 

Link to comment
Share on other sites

Derp... well thanks if anyone rate this.... figured out my problem....  Everything was good except line 

140 ... [ suppose to be {. Arugh.

 

Eitherways hope this helps anyone else trying to set their server and finds this on google search... haha :) 

Link to comment
Share on other sites

Can you repost the corrected version as a spoiler? I struggle with this in my overrides lua myself.

 

Sure no problem

 

return{--CHARACTERS	--nomorespawnpen    	["workshop-356420397"]={enabled=true},	--Sollyz	    ["workshop-359479220"]={enabled=true},	--Haruz	    ["workshop-359821133"]={enabled=true},	--mitsuru	    ["workshop-364189966"]={enabled=true},    --Meowka        ["workshop-377308875"]={enabled=true},    --Wynn        ["workshop-432087970"]={enabled=true},    --deadpool        ["workshop-435350752"]={enabled=true},    --Faroz2        ["workshop-437711916"]={enabled=true,            configuration_options=                {                    ["DROPGLASSES"]=0                }            },    --musha        ["workshop-439115156"]={enabled=true},    --Horo        ["workshop-441957490"]={enabled=true},    --Madeleine        ["workshop-449363086"]={enabled=true},    --Zinnia        ["workshop-454211487"]={enabled=true},    --Lily        ["workshop-454213488"]={enabled=true},    --bender        ["workshop-462004677"]={enabled=true},--MODS    --smartercrockpot        ["workshop-365119238"]={enabled=true},    --digableReeds        ["workshop-367304592"]={enabled=true},    --farozGlasses        ["workshop-368824234"]={enabled=true},    --renewableWorld        ["workshop-369588618"]={enabled=true,            configuration_options=                {                    ["SPAWNRATE"]=20,                    ["BEEFALO"]=1,                    ["BEEHIVE"]=1,                    ["BERRYBUSH"]=1,                    ["CARROTS"]=1,                    ["CLOCKWORK"]=1,                    ["EVERGREEN"]=1,                    ["EVILFLOWERS"]=1,                    ["FIREFLIES"]=1,                    ["FLINT"]=1,                    ["FLOWERS"]=1,                    ["GRASS"]=1,                    ["HOUNDMOUND"]=1,                    ["KILLERBEEHIVE"]=1,                    ["MARBLETREE"]=1,                    ["MERMHOUSE"]=1,                    ["PIGHOUSE"]=1,                    ["RABBITHOLES"]=1,                    ["REEDS"]=1,                    ["ROCKS"]=1,                    ["SAPLING"]=1,                    ["SPIDERDEN"]=1,                    ["SPIKETREE"]=1,                    ["SPIKEBUSH"]=1,                    ["TALLBIRDNEST"]=1,                    ["TENTACLES"]=1                }            },	--TellMe	    ["workshop-369596587"]={enabled=true},    --AdvFarming        ["workshop-370373189"]={enabled=true,            configuration_options=                {                    ["greenhouserecipe"]="normal",                    ["b_seeds"]="yes",                    ["W_grow"]="yes"                }            },    --GlobPlayerIcon        ["workshop-373991022"]={enabled=true},    --ExtraEquipSlots        ["workshop-375850593"]={enabled=true},    --StormCell        ["workshop-382177939"]={enabled=true,            configuration_options=	            {    	            ["eightxten"]="5x16",    	            ["workit"]="nope"                }            },    --Aquarium        ["workshop-387716835"]={enabled=true,            configuration_options=                {                    ["san"]=10                }            },    --Potions        ["workshop-391522324"]={enabled=true},    --MajorStackSize        ["workshop-398109522"]={enabled=true,            configuration_options=                {                    ["MAXSTACKSIZE"]=250                }            },    --MagicalPouch        ["workshop-399527034"]={enabled=true,            configuration_options=                {                    ["enable1"]=1,                    ["size1"]=2,                    ["ingr1a"]=1,                    ["ingr1b"]=15,                    ["ingr1c"]=5,                    ["incept1"]=0,                    ["enable2"]=1,                    ["size2"]=2,                    ["peritime1"]=.01,                    ["ingr2a"]=1,                    ["ingr2b"]=15,                    ["ingr2c"]=5,                    ["incept2"]=0,                    ["posx"]=-300,                    ["posy"]=-100                }            },    --PickeItMod        ["workshop-404983266"]={enabled=true},    --chesterfam        ["workshop-407977022"]={enabled=true,            configuration_options=                {                    ["chester_config"]=3                }            },    --CraftableGears        ["workshop-409833317"]={enabled=true,            configuration_options=                {                    ["GearsRecipe"]=3,                    ["GemDropChancev1"]=0                }            },    --Iceflingcheck        ["workshop-412291722"]={enabled=true},    --Steampunk        ["workshop-418604101"]={enabled=true},    --fearofGnomes        ["workshop-422659100"]={enabled=true},    --Craftablegnomes        ["workshop-429396134"]={enabled=true},    --InfiniteSiestaHut        ["workshop-434859111"]={enabled=true,            configuration_options=                {                    ["using"]=10000000                }            },    --tweakthosetools        ["workshop-441356490"]={enabled=true,            configuration_options=                {                    ["WEAPON_DURABILITY"]=4,                    ["ARMOR_DURABILITY"]=4,                    ["STAFF_DURABILITY"]=4,                    ["AMULET_DURABILITY"]=4,                    ["TOOL_DURABILITY"]=4,                    ["TOOL_OPTIONS"]="AllTools",                    ["TRAP_DURABILITY"]="Infinite",                    ["CLOTHING_DURABILITY"]=4,                    ["LIGHT_DURABILITY"]=2,                    ["CAMPING_DURABILITY"]=2,                    ["BOOK_DURABILITY"]=2,                    ["FOOD_PRESERVATION"]="Infinite",                    ["FOOD_SELECTION"]="Preserved"                }            },    --perishable        ["workshop-442294018"]={enabled=true},    --deluxecamfire        ["workshop-444235588"]={enabled=true,            configuration_options=                {                    ["deluxeFirepitBurnRate"]=0.75,                    ["deluxeEndoFirepitBurnRate"]=0.75,                    ["iceStarBurnRate"]=0.9,                    ["heatStarBurnRate"]=0.9,                    ["recipeCost"]="standard",                    ["dropLoot"]="yes",                    ["endoDropLoot"]="yes",                    ["iceStarDropLoot"]="yes",                    ["heatStarDropLoot"]="yes",                    ["starSpawnHounds"]="no"                }            },    --MoreActions        ["workshop-447092740"]={enabled=true},    --ExtendedMapGeneration        ["workshop-451559807"]={enabled=true},    --enchGemCraft        ["workshop-457145031"]={enabled=true},    --CraftableCoon        ["workshop-457646167"]={enabled=true},    --GoldBoulderIcon        ["workshop-457855760"]={enabled=true},    --fasttravel        ["workshop-458587300"]={enabled=true,            configuration_options=                {                    ["Travel_Cost"]=32,                    ["Ownership"]=false                }            },    --noidlewalatk        ["workshop-463655483"]={enabled=true},   	--freezer	    ["workshop-346962876"]={enabled=true,   	     configuration_options=     	       {     	        	["f_recipe"]="hard",    	        	["chilltime"]=.12     	       }     	   },}

 

If you got a lot like mine, and errors are thrown by the server when starting up.  You can troubleshoot by removing half the mod in the code and see if it compiles, if it does then you have a problem in that later half.  If it still doesn't run, then you have an issue in the first half, and you just need to delete 1 mod code each time and attempt to run the server.  That's how I figured my problem since i didn't catch the wrong bracket being used.   I thought i used all the correct brackets, but my eye glazed over that one mistake.

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