Jump to content

worldgenoverride.lua with the new post-Caves settings


Recommended Posts

I tried running the script from both the dst server console and in game console and they both return this error

[00:01:30]: ConsoleInput: "RunScript("Genworldgen")"
[00:01:30]: [string "scripts/Genworldgen.lua"]:8: module 'customise' not found:
no file 'scripts/customise.lua' (checked with custom loader)
no file 'scriptlibs/customise.lua' (checked with custom loader)
no file 'scripts/customise.lua' (checked with custom loader)
no field package.preload['customise']
no file 'scripts\customise.lua'
no file 'scriptlibs\customise.lua'
no file 'scripts/customise.lua'

Link to comment
Share on other sites

  • Developer

raclepoulpe DTM450 It's not actually necessary to run that script to get started with this, you merely have to create a file called worldgenoverride.lua in your save folder and put the overrides in it that you like. It will be used next time you generate a world.

The script is only necessary for someone to use if we ever add or change worldgen settings, in order to create a new template for you to use.

  • Like 1
Link to comment
Share on other sites

anyone can help me ? 

i had make worldgenoverride.lua

and log cant show any load for this lua

there is my log  

 

 
[00:00:00]: Don't Starve Together: 140191 WIN32
NNN Build Date: 2015-06-17_17-29-41
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: 
[00:00:00]: Initializin Minidump handler
[00:00:00]: ....Done
[00:00:00]: Fixing DPI
[00:00:00]: ...Done
[00:00:00]: THREAD - started 'GAClient' (11856)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: ProfileIndex:3.96
[00:00:00]: THREAD - started 'GAClient' (12228)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: THREAD - started 'GAClient' (11024)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: Network tick rate: U=30(1), D=0
[00:00:00]: Authorized application D:\Program Files (x86)\SteamLibrary\steamapps\common\Don't Starve Together Dedicated Server\bin\dontstarve_dedicated_server_nullrenderer.exe is enabled in the firewall.
[00:00:00]: WindowsFirewall - Application already authorized
[00:00:00]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/blocklist.txt (Failure)
[00:00:00]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: APP:Klei/DoNotStarveTogether/save/whitelist.txt (Failure)
[00:00:00]: Server token retrieved from: server_token.txt
[00:00:00]: THREAD - started 'GAClient' (12124)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: THREAD - started 'GAClient' (7480)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: THREAD - started 'GAClient' (9740)
[00:00:00]: HttpClient::ClientThread::Main()
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: FMOD Error: An invalid object handle was used. 
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile loading buffer scripts/main.lua
[00:00:00]: scripts/main.lua(169,1) running main.lua
 
[00:00:00]: loaded modindex
[00:00:00]: ModIndex: Beginning normal load sequence for dedicated server.
 
[00:00:00]: DownloadMods(0)
[00:00:00]: FMOD Error: An invalid object handle was used. 
[00:00:00]: LOADING LUA SUCCESS
[00:00:00]: PlayerDeaths could not load morgue
[00:00:00]: loaded profile
[00:00:00]: bloom_enabled false
[00:00:00]: loaded saveindex
[00:00:00]: OnFilesLoaded()
[00:00:00]: OnUpdatePurchaseStateComplete
[00:00:02]: Load FE
[00:00:02]: Load FE: done
[00:00:02]: ModIndex: Load sequence finished successfully.
[00:00:02]: Reset() returning
[00:00:03]: [200] Account Communication Success (6)
[00:00:03]: [ACCOUNT_ACTION_TOKEN_PURPOSE] Received UserId from TokenPurpose: KU_CktmmnI1
[00:00:03]: Starting Dedicated Server Game
[00:00:03]: Network tick rate: U=30(1), D=0
[00:00:03]: [Warning] Could not confirm port 10999 is open in the firewall. 
[00:00:03]: Setting up socket descriptors
[00:00:03]: Online Server Started on port: 10999
[00:00:03]: Overriding server save slot to: 5
[00:00:03]: Collecting garbage...
[00:00:03]: lua_gc took 0.01 seconds
[00:00:03]: ~NetworkLuaProxy()
[00:00:03]: ~SimLuaProxy()
[00:00:04]: lua_close took 0.01 seconds
[00:00:04]: ReleaseAll
[00:00:04]: ReleaseAll Finished
[00:00:04]: cGame::StartPlaying
[00:00:04]: LOADING LUA
[00:00:04]: DoLuaFile scripts/main.lua
[00:00:04]: DoLuaFile loading buffer scripts/main.lua
[00:00:04]: scripts/main.lua(169,1) running main.lua
 
