samir1597 Posted May 30, 2016 Share Posted May 30, 2016 Hey there, i created my own dedicated serve which was difficult and i CREATED, but i edited my forest resources and i have an error so my server won't start. My Log is a little long cuz i added some mod so i'm giving you short version [00:00:28]: Online Server Started on port: 11000 [00:00:28]: Found a level data override file with these contents: [00:00:28]: K: unprepared V: table: 0F6F5310 [00:00:28]: K: carrot V: often [00:00:28]: K: mushroom V: often [00:00:28]: K: cactus V: often [00:00:28]: K: berrybush V: often [00:00:28]: K: misc V: table: 0F6F52C0 [00:00:28]: K: autumn V: longseason [00:00:28]: K: spring V: longseason [00:00:28]: K: branching V: default [00:00:28]: K: touchstone V: default [00:00:28]: K: winter V: longseason [00:00:28]: K: world_size V: huge [00:00:28]: K: wildfires V: default [00:00:28]: K: loop V: default [00:00:28]: K: lightning V: default [00:00:28]: K: day V: default [00:00:28]: K: summer V: longseason [00:00:28]: K: boons V: default [00:00:28]: K: weather V: default [00:00:28]: K: season_start V: default [00:00:28]: K: frograin V: rare [00:00:28]: K: animals V: table: 0F6F52E8 [00:00:28]: K: beefalo V: default [00:00:28]: K: lightninggoat V: default [00:00:28]: K: catcoon V: default [00:00:28]: K: rabbits V: default [00:00:28]: K: hunt V: default [00:00:28]: K: angrybees V: default [00:00:28]: K: birds V: default [00:00:28]: K: perd V: default [00:00:28]: K: moles V: default [00:00:28]: K: tallbirds V: default [00:00:28]: K: alternatehunt V: default [00:00:28]: K: butterfly V: often [00:00:28]: K: frogs V: default [00:00:28]: K: pigs V: default [00:00:28]: K: bees V: default [00:00:28]: K: beefaloheat V: default [00:00:28]: K: buzzard V: default [00:00:28]: K: penguins V: default [00:00:28]: K: monsters V: table: 0F6F53D8 [00:00:28]: K: krampus V: default [00:00:28]: K: walrus V: default [00:00:28]: K: hounds V: default [00:00:28]: K: bearger V: default [00:00:28]: K: liefs V: default [00:00:28]: K: dragonfly V: default [00:00:28]: K: deerclops V: default [00:00:28]: K: tentacles V: default [00:00:28]: K: deciduousmonster V: default [00:00:28]: K: chess V: default [00:00:28]: K: spiders V: default [00:00:28]: K: houndmound V: default [00:00:28]: K: merm V: default [00:00:28]: K: lureplants V: default [00:00:28]: K: goosemoose V: default [00:00:28]: K: resources V: table: 0F6F5338 [00:00:28]: K: grass V: default [00:00:28]: K: rock V: default [00:00:28]: K: reeds V: default [00:00:28]: K: meteorshowers V: default [00:00:28]: K: flowers V: default [00:00:28]: K: tumbleweed V: default [00:00:28]: K: trees V: default [00:00:28]: K: flint V: default [00:00:28]: K: marshbush V: default [00:00:28]: K: sapling V: default [00:00:28]: K: rock_ice V: default [00:00:28]: K: meteorspawner V: default [00:00:28]: K: override_enabled V: true [00:00:28]: Loaded and applied level data override from ../leveldataoverride.lua [00:00:28]: [string "scripts/saveindex.lua"]:44: Level data override is invalid! LUA ERROR stack traceback: =[C]:-1 in (global) assert (C) <-1--1> scripts/saveindex.lua:44 in () ? (Lua) <36-59> load_success = true str = return { override_enabled = true, unprepared = { -- "never", "rare", "default", "often", "always" berrybush = "often", cactus = "often", carrot = "often", mushroom = "often", }, misc = { autumn = "longseason", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random" boons = "default", -- "never", "rare", "default", "often", "always" branching = "default", -- "never", "least", "default", "most" day = "default", -- "default", "longday", "longdusk", "longnight", "noday", "nodusk", "nonight", "onlyday", "onlydusk", "onlynight" frograin = "rare", -- "never", "rare", "default", "often", "always" lightning = "default", -- "never", "rare", "default", "often", "always" loop = "default", -- "never", "default", "always" season_start = "default", -- "default", [**truncated**] success = true savedata = table: 0F6F51A8 =[C]:-1 in (method) GetPersistentString (C) <-1--1> scripts/saveindex.lua:35 in (upvalue) GetLevelDataOverride (Lua) <33-60> cb = function - scripts/saveindex.lua:394 filename = ../leveldataoverride.lua scripts/saveindex.lua:394 in (method) StartSurvivalMode (Lua) <375-414> self = data = table: 14391128 current_slot = 1 saveslot = 1 customoptions = nil serverdata = table: 0F6F30D8 onsavedcb = function - scripts/networking.lua:709 slot = table: 14391308 scripts/networking.lua:716 in () ? (Lua) <696-721> start_in_online_mode = true server_started = true slot = 1 serverdata = table: 0F6F30D8 onsaved = function - scripts/networking.lua:709 [00:00:28]: [string "scripts/saveindex.lua"]:44: Level data override is invalid! LUA ERROR stack traceback: =[C]:-1 in (global) assert (C) <-1--1> scripts/saveindex.lua:44 in () ? (Lua) <36-59> =[C]:-1 in (method) GetPersistentString (C) <-1--1> scripts/saveindex.lua:35 in (upvalue) GetLevelDataOverride (Lua) <33-60> scripts/saveindex.lua:394 in (method) StartSurvivalMode (Lua) <375-414> scripts/networking.lua:716 in () ? (Lua) <696-721> I hope u know how to solve it. Link to comment Share on other sites More sharing options...
Zillvr Posted May 31, 2016 Share Posted May 31, 2016 Hello @samir1597, welcome to the forums. Can you attach the leveldataoverride.lua OR worldgenoverride.lua file from Documents\Klei\DoNotStarveTogether\YourDedicatedServer\Master. Based on the log snippet you attached there is a syntax which was incorrectly written in the leveldataoverride.lua OR worldgenoverride.lua that causes the whole file to be invalid. Link to comment Share on other sites More sharing options...
samir1597 Posted May 31, 2016 Author Share Posted May 31, 2016 Sure! leveldataoverride.lua worldgenoverride.lua Link to comment Share on other sites More sharing options...
Zillvr Posted May 31, 2016 Share Posted May 31, 2016 @samir1597 have you attempted to c_regenerateworld() yet? The leveldataoverride.lua itself uses a different format from the worldgenoverride.lua format. Your current leveldataoverride.lua file is using the worldgenoverride.lua format which is possibly what's causing the error. What I recommend you try is to rename your leveldataoverride.lua file into worldgenoverride.lua file without changing the contents. Make sure it's still a LUA file. Then start up the server again. If that doesn't work, I'd recommend this method to generate your leveldataoverride.lua file: Hide contents Start up DST. Click Host Game. Click New Server in Slot 1. Set the server intention in the Server Settings so the world can start. Edit the world presets to whatever you wish your dedicated server to be, including the Caves. Now generate the world. Once connected, disconnect from the server. Shutdown Dedicated Server with c_shutdown() command entered into the console or the Dedicated Server Window. Go to this location Documents\Klei\DoNotStarveTogether\Cluster_1\. Under the Master folder, get the leveldataoverride.lua and that is the leveldataoverride.lua for the Over world. While under the Caves folder, get the leveldataoverride.lua and that is the leveldataoverride.lua for the Caves. Now paste those leveldataoverride.lua in your own dedicated server. leveldataoverride.lua from Documents\Klei\DoNotStarveTogether\Cluster_1\Master goes to Documents\Klei\DoNotStarveTogether\MyServer\Master. leveldataoverride.lua from Documents\Klei\DoNotStarveTogether\Cluster_1\Caves goes to Documents\Klei\DoNotStarveTogether\MyServer\Caves. Start up Dedicated Server. Regenerate the world with c_regenerateworld() command entered into the console. Notice in the method above we used Slot 1, that is because Cluster_1 in the files is what is used for the Slot 1 in the Host Game screen. I needed to specify this so you won't get confused. Cluster_2 is for the Server in Slot 2 and so on. The latest format of leveldataoverride.lua can be generated this way, depending on how often the devs change it's format in future updates. Try the renaming first, then if that doesn't work try to generate the leveldataoverride.lua file through DST itself. Good luck. Link to comment Share on other sites More sharing options...
samir1597 Posted May 31, 2016 Author Share Posted May 31, 2016 Thank you so much!!! By the way can you help me with caves? I would like to add caves and edit resources too but i don't know how to do this. Link to comment Share on other sites More sharing options...
Zillvr Posted May 31, 2016 Share Posted May 31, 2016 @samir1597 you can follow the same method in the spoiler above and just copy the leveldataoverride.lua file generated by DST in the Cluster_# folders. However if you still haven't created the caves portion yet, I'd probably recommend the Windows Quick Guide if you're on Windows. If you already have the Caves folder in your dedicated sever folder but it won't start, I'd like to ask how you start your servers in the first place? Link to comment Share on other sites More sharing options...
samir1597 Posted May 31, 2016 Author Share Posted May 31, 2016 @ZillvrThank you everything is working now, i appreciate you and what you helped with for me. Link to comment Share on other sites More sharing options...
Recommended Posts
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.