[00:00:04]: loaded modindex
[00:00:04]: ModIndex: Beginning normal load sequence for dedicated server.
 
[00:00:04]: LOADING LUA SUCCESS
[00:00:04]: PlayerDeaths could not load morgue
[00:00:04]: loaded profile
[00:00:04]: bloom_enabled false
[00:00:04]: loaded saveindex
[00:00:04]: OnFilesLoaded()
[00:00:04]: OnUpdatePurchaseStateComplete
[00:00:04]: Unload FE
[00:00:04]: Unload FE done
[00:00:05]: LOAD BE
[00:00:06]: Could not preload undefined prefab 0x4058bc0 (molehat)
[00:00:07]: LOAD BE: done
[00:00:07]: Deserialize world session from session/03E000081DAFB503/0000000001
[00:00:07]: Save file is at version nil
[00:00:07]: Upgrading to 1...
[00:00:07]: Converting summer to autumn:
[00:00:07]: Begin Session: 03E000081DAFB503
[00:00:07]: saving to server_temp/server_save
[00:00:07]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )
[00:00:07]: Loading Nav Grid
[00:00:09]: Reconstructing topology
[00:00:09]: ...Sorting points
[00:00:09]: ...Sorting edges
[00:00:09]: ...Connecting nodes
[00:00:09]: ...Validating connections
[00:00:10]: ...Housekeeping
[00:00:10]: ...Done!
[00:00:10]: 1 uploads added to server. From server_temp
[00:00:10]: Telling Client our new session identifier: 03E000081DAFB503
[00:00:10]: ModIndex: Load sequence finished successfully.
[00:00:10]: Reset() returning

 

[00:00:10]: SteamGameServer_Init Success
 
sorry for dosnt put in spoiler, and srry for my bad english
att..
Link to comment
Share on other sites

Any plan to make the amount of sinkholes/cave exits configurable?

 

Would be cool if we could more easily setup an overworld with n sinkholes and divide them over m shards (e.g. 8 overworld sinkholes, going to 2 slaves which then only need 4 exits each).

Link to comment
Share on other sites

  • Developer

Must i restart my world for the new world settings to take place?

Cause ive already made a server 2 days ago and i didnt know how to change world gen and its all in "default"

 

Worldgen settings indeed only happen when the world is generated. However, for any of the systems in the game such as seasons or earthquakes, most of them can be configured using console commands in a running game, for example to change season lengths, or make rain less frequent, or whatever. If you have something specific you'd like to try just ask.

 

 

Any plan to make the amount of sinkholes/cave exits configurable?

 

Would be cool if we could more easily setup an overworld with n sinkholes and divide them over m shards (e.g. 8 overworld sinkholes, going to 2 slaves which then only need 4 exits each).

 

There aren't any immediate plans to support this in the front end but if someone wants to mod this in but would like to see changes in the way configuration is done, @ me in a thread in the mod forums and we can talk about it. :)

Link to comment
Share on other sites

I've added in caves options to worldgenoverride.lua, so you can fill your world with slurpers if that's your thing. Yay!

Also, important note! A while ago we made it so that you can specify a whole preset in worldgenoverride.lua rather than having to specify each override manually (and can still tweak it further if preferred). So the easiest way, for example, to get caves looks lie this:

 

return {	override_enabled = true,	preset = "DST_CAVE",}
All the other presets are listed below.

Also bear in mind that any value set to "default" doesn't need to be specified at all!

return {	override_enabled = true,	preset = SURVIVAL_TOGETHER, --  or "SURVIVAL_TOGETHER" or "SURVIVAL_TOGETHER_CLASSIC" or "SURVIVAL_DEFAULT_PLUS" or "COMPLETE_DARKNESS" or "DST_CAVE"	unprepared = { -- "never", "rare", "default", "often", "always"		banana = "default",		berrybush = "default",		cactus = "default",		carrot = "default",		lichen = "default",		mushroom = "default",	},	misc = {		autumn = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		boons = "default", -- "never", "rare", "default", "often", "always"		branching = "default", -- "never", "least", "default", "most"		cavelight = "default", -- "veryslow", "slow", "default", "fast", "veryfast"		day = "default", -- "default", "longday", "longdusk", "longnight", "noday", "nodusk", "nonight", "onlyday", "onlydusk", "onlynight"		earthquakes = "default", -- "never", "rare", "default", "often", "always"		frograin = "default", -- "never", "rare", "default", "often", "always"		lightning = "default", -- "never", "rare", "default", "often", "always"		loop = "default", -- "never", "default", "always"		regrowth = "default", -- "veryslow", "slow", "default", "fast", "veryfast"		season_start = "default", -- "default", "winter", "spring", "summer", "autumnorspring", "winterorsummer", "random"		spring = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		start_location = "default", -- "caves", "default", "plus", "darkness"		summer = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		task_set = "default", -- "classic", "default", "cave_default"		touchstone = "default", -- "never", "rare", "default", "often", "always"		weather = "default", -- "never", "rare", "default", "often", "always"		wildfires = "default", -- "never", "rare", "default", "often", "always"		winter = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"		world_size = "default", -- "small", "medium", "default", "huge"	},	animals = { -- "never", "rare", "default", "often", "always"		alternatehunt = "default",		angrybees = "default",		beefalo = "default",		beefaloheat = "default",		bees = "default",		birds = "default",		bunnymen = "default",		butterfly = "default",		buzzard = "default",		catcoon = "default",		frogs = "default",		hunt = "default",		lightninggoat = "default",		moles = "default",		monkey = "default",		penguins = "default",		perd = "default",		pigs = "default",		rabbits = "default",		rocky = "default",		slurper = "default",		slurtles = "default",		tallbirds = "default",	},	monsters = { -- "never", "rare", "default", "often", "always"		bats = "default",		bearger = "default",		chess = "default",		deciduousmonster = "default",		deerclops = "default",		dragonfly = "default",		fissure = "default",		goosemoose = "default",		houndmound = "default",		hounds = "default",		krampus = "default",		liefs = "default",		lureplants = "default",		merm = "default",		spiders = "default",		tentacles = "default",		walrus = "default",		worms = "default",	},	resources = { -- "never", "rare", "default", "often", "always"		fern = "default",		flint = "default",		flower_cave = "default",		flowers = "default",		grass = "default",		marshbush = "default",		meteorshowers = "default",		meteorspawner = "default",		mushtree = "default",		reeds = "default",		rock = "default",		rock_ice = "default",		sapling = "default",		trees = "default",		tumbleweed = "default",		wormlights = "default",	},}

 

is this detailed worldgenoverride.lua will go under ~/.klei/DoNotStarveTogether/worldgenoverride.lua or

~/.klei/DST_Cave/worldgenoverride.lua?

Link to comment
Share on other sites

Hello everyone.

 

To add on, there doesn't appear to be a way to override any of the cave settings through the worldgenoverride.lua. I tried all the formats listed but when you start your server up, the cave worldgenoverride.lua is reset to a default preset and forcibly overwritten.

 

Overworld changes work fine. Can you specifically explain how to customise cave server settings? Or is there a way to edit DST_Cave preset? Because that's the default setting it uses to start the cave server.

 

Appreciated.

Link to comment
Share on other sites

  • Developer

is this detailed worldgenoverride.lua will go under ~/.klei/DoNotStarveTogether/worldgenoverride.lua or

~/.klei/DST_Cave/worldgenoverride.lua?

 

As I mentioned in the other thread, you can override whichever server you prefer. If you want more spiders in your overworld, then in ~/.klei/DoNotStarveTogether/worldgenoverride.lua you should have:

return {    override_enabled = true,    monsters {         spiders = "often",    },}
 

And then on your cave you want less bats, so in ~/.klei/DST_Cave/worldgenoverride.lua you do:

return {    override_enabled = true,    monsters {         bats = "rare",    },}
 

So you can customize each world separately.

Hello everyone.

 

To add on, there doesn't appear to be a way to override any of the cave settings through the worldgenoverride.lua. I tried all the formats listed but when you start your server up, the cave worldgenoverride.lua is reset to a default preset and forcibly overwritten.

 

Overworld changes work fine. Can you specifically explain how to customise cave server settings? Or is there a way to edit DST_Cave preset? Because that's the default setting it uses to start the cave server.

 

Appreciated.

Using the worldgenoverride is correct, if it's overwriting your file then that's a bug! Sorry about that. We'll get that fixed.

Link to comment
Share on other sites

 

As I mentioned in the other thread, you can override whichever server you prefer. 

 

 

Hey Ipsguiggle,

 

I created a cave world with this preset down below and it created another overworld with an abyss biome.. it was like a real overworldception.. It is definitely a bug and here is the screenshot. So when you take a sinkhole it leads you to another overworld with an abyss biome. (By the way despite it is being a bug, I really like the abyss biome option in overworld... Please put creation of abyss biome in overworld in worldoverride files too so we can add that biome to the world we wanna create :3)

 

http://images.akamai.steamusercontent.com/ugc/402306747089362997/7B04ED55768EEF9426508C235AB47F8FA14C63C7/

 

The worldgenoverride for caves I used is down below.

return {    override_enabled = true,    preset = "DST_CAVE", --  or "SURVIVAL_TOGETHER" or "SURVIVAL_TOGETHER_CLASSIC" or "SURVIVAL_DEFAULT_PLUS" or "COMPLETE_DARKNESS" or "DST_CAVE"    unprepared = { -- "never", "rare", "default", "often", "always"        banana = "default",        berrybush = "default",        cactus = "default",        carrot = "default",        lichen = "default",        mushroom = "default",    },    misc = {        autumn = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"        boons = "default", -- "never", "rare", "default", "often", "always"        branching = "default", -- "never", "least", "default", "most"        cavelight = "default", -- "veryslow", "slow", "default", "fast", "veryfast"        day = "default", -- "default", "longday", "longdusk", "longnight", "noday", "nodusk", "nonight", "onlyday", "onlydusk", "onlynight"        earthquakes = "default", -- "never", "rare", "default", "often", "always"        frograin = "default", -- "never", "rare", "default", "often", "always"        lightning = "default", -- "never", "rare", "default", "often", "always"        loop = "default", -- "never", "default", "always"        regrowth = "default", -- "veryslow", "slow", "default", "fast", "veryfast"        season_start = "default", -- "default", "winter", "spring", "summer", "autumnorspring", "winterorsummer", "random"        spring = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"        start_location = "default", -- "caves", "default", "plus", "darkness"        summer = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"        task_set = "default", -- "classic", "default", "cave_default"        touchstone = "default", -- "never", "rare", "default", "often", "always"        weather = "default", -- "never", "rare", "default", "often", "always"        wildfires = "default", -- "never", "rare", "default", "often", "always"        winter = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"        world_size = "default", -- "small", "medium", "default", "huge"    },    animals = { -- "never", "rare", "default", "often", "always"        alternatehunt = "default",        angrybees = "default",        beefalo = "default",        beefaloheat = "default",        bees = "default",        birds = "default",        bunnymen = "default",        butterfly = "default",        buzzard = "default",        catcoon = "default",        ponds = "default",        cave_ponds = "default",        hunt = "default",        lightninggoat = "default",        moles = "default",        monkey = "default",        penguins = "default",        perd = "default",        pigs = "default",        rabbits = "default",        rocky = "default",        slurper = "default",        slurtles = "default",        tallbirds = "default",    },    monsters = { -- "never", "rare", "default", "often", "always"        bats = "default",        bearger = "default",        chess = "default",        deciduousmonster = "default",        deerclops = "default",        dragonfly = "default",        fissure = "default",        goosemoose = "default",        houndmound = "default",        hounds = "default",        krampus = "default",        liefs = "default",        lureplants = "default",        merm = "default",        spiders = "default",        cave_spiders = "default",        tentacles = "default",        walrus = "default",        worms = "default",    },    resources = { -- "never", "rare", "default", "often", "always"        fern = "default",        flint = "default",        flower_cave = "default",        flowers = "default",        grass = "default",        marshbush = "default",        meteorshowers = "default",        meteorspawner = "default",        mushtree = "default",        reeds = "default",        rock = "default",        rock_ice = "default",        sapling = "default",        trees = "default",        tumbleweed = "default",        wormlights = "default",    },}

 

 

Edited by PolarBeer
  • Like 1
Link to comment
Share on other sites

  • Developer

The reason that happened is because of two things together:

1) preset = "DST_CAVE"

This makes it load the "cave" world type, which includes pits instead of waves, earthquakes, and a few things like that.

2) task_set = "default"

This makes it load the normal above-ground biomes and regions.

So the combination of the two is a "forest in the caves" kind of thing. Interesting!

  • Like 3
Link to comment
Share on other sites

The reason that happened is because of two things together:

1) preset = "DST_CAVE"

This makes it load the "cave" world type, which includes pits instead of waves, earthquakes, and a few things like that.

2) task_set = "default"

This makes it load the normal above-ground biomes and regions.

So the combination of the two is a "forest in the caves" kind of thing. Interesting!

 

I did not see any earthquake but i saw nest for giant tentacle.

Link to comment
Share on other sites

What does dragonfly worldgen option do? Reduces/increases respawn time? If so, maybe it should say "often" instead of "more", "very often" instead of "lots" and "rarely" instead of "less", as it is referring to respawn time?

 

(in client, obviously)

Edited by 228
Link to comment
Share on other sites

i have a lua file in my EasyConfigCaves folder and i changed it but when click on my server on View world i see that everything is on default..

this is my lua file 

 

return {
    override_enabled = true,
    preset = SURVIVAL_TOGETHER, --  or "SURVIVAL_TOGETHER" or "SURVIVAL_TOGETHER_CLASSIC" or "SURVIVAL_DEFAULT_PLUS" or "COMPLETE_DARKNESS" or "DST_CAVE"
    unprepared = { -- "never", "rare", "default", "often", "always"
        banana = "default",
        berrybush = "default",
        cactus = "default",
        carrot = "default",
        lichen = "default",
        mushroom = "default",
    },
    misc = {
        autumn = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
        boons = "default", -- "never", "rare", "default", "often", "always"
        branching = "default", -- "never", "least", "default", "most"
        cavelight = "default", -- "veryslow", "slow", "default", "fast", "veryfast"
        day = "default", -- "default", "longday", "longdusk", "longnight", "noday", "nodusk", "nonight", "onlyday", "onlydusk", "onlynight"
        earthquakes = "default", -- "never", "rare", "default", "often", "always"
        frograin = "default", -- "never", "rare", "default", "often", "always"
        lightning = "default", -- "never", "rare", "default", "often", "always"
        loop = "default", -- "never", "default", "always"
        regrowth = "default", -- "veryslow", "slow", "default", "fast", "veryfast"
        season_start = "winter", -- "default", "winter", "spring", "summer", "autumnorspring", "winterorsummer", "random"
        spring = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
        start_location = "default", -- "caves", "default", "plus", "darkness"
        summer = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
        task_set = "default", -- "classic", "default", "cave_default"
        touchstone = "default", -- "never", "rare", "default", "often", "always"
        weather = "default", -- "never", "rare", "default", "often", "always"
        wildfires = "default", -- "never", "rare", "default", "often", "always"
        winter = "default", -- "noseason", "veryshortseason", "shortseason", "default", "longseason", "verylongseason", "random"
        world_size = "huge", -- "small", "medium", "default", "huge"
    },
    animals = { -- "never", "rare", "default", "often", "always"
        alternatehunt = "default",
        angrybees = "default",
        beefalo = "default",
        beefaloheat = "default",
        bees = "default",
        birds = "default",
        bunnymen = "default",
        butterfly = "default",
        buzzard = "default",
        catcoon = "default",
        frogs = "default",
        hunt = "default",
        lightninggoat = "default",
        moles = "default",
        monkey = "default",
        penguins = "default",
        perd = "default",
        pigs = "default",
        rabbits = "default",
        rocky = "default",
        slurper = "default",
        slurtles = "default",
        tallbirds = "default",
    },
    monsters = { -- "never", "rare", "default", "often", "always"
        bats = "default",
        bearger = "default",
        chess = "default",
        deciduousmonster = "default",
        deerclops = "default",
        dragonfly = "default",
        fissure = "default",
        goosemoose = "default",
        houndmound = "default",
        hounds = "default",
        krampus = "default",
        liefs = "default",
        lureplants = "default",
        merm = "default",
        spiders = "default",
        tentacles = "default",
        walrus = "default",
        worms = "default",
    },
    resources = { -- "never", "rare", "default", "often", "always"
        fern = "default",
        flint = "default",
        flower_cave = "default",
        flowers = "default",
        grass = "default",
        marshbush = "default",
        meteorshowers = "default",
        meteorspawner = "default",
        mushtree = "default",
        reeds = "default",
        rock = "default",
        rock_ice = "default",
        sapling = "default",
        trees = "default",
        tumbleweed = "default",
        wormlights = "default",
    },
}
 
 
and other question: how do i reset my world? i want to start a new one.. how do i delete my old dedicated server? or how to reset it ? 
thanks :)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